RTEMS  5.0.0
Data Structures | Macros | Typedefs | Functions
mcid.h File Reference
#include "chip.h"
#include <stdint.h>
#include <stdio.h>

Go to the source code of this file.

Data Structures

struct  _Mcid
 MCI Driver. More...
 

Macros

#define MCID_IDLE   0
 
#define MCID_LOCKED   1
 
#define MCID_CMD   2
 
#define MCID_ERROR   3
 
#define MCI_INITIAL_SPEED   400000
 

Typedefs

typedef struct _Mcid sMcid
 MCI Driver.
 

Functions

void MCID_Init (sMcid *pMcid, Hsmci *pMci, uint8_t bID, uint32_t dwMck, sXdmad *pXdmad, uint8_t bPolling)
 
void MCID_Reset (sMcid *pMcid)
 
void MCID_SetSlot (Hsmci *pMci, uint8_t slot)
 
uint32_t MCID_Lock (sMcid *pMcid, uint8_t bSlot)
 
uint32_t MCID_Release (sMcid *pMcid)
 
void MCID_Handler (sMcid *pMcid)
 
uint32_t MCID_SendCmd (sMcid *pMcid, void *pCmd)
 
uint32_t MCID_CancelCmd (sMcid *pMcid)
 
uint32_t MCID_IsCmdCompleted (sMcid *pMcid)
 
uint32_t MCID_IOCtrl (sMcid *pMcid, uint32_t bCtl, uint32_t param)