21 #include "microsdconfig.h" 
   43 #define ACMD41    (41 | 0x80)  
   48 #define ACMD13    (13 | 0x80)  
   53 #define ACMD23    (23 | 0x80)  
   61 void      MICROSD_Init(void); 
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices. 
void MICROSD_SpiClkSlow(void)
Set SPI clock to a low frequency suitable for initial card initialization. 
void MICROSD_PowerOn(void)
Turn on micro SD card power. DK doesn't support socket power control, only enable the SPI clock...
void MICROSD_Deinit(void)
Deinitialize SPI peripheral. Turn off the SPI peripheral and disable SPI GPIO pins. 
void MICROSD_Deselect(void)
Deselect the micro SD card and release the SPI bus. 
int MICROSD_Select(void)
Select the micro SD card and wait for the card to become ready. 
bool MICROSD_TimeOutElapsed(void)
Check if timeout value set with MICROSD_TimeOutSet() has elapsed. 
void MICROSD_SpiClkFast(void)
Set SPI clock to maximum frequency. 
General Purpose IO (GPIO) peripheral API. 
void MICROSD_TimeOutSet(uint32_t msec)
Set a timeout value. The timeout value will be decremented towards zero when SPI traffic to/from the ...
int MICROSD_BlockTx(const uint8_t *buff, uint8_t token)
Send a data block to micro SD card. 
void MICROSD_PowerOff(void)
Turn off micro SD card power. DK doesn't support socket power control, only disable the SPI clock...
uint8_t MICROSD_SendCmd(uint8_t cmd, DWORD arg)
Send a command packet to micro SD card. 
int MICROSD_BlockRx(uint8_t *buff, uint32_t btr)
Receive a data block from micro SD card. 
uint8_t MICROSD_XferSpi(uint8_t data)
Do one SPI transfer.