![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
Go to the source code of this file.
| #define FSMCI_CardAcquire | ( | hc | ) | Chip_SDMMC_Acquire(LPC_SDC, hc) |
Card acquire adapter function LPC17xx/40xx implementation of the FSMCI adapter function, that will successfully acquire/initialize the SD Card.
Definition at line 53 of file fsmci_cfg.h.
| #define FSMCI_CardGetBlockSz | ( | hc | ) | (4UL * 1024) |
Get the size of one erase block in the card (Fixed to 4K)
Definition at line 84 of file fsmci_cfg.h.
| #define FSMCI_CardGetCID | ( | hc, | |
| n | |||
| ) | ((hc)->cid[(n)]) |
Get CID data of the card at index n
Definition at line 102 of file fsmci_cfg.h.
| #define FSMCI_CardGetCSD | ( | hc, | |
| n | |||
| ) | ((hc)->csd[(n)]) |
Get CSD data of the card at index n
Definition at line 96 of file fsmci_cfg.h.
| #define FSMCI_CardGetSectorCnt | ( | hc | ) | ((hc)->blocknr) |
Gets number of sectors in the card LPC17xx/40xx implementation of the FSMCI adapter function, that will get the number of sectors in the card.
Definition at line 71 of file fsmci_cfg.h.
| #define FSMCI_CardGetSectorSz | ( | hc | ) | ((hc)->block_len) |
Get size of a single sector in the card.
Definition at line 77 of file fsmci_cfg.h.
| #define FSMCI_CardGetState | ( | hc, | |
| buff | |||
| ) | (Chip_SDMMC_GetSDStatus(LPC_SDC, hc, (uint32_t *)buff) > 0) |
Read SD status into buff
Definition at line 108 of file fsmci_cfg.h.
| #define FSMCI_CardGetType | ( | hc | ) | ((hc)->card_type) |
Get the card type.
Definition at line 90 of file fsmci_cfg.h.
| #define FSMCI_CardInit | ( | ) | (&sdCardInfo) |
Initialize the card handle data structure LPC17xx/40xx implementation of the FSMCI adapter function, that will initialize the card handle data structure. The card handle assigned by this function will be passed to all SD card adapter functions.
Definition at line 63 of file fsmci_cfg.h.
| #define FSMCI_CardInsertWait | ( | hc | ) | /* No Card detect yet */ |
Wait for card to be inserted.
Definition at line 134 of file fsmci_cfg.h.
| #define FSMCI_CardReadSectors | ( | hc, | |
| buf, | |||
| startSector, | |||
| numSector | |||
| ) | Chip_SDMMC_ReadBlocks(LPC_SDC, hc, buf, startSector, numSector) |
Read data from sectors.
Definition at line 114 of file fsmci_cfg.h.
| #define FSMCI_CardWriteSectors | ( | hc, | |
| buf, | |||
| startSector, | |||
| numSector | |||
| ) | Chip_SDMMC_WriteBlocks(LPC_SDC, hc, buf, startSector, numSector) |
Write data to sectors.
Definition at line 121 of file fsmci_cfg.h.
| #define FSMCI_InitRealTimeClock | ( | ) | rtc_initialize() |
Initialize the real time clock.
Definition at line 128 of file fsmci_cfg.h.
| STATIC INLINE int FSMCI_CardReadyWait | ( | CARD_HANDLE_T * | hCrd, |
| int | tout | ||
| ) |
Wait for the SD card to complete all operations and become ready.
| hCrd | : Pointer to Card Handle |
| tout | : Time to wait, in milliseconds |
Definition at line 145 of file fsmci_cfg.h.