| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
UM0851 bảng dữ liệu(PDF) 96 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0851 bảng dữ liệu(HTML) 96 Page - STMicroelectronics |
|
96 / 245 page ![]() Communication device drivers UM0851 96/245 Doc ID 16604 Rev 2 int (*suspend)(struct mmc_card *, pm_message_t); int (*resume)(struct mmc_card *); }; During registration, the probe function of the card driver will be called and a pointer to card structure will be passed. You must use this pointer for any further communication with host driver. ● Claim host: The card driver must claim host in order to do any transfers with the card using the host controller. This can be done using the following function call: /* host: MMC host to claim. It can be found in card structure (card->host)*/ void mmc_claim_host(struct mmc_host *host); ● Send command: This function starts a new MMC command for a host, and waits for the command to complete. This will not exchange any data with the card. Only configuration related commands are sent here. It returns any error that occurred while the command was executing, without attempting to parse the response. This function is used to configure the SDIO host controller. Please use the struct mmc_command in the include/linux/mmc/core.h file to see all the configuration options. /* host: MMC host to start command cmd: MMC command to start retries: maximum number of retries */ int mmc_wait_for_cmd(struct mmc_host *host, struct mmc_command *cmd, int retries); ● Send request: This function starts a new MMC custom command request for a host, and waits for the command to be completed. It sends data using data commands. It does not attempt to parse the response. You can use it for any kind of data transfer with the SDIO/SD/MMC card using the SDIO host controller. /* host: MMC host to start command mrq: MMC request to start */ void mmc_wait_for_req(struct mmc_host *host, struct mmc_request *mrq); struct mmc_request { struct mmc_command *cmd; struct mmc_data *data; struct mmc_command *stop; void *done_data;/* completion data */ void (*done)(struct mmc_request *);/* completion function */ }; ● Set timeout for data command: This function sets the timeout for a data command. It computes the data timeout parameters according to the correct algorithm related to the card type. /* data: data phase for command card: MMC card associated with the data transfer */ void mmc_set_data_timeout(struct mmc_data *data, const struct mmc_card *card); ● Set clock: This function sets the host clock to the highest possible frequency that is below "hz". |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |