MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages

Overview

The sdmmc osa adapter provide interface of os adapter.

Macros

#define SDMMC_OSA_EVENT_TRANSFER_CMD_SUCCESS   (1U << 0U)
 transfer event
 
#define SDMMC_OSA_EVENT_CARD_INSERTED   (1U << 8U)
 card detect event, start from index 8
 

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 mask, 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...
 

Function Documentation

status_t SDMMC_OSAEventCreate ( void *  eventHandle)
Parameters
eventHandleevent handle.
Return values
kStatus_Failor kStatus_Success.
status_t SDMMC_OSAEventWait ( void *  eventHandle,
uint32_t  eventType,
uint32_t  timeoutMilliseconds,
uint32_t *  event 
)
Parameters
eventHandleThe event type
eventTypeTimeout time in milliseconds.
timeoutMillisecondstimeout value in ms.
eventevent flags.
Return values
kStatus_Failor kStatus_Success.
status_t SDMMC_OSAEventSet ( void *  eventHandle,
uint32_t  eventType 
)
Parameters
eventHandleevent handle.
eventTypeThe event type
Return values
kStatus_Failor kStatus_Success.
status_t SDMMC_OSAEventGet ( void *  eventHandle,
uint32_t  mask,
uint32_t *  flag 
)
Parameters
eventHandleevent handle.
maskevent mask.
flagpointer to store event value.
Return values
kStatus_Failor kStatus_Success.
status_t SDMMC_OSAEventClear ( void *  eventHandle,
uint32_t  eventType 
)
Parameters
eventHandleevent handle.
eventTypeThe event type
Return values
kStatus_Failor kStatus_Success.
status_t SDMMC_OSAEventDestroy ( void *  eventHandle)
Parameters
eventHandleThe event handle.
void SDMMC_OSADelay ( uint32_t  milliseconds)
Parameters
millisecondstime to delay