[−][src]Crate embedded_sdmmc
embedded-sdmmc-rs - A SD/MMC Library written in Embedded Rust
Structs
Attributes | Indicates whether a directory entry is read-only, a directory, a volume label, etc. |
Block | Represents a standard 512 byte block (also known as a sector). IBM PC formatted 5.25" and 3.5" floppy disks, SD/MMC cards up to 1 GiB in size and IDE/SATA Hard Drives up to about 2 TiB all have 512 byte blocks. |
BlockCount | Represents the a number of blocks (or sectors). Add this to a |
BlockIdx | Represents the linear numeric address of a block (or sector). The first
block on a disk gets |
Cluster | Represents a cluster on disk. |
Controller | A |
DirEntry | Represents a directory entry, which tells you about other files and directories. |
Directory | Represents an open directory on disk. |
FatVolume | Identifies a FAT16 Volume on the disk. |
File | Represents an open file on disk. |
SdMmcSpi | Represents an SD Card interface built from an SPI peripheral and a Chip Select pin. We need Chip Select to be separate so we can clock out some bytes without Chip Select asserted (which puts the card into SPI mode). |
ShortFileName | An MS-DOS 8.3 filename. 7-bit ASCII only. All lower-case is converted to upper-case by default. |
Timestamp | Represents an instant in time, in the local time zone. TODO: Consider
replacing this with POSIX time as a |
Volume | Represents a partition with a filesystem within it. |
VolumeIdx | A |
Enums
Error | Represents all the ways the functions in this crate can fail. |
FilenameError | Various filename related errors that can occur. |
Mode | The different ways we can open a file. |
SdMmcError | The possible errors |
VolumeType | This enum holds the data for the various different types of filesystems we support. |
Constants
MAX_FILE_SIZE | Maximum file size supported by this library |
MAX_OPEN_DIRS | We have to track what directories are open to prevent users from modifying open directories (like creating a file when we have an open iterator). |
MAX_OPEN_FILES | We have to track what files and directories are open to prevent users from deleting open files (like Windows does). |
Traits
BlockDevice | Represents a block device - a device which can read and write blocks (or sectors). Only supports devices which are <= 2 TiB in size. |
TimeSource | Things that impl this can tell you the current time. |