Microchip® Advanced Software Framework

sd_mmc_mem.c File Reference

CTRL_ACCESS interface for common SD/MMC stack.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include "conf_access.h"
#include "conf_sd_mmc.h"
#include "sd_mmc.h"
#include "sd_mmc_mem.h"

Control Interface

static bool sd_mmc_ejected [2] = {false, false}
 
Ctrl_status sd_mmc_test_unit_ready (uint8_t slot)
 Tests the memory state and initializes the memory if required. More...
 
Ctrl_status sd_mmc_test_unit_ready_0 (void)
 Instance Declaration for sd_mmc_test_unit_ready Slot O. More...
 
Ctrl_status sd_mmc_test_unit_ready_1 (void)
 Instance Declaration for sd_mmc_test_unit_ready Slot 1. More...
 
Ctrl_status sd_mmc_read_capacity (uint8_t slot, uint32_t *nb_sector)
 Returns the address of the last valid sector in the memory. More...
 
Ctrl_status sd_mmc_read_capacity_0 (uint32_t *nb_sector)
 Instance Declaration for sd_mmc_read_capacity Slot O. More...
 
Ctrl_status sd_mmc_read_capacity_1 (uint32_t *nb_sector)
 Instance Declaration for sd_mmc_read_capacity Slot 1. More...
 
bool sd_mmc_unload (uint8_t slot, bool unload)
 Unload/Load the SD/MMC card selected. More...
 
bool sd_mmc_unload_0 (bool unload)
 Instance Declaration for sd_mmc_unload Slot O. More...
 
bool sd_mmc_unload_1 (bool unload)
 Instance Declaration for sd_mmc_unload Slot 1. More...
 
bool sd_mmc_wr_protect (uint8_t slot)
 Returns the write-protection state of the memory. More...
 
bool sd_mmc_wr_protect_0 (void)
 Instance Declaration for sd_mmc_wr_protect Slot O. More...
 
bool sd_mmc_wr_protect_1 (void)
 Instance Declaration for sd_mmc_wr_protect Slot 1. More...
 
bool sd_mmc_removal (uint8_t slot)
 Tells whether the memory is removable. More...
 
bool sd_mmc_removal_0 (void)
 Instance Declaration for sd_mmc_removal Slot O. More...
 
bool sd_mmc_removal_1 (void)
 Instance Declaration for sd_mmc_removal Slot 1. More...