Class daisy::SdmmcHandler¶
ClassList > daisy > SdmmcHandler
#include <sdmmc.h>
Classes¶
Type | Name |
---|---|
struct | Config |
Public Types¶
Type | Name |
---|---|
enum | BusWidth |
enum | Result |
enum | Speed |
Public Functions¶
Type | Name |
---|---|
Result | Init (const Config & cfg) |
SdmmcHandler () |
|
~SdmmcHandler () |
Detailed Description¶
Configuration for interfacing with SD cards. Currently only supports operation using FatFS filesystem
Only SDMMC1 is supported at this time.
Pins are fixed to the following: PC12 - SDMMC1 CK PD2 - SDMMC1 CMD PC8 - SDMMC1 D0 PC9 - SDMMC1 D1 (optional) PC10 - SDMMC1 D2 (optional) PC11 - SDMMC1 D3 (optional)
Public Types Documentation¶
enum BusWidth¶
Sets whether 4-bit mode or 1-bit mode is used for the SDMMC
enum Result¶
Return values for the SdmmcHandler class
enum Speed¶
Sets the desired clock speed of the SD card bus. Initialization is always done at or below 400kHz, and then the user speed is set.
Public Functions Documentation¶
function Init¶
Configures the SDMMC Peripheral with the user defined settings. Initialization does not happen immediatly and will be called by the filesystem (i.e. FatFS).
function SdmmcHandler¶
function ~SdmmcHandler¶
The documentation for this class was generated from the following file external-docs/libDaisy/src/per/sdmmc.h