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

Overview

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

Data Structure Documentation

struct sdmmc_osa_event_t

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  eventType,
uint32_t *  flag 
)
Parameters
eventHandleevent handle.
eventTypeevent type.
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