Part 1
요약·해설
SD subsystem용 API이며 application의 직접 사용을 목적으로 하지 않습니다.
command · optional data
clock · voltage · card power
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
490D2745D865C249EC9A0213BC6AB3D63CBCF934CC6EAECA77B5687A4FAD2580
.. _sdhc_api:
Secure Digital High Capacity (SDHC)
###################################
The SDHC api offers a generic interface for interacting with an SD host
controller device. It is used by the SD subsystem, and is not intended to be
directly used by the application
Basic Operation
***************
SD Host Controller
==================
An SD host controller is a device capable of sending SD commands to an attached
SD card. These commands can be sent using the native SD protocol, or over SPI.
Some SD host controllers are also capable of communicating with MMC devices.
The SDHC api is designed to provide a generic way to send commands to and
interact with attached SD devices.
Requests
========
The core of the SDHC api is the :c:func:`sdhc_request` api. Requests contain a
:c:struct:`sdhc_command` command structure, and an optional
:c:struct:`sdhc_data` data structure. The caller may check the return code,
or the ``response`` field of the SD command structure to determine if the
SDHC request succeeded. The data structure allows the caller to specify a
number of blocks to transfer, and a buffer location to read or write them from.
Whether the provided buffer is used for sending or reading data depends on the
command opcode provided.
Host Controller I/O
===================
The :c:func:`sdhc_set_io` api allows the user to change I/O settings of the SD
host controller, such as clock frequency, I/O voltage, and card power. Not all
controllers will support applying all I/O settings. For example, SPI mode
controllers typically cannot toggle power to the SD card.
Related configuration options:
* :kconfig:option:`CONFIG_SDHC`
API Reference
*************
.. doxygengroup:: sdhc_interface
Part 3
한국어 전문 번역
SDHC API는 SD host controller device와 상호 작용하는 범용 interface를 제공합니다. SD subsystem이 사용하며 application이 직접 사용하도록 설계된 API는 아닙니다.
Basic Operation
SD Host Controller
SD host controller는 연결된 SD card에 SD command를 보낼 수 있는 device입니다. Command는 native SD protocol 또는 SPI로 보낼 수 있습니다. 일부 SD host controller는 MMC device와도 통신할 수 있습니다.
SDHC API는 command를 보내고 연결된 SD device와 상호 작용하는 범용 방법을 제공하도록 설계됐습니다.
Requests
sdhc_request()가 SDHC API의 핵심입니다. Request에는 sdhc_command command structure와 optional sdhc_data data structure가 들어갑니다.
호출자는 return code 또는 SD command structure의 response field를 확인해 SDHC request 성공 여부를 판단할 수 있습니다. Data structure에는 전송할 block 수와 그 block을 읽거나 쓸 buffer location을 지정합니다. 주어진 buffer를 data 송신에 사용할지 수신에 사용할지는 command opcode에 따라 결정됩니다.
Host Controller I/O
sdhc_set_io()로 SD host controller의 clock frequency, I/O voltage, card power 같은 I/O setting을 변경할 수 있습니다. 모든 controller가 모든 I/O setting 적용을 지원하지는 않습니다. 예를 들어 SPI mode controller는 보통 SD card power를 toggle할 수 없습니다.
관련 configuration option은 CONFIG_SDHC입니다.
API Reference
sdhc_interface Doxygen group이 SDHC interface의 공식 API reference를 제공합니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.