libDaisy
Hardware Library for Daisy
Loading...
Searching...
No Matches
sdmmc.h
Go to the documentation of this file.
1/*
2TODO:
3- Implement configuration (currently all settings are fixed).
4*/
5#pragma once
6#ifndef DSY_SDMMC_H
7#define DSY_SDMMC_H
9#include <stdint.h>
10#include "stm32h7xx_hal.h"
11
12namespace daisy
13{
32{
33 public:
35 enum class Result
36 {
37 OK,
38 ERROR,
39 };
40
42 enum class BusWidth
43 {
44 BITS_1,
45 BITS_4,
46 };
47
52 enum class Speed
53 {
54 SLOW,
56 STANDARD,
57 FAST,
58 VERY_FAST,
59 };
60
61 struct Config
62 {
65 bool
69 void Defaults()
70 {
73 clock_powersave = false;
74 }
75 };
76
79
85
86 private:
87};
89} // namespace daisy
90
91#endif
Definition leddriver.h:33
Definition sdmmc.h:32
~SdmmcHandler()
Definition sdmmc.h:78
BusWidth
Definition sdmmc.h:43
Result Init(const Config &cfg)
Speed
Definition sdmmc.h:53
SdmmcHandler()
Definition sdmmc.h:77
Result
Definition sdmmc.h:36
Hardware defines and helpers for daisy field platform.
Definition index.h:2
Definition sdmmc.h:62
bool clock_powersave
Definition sdmmc.h:66
void Defaults()
Definition sdmmc.h:69
Speed speed
Definition sdmmc.h:63
BusWidth width
Definition sdmmc.h:64