#include "chip.h"
#include "string.h"
Go to the source code of this file.
|
| static int32_t | sdmmc_execute_command (LPC_SDMMC_T *pSDMMC, uint32_t cmd, uint32_t arg, uint32_t wait_status) |
| |
| static int32_t | prv_card_acquired (void) |
| |
| static uint32_t | prv_get_bits (int32_t start, int32_t end, uint32_t *data) |
| |
| static void | prv_process_csd (LPC_SDMMC_T *pSDMMC) |
| |
| static int32_t | prv_set_trans_state (LPC_SDMMC_T *pSDMMC) |
| |
| static int32_t | prv_set_card_params (LPC_SDMMC_T *pSDMMC) |
| |
| int32_t | Chip_SDMMC_GetState (LPC_SDMMC_T *pSDMMC) |
| | Get card's current state (idle, transfer, program, etc.) More...
|
| |
| uint32_t | Chip_SDMMC_Acquire (LPC_SDMMC_T *pSDMMC, mci_card_struct *pcardinfo) |
| | Function to enumerate the SD/MMC/SDHC/MMC+ cards. More...
|
| |
| uint64_t | Chip_SDMMC_GetDeviceSize (LPC_SDMMC_T *pSDMMC) |
| | Get the device size of SD/MMC card (after enumeration) More...
|
| |
| int32_t | Chip_SDMMC_GetDeviceBlocks (LPC_SDMMC_T *pSDMMC) |
| | Get the number of device blocks of SD/MMC card (after enumeration) Since Chip_SDMMC_GetDeviceSize is limited to 32 bits cards with greater than 2 GBytes of data will not be correct, in such cases users can use this function to get the size of the card in blocks. More...
|
| |
| int32_t | Chip_SDMMC_ReadBlocks (LPC_SDMMC_T *pSDMMC, void *buffer, int32_t start_block, int32_t num_blocks) |
| | Performs the read of data from the SD/MMC card. More...
|
| |
| int32_t | Chip_SDMMC_WriteBlocks (LPC_SDMMC_T *pSDMMC, void *buffer, int32_t start_block, int32_t num_blocks) |
| | Performs write of data to the SD/MMC card. More...
|
| |
| static int32_t prv_card_acquired |
( |
void |
| ) |
|
|
static |
| static uint32_t prv_get_bits |
( |
int32_t |
start, |
|
|
int32_t |
end, |
|
|
uint32_t * |
data |
|
) |
| |
|
static |
| static int32_t prv_set_card_params |
( |
LPC_SDMMC_T * |
pSDMMC | ) |
|
|
static |
| static int32_t prv_set_trans_state |
( |
LPC_SDMMC_T * |
pSDMMC | ) |
|
|
static |
| static int32_t sdmmc_execute_command |
( |
LPC_SDMMC_T * |
pSDMMC, |
|
|
uint32_t |
cmd, |
|
|
uint32_t |
arg, |
|
|
uint32_t |
wait_status |
|
) |
| |
|
static |