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 `sssf` field of the [Argument](super::Argument).
    ///
    /// The SD Security Specific Field indicates the security protocol to use for data transfers to
    /// the card.
    SdSecuritySpecificField: u8 {
        default: ReplayProtectedMemoryBlock,
        error: Error,
        /// Replay protected memory block.
        ///
        /// This security mode provides a mechanism to securely write authenticated blocks to card
        /// memory, and protect against replay attacks.
        ReplayProtectedMemoryBlock = 1,
    }
}