sdmmc-core 0.5.0

SD/MMC core data structures and algorithms
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::lib_enum;
use crate::result::Error;

lib_enum! {
    /// Represents the `EXT_CSD` access mode for the [Argument](super::Argument).
    Access: u8 {
        default: CommandSet,
        error: Error,
        /// Changes the command set based on the `cmd_set` field in the [Argument](super::Argument).
        CommandSet = 0b00,
        /// Sets the bits in the byte pointed to by `index` are set according to the `value` field.
        SetBits = 0b01,
        /// Clears the bits in the byte pointed to by `index` are set according to the `value` field.
        ClearBits = 0b10,
        /// Writes the byte pointed to by `index` with the `value` field.
        WriteByte = 0b11,
    }
}