Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

UM0851 Datasheet(PDF) 96 Page - STMicroelectronics

Part # UM0851
Description  SPEAr is a family of highly customizable ARM-based embedded
PDF  245 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0851 Datasheet(HTML) 96 Page - STMicroelectronics

Back Button UM0851 Datasheet HTML 92Page - STMicroelectronics UM0851 Datasheet HTML 93Page - STMicroelectronics UM0851 Datasheet HTML 94Page - STMicroelectronics UM0851 Datasheet HTML 95Page - STMicroelectronics UM0851 Datasheet HTML 96Page - STMicroelectronics UM0851 Datasheet HTML 97Page - STMicroelectronics UM0851 Datasheet HTML 98Page - STMicroelectronics UM0851 Datasheet HTML 99Page - STMicroelectronics UM0851 Datasheet HTML 100Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 96 / 245 page
background image
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".



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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