MCUXpresso SDK API Reference Manual
Rev. 0
NXP Semiconductors
|
Data Structures | |
struct | sdmmc_osa_event_t |
sdmmc osa event More... | |
Macros | |
#define | SDMMC_OSA_EVENT_TRANSFER_CMD_SUCCESS (1UL << 0U) |
transfer event | |
#define | SDMMC_OSA_EVENT_CARD_INSERTED (1UL << 8U) |
card detect event, start from index 8 | |
#define | SDMMC_OSA_POLLING_EVENT_BY_SEMPHORE 1 |
enable semphore by default | |
sdmmc osa Function | |
void | SDMMC_OSAInit (void) |
Initialize OSA. | |
status_t | SDMMC_OSAEventCreate (void *eventHandle) |
OSA Create event. More... | |
status_t | SDMMC_OSAEventWait (void *eventHandle, uint32_t eventType, uint32_t timeoutMilliseconds, uint32_t *event) |
Wait event. More... | |
status_t | SDMMC_OSAEventSet (void *eventHandle, uint32_t eventType) |
set event. More... | |
status_t | SDMMC_OSAEventGet (void *eventHandle, uint32_t eventType, uint32_t *flag) |
Get event flag. More... | |
status_t | SDMMC_OSAEventClear (void *eventHandle, uint32_t eventType) |
clear event flag. More... | |
status_t | SDMMC_OSAEventDestroy (void *eventHandle) |
Delete event. More... | |
void | SDMMC_OSADelay (uint32_t milliseconds) |
sdmmc delay. More... | |
struct sdmmc_osa_event_t |
status_t SDMMC_OSAEventCreate | ( | void * | eventHandle | ) |
eventHandle | event handle. |
kStatus_Fail | or kStatus_Success. |
status_t SDMMC_OSAEventWait | ( | void * | eventHandle, |
uint32_t | eventType, | ||
uint32_t | timeoutMilliseconds, | ||
uint32_t * | event | ||
) |
eventHandle | The event type |
eventType | Timeout time in milliseconds. |
timeoutMilliseconds | timeout value in ms. |
event | event flags. |
kStatus_Fail | or kStatus_Success. |
status_t SDMMC_OSAEventSet | ( | void * | eventHandle, |
uint32_t | eventType | ||
) |
eventHandle | event handle. |
eventType | The event type |
kStatus_Fail | or kStatus_Success. |
status_t SDMMC_OSAEventGet | ( | void * | eventHandle, |
uint32_t | eventType, | ||
uint32_t * | flag | ||
) |
eventHandle | event handle. |
eventType | event type. |
flag | pointer to store event value. |
kStatus_Fail | or kStatus_Success. |
status_t SDMMC_OSAEventClear | ( | void * | eventHandle, |
uint32_t | eventType | ||
) |
eventHandle | event handle. |
eventType | The event type |
kStatus_Fail | or kStatus_Success. |
status_t SDMMC_OSAEventDestroy | ( | void * | eventHandle | ) |
eventHandle | The event handle. |
void SDMMC_OSADelay | ( | uint32_t | milliseconds | ) |
milliseconds | time to delay |