You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Accessing SD Cards using an SD Host Controller
50
+
51
+
The `SdCard` type requires something that implements `Transport` in order to speak to the SD Card. We supply a generic `SpiTransport` that implements `Transport` using some underlying user-supplied implementation of `embedded_hal::spi::SpiDevice<u8>`. That will work for most applications.
52
+
53
+
However, if your MCU has a full SD Host Controller peripheral, and if you need high-performance access to your SD Card, you may wish to instead implement `Transport` in a way that uses that peripheral. SD Host Controllers, for example, often support a 4-bit wide interface instead of the 1-bit wide SPI interface, and run at higher clock rates.
54
+
49
55
## Supported features
50
56
51
-
* Open files in all supported methods from an open directory
52
-
* Open an arbitrary number of directories and files
53
-
* Read data from open files
54
-
* Write data to open files
55
-
* Close files
56
-
* Delete files
57
-
* Iterate root directory
58
-
* Iterate sub-directories
59
-
* Log over defmt or the common log interface (feature flags).
57
+
* Talking to SD Cards over SPI (using the `embedded-hal::spi::SpiDevice` trait)
58
+
* Talking to SD Cards over a custom transport (using our `Transport` trait)
59
+
* Opening files in all supported modes from an open directory
60
+
* Opening an arbitrary number of directories and files
61
+
* Reading data from open files
62
+
* Writing data to open files
63
+
* Closing files
64
+
* Deleting files
65
+
* Iterating the root directory
66
+
* Iterating sub-directories
67
+
* Logging over defmt or the common log interface (see feature flags).
0 commit comments