Skip to content

Class daisy::SdmmcHandler

ClassList > daisy > SdmmcHandler

More...

  • #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

enum daisy::SdmmcHandler::BusWidth {
    BITS_1,
    BITS_4
};

Sets whether 4-bit mode or 1-bit mode is used for the SDMMC


enum Result

enum daisy::SdmmcHandler::Result {
    OK,
    ERROR
};

Return values for the SdmmcHandler class


enum Speed

enum daisy::SdmmcHandler::Speed {
    SLOW,
    MEDIUM_SLOW,
    STANDARD,
    FAST,
    VERY_FAST
};

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

Result daisy::SdmmcHandler::Init (
    const  Config & cfg
) 

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

inline daisy::SdmmcHandler::SdmmcHandler () 

function ~SdmmcHandler

inline daisy::SdmmcHandler::~SdmmcHandler () 


The documentation for this class was generated from the following file external-docs/libDaisy/src/per/sdmmc.h