Microchip® Advanced Software Framework

sd_mmc_spi_mem.h File Reference
#include "conf_access.h"
#include "ctrl_access.h"

Macros

#define SD_MMC_INSERTED   1
 
#define SD_MMC_REMOVED   0
 
#define SD_MMC_REMOVING   2
 

Functions

Ctrl_status sd_mmc_spi_mem_2_ram (uint32_t addr, void *ram)
 This function reads 1 sector from SD/MMC to internal ram buffer. More...
 
void sd_mmc_spi_mem_init (void)
 This function initializes the hw/sw resources required to drive the SD_MMC_SPI. More...
 
Ctrl_status sd_mmc_spi_ram_2_mem (uint32_t addr, const void *ram)
 This function initializes the memory for a write operation from ram buffer to SD/MMC (1 sector) More...
 
Ctrl_status sd_mmc_spi_read_capacity (uint32_t *nb_sector)
 This function gives the address of the last valid sector. More...
 
bool sd_mmc_spi_removal (void)
 This function tells if the memory has been removed or not. More...
 
Ctrl_status sd_mmc_spi_test_unit_ready (void)
 This function tests the state of the SD_MMC memory and sends it to the Host. More...
 
bool sd_mmc_spi_wr_protect (void)
 This function returns the write protected status of the memory. More...