ChibiOS/HAL
6.1.0
|
PLATFORM SDC subsystem low level driver header. More...
Go to the source code of this file.
Data Structures | |
struct | SDCConfig |
Driver configuration structure. More... | |
struct | SDCDriverVMT |
SDCDriver virtual methods table. More... | |
struct | SDCDriver |
Structure representing an SDC driver. More... | |
Macros | |
#define | _sdc_driver_methods _mmcsd_block_device_methods |
SDCDriver specific methods. More... | |
PLATFORM configuration options | |
#define | PLATFORM_SDC_USE_SDC1 FALSE |
PWMD1 driver enable switch. More... | |
Typedefs | |
typedef uint32_t | sdcmode_t |
Type of card flags. More... | |
typedef uint32_t | sdcflags_t |
SDC Driver condition flags type. More... | |
typedef struct SDCDriver | SDCDriver |
Type of a structure representing an SDC driver. More... | |
Functions | |
void | sdc_lld_init (void) |
Low level SDC driver initialization. More... | |
void | sdc_lld_start (SDCDriver *sdcp) |
Configures and activates the SDC peripheral. More... | |
void | sdc_lld_stop (SDCDriver *sdcp) |
Deactivates the SDC peripheral. More... | |
void | sdc_lld_start_clk (SDCDriver *sdcp) |
Starts the SDIO clock and sets it to init mode (400kHz or less). More... | |
void | sdc_lld_set_data_clk (SDCDriver *sdcp, sdcbusclk_t clk) |
Sets the SDIO clock to data mode (25MHz or less). More... | |
void | sdc_lld_stop_clk (SDCDriver *sdcp) |
Stops the SDIO clock. More... | |
void | sdc_lld_set_bus_mode (SDCDriver *sdcp, sdcbusmode_t mode) |
Switches the bus to 4 bits mode. More... | |
void | sdc_lld_send_cmd_none (SDCDriver *sdcp, uint8_t cmd, uint32_t arg) |
Sends an SDIO command with no response expected. More... | |
bool | sdc_lld_send_cmd_short (SDCDriver *sdcp, uint8_t cmd, uint32_t arg, uint32_t *resp) |
Sends an SDIO command with a short response expected. More... | |
bool | sdc_lld_send_cmd_short_crc (SDCDriver *sdcp, uint8_t cmd, uint32_t arg, uint32_t *resp) |
Sends an SDIO command with a short response expected and CRC. More... | |
bool | sdc_lld_send_cmd_long_crc (SDCDriver *sdcp, uint8_t cmd, uint32_t arg, uint32_t *resp) |
Sends an SDIO command with a long response expected and CRC. More... | |
bool | sdc_lld_read (SDCDriver *sdcp, uint32_t startblk, uint8_t *buf, uint32_t n) |
Reads one or more blocks. More... | |
bool | sdc_lld_write (SDCDriver *sdcp, uint32_t startblk, const uint8_t *buf, uint32_t n) |
Writes one or more blocks. More... | |
bool | sdc_lld_sync (SDCDriver *sdcp) |
Waits for card idle condition. More... | |
PLATFORM SDC subsystem low level driver header.
Definition in file hal_sdc_lld.h.