Microchip® Advanced Software Framework

sd_mmc_spi_mem.c File Reference
#include "conf_access.h"
#include "conf_sd_mmc_spi.h"
#include "sd_mmc_spi.h"
#include "sd_mmc_spi_mem.h"
#include "conf_usb.h"
#include "usb_drv.h"
#include "scsi_decoder.h"


#define Sd_mmc_spi_access_signal_off()
#define Sd_mmc_spi_access_signal_on()


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...
void sd_mmc_spi_read_multiple_sector_callback (const void *psector)
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...
Ctrl_status sd_mmc_spi_usb_read_10 (uint32_t addr, uint16_t nb_sector)
 This function performs a read operation of n sectors from a given address on. More...
Ctrl_status sd_mmc_spi_usb_write_10 (uint32_t addr, uint16_t nb_sector)
 This function initializes the SD/MMC memory for a write operation. More...
bool sd_mmc_spi_wr_protect (void)
 This function returns the write protected status of the memory. More...
void sd_mmc_spi_write_multiple_sector_callback (void *psector)


bool sd_mmc_spi_init_done
volatile uint32_t sd_mmc_spi_last_address
uint8_t sd_mmc_spi_presence_status = SD_MMC_INSERTED

bool sd_mmc_spi_init_done
volatile uint32_t sd_mmc_spi_last_address
uint8_t sd_mmc_spi_presence_status = SD_MMC_INSERTED