![]() |
cueOS
2.4
cueOS - Universal Show Control OS for ARM
|
SD Disk I/O driver. More...

Go to the source code of this file.
Macros | |
| #define | QUEUE_SIZE (uint32_t) 10 |
| #define | READ_CPLT_MSG (uint32_t) 1 |
| #define | WRITE_CPLT_MSG (uint32_t) 2 |
| #define | SD_TIMEOUT 30 * 1000 |
| #define | SD_DEFAULT_BLOCK_SIZE 512 |
Functions | |
| static DSTATUS | SD_CheckStatus (BYTE lun) |
| DSTATUS | SD_initialize (BYTE lun) |
| Initializes a Drive. More... | |
| DSTATUS | SD_status (BYTE lun) |
| Gets Disk Status. More... | |
| DRESULT | SD_read (BYTE lun, BYTE *buff, DWORD sector, UINT count) |
| Reads Sector(s) More... | |
| static int | SD_CheckStatusWithTimeout (uint32_t timeout) |
| void | BSP_SD_WriteCpltCallback (void) |
| Writes Sector(s) More... | |
| void | BSP_SD_ReadCpltCallback (void) |
| Rx Transfer completed callbacks. More... | |
Variables | |
| static volatile DSTATUS | Stat = STA_NOINIT |
| static osMessageQId | SDQueueID = NULL |
| const Diskio_drvTypeDef | SD_Driver |
SD Disk I/O driver.
This software component is licensed by ST under Ultimate Liberty license SLA0044, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: www.st.com/SLA0044
Definition in file sd_diskio.c.
| #define QUEUE_SIZE (uint32_t) 10 |
Definition at line 38 of file sd_diskio.c.
| #define READ_CPLT_MSG (uint32_t) 1 |
Definition at line 39 of file sd_diskio.c.
| #define SD_DEFAULT_BLOCK_SIZE 512 |
Definition at line 60 of file sd_diskio.c.
| #define SD_TIMEOUT 30 * 1000 |
Definition at line 58 of file sd_diskio.c.
| #define WRITE_CPLT_MSG (uint32_t) 2 |
Definition at line 40 of file sd_diskio.c.
| void BSP_SD_ReadCpltCallback | ( | void | ) |
Rx Transfer completed callbacks.
BSP Rx Transfer completed callback.
| hsd | SD handle |
| None |
Definition at line 654 of file sd_diskio.c.
| void BSP_SD_WriteCpltCallback | ( | void | ) |
Writes Sector(s)
BSP Tx Transfer completed callback.
| lun | : not used |
| *buff | Data to be written |
| sector | Sector address (LBA) |
| count | Number of sectors to write (1..128) |
| DRESULT | Operation result |
I/O control operation
| lun | : not used |
| cmd | Control code |
| *buff | Buffer to send/receive control data |
| DRESULT | Operation result |
Tx Transfer completed callbacks
| hsd | SD handle |
| None |
Definition at line 634 of file sd_diskio.c.
|
static |
Definition at line 160 of file sd_diskio.c.
|
static |
Definition at line 139 of file sd_diskio.c.
| DSTATUS SD_initialize | ( | BYTE | lun | ) |
Initializes a Drive.
| lun | : not used |
| DSTATUS | Operation status |
Definition at line 177 of file sd_diskio.c.
| DRESULT SD_read | ( | BYTE | lun, |
| BYTE * | buff, | ||
| DWORD | sector, | ||
| UINT | count | ||
| ) |
Reads Sector(s)
| lun | : not used |
| *buff | Data buffer to store read data |
| sector | Sector address (LBA) |
| count | Number of sectors to read (1..128) |
| DRESULT | Operation result |
Definition at line 251 of file sd_diskio.c.
| DSTATUS SD_status | ( | BYTE | lun | ) |
Gets Disk Status.
| lun | : not used |
| DSTATUS | Operation status |
Definition at line 234 of file sd_diskio.c.
| const Diskio_drvTypeDef SD_Driver |
Definition at line 119 of file sd_diskio.c.
|
static |
Definition at line 103 of file sd_diskio.c.
|
static |
Definition at line 100 of file sd_diskio.c.