sdmmc_core/command/class/
class6.rs

1use crate::result::Error;
2use crate::{command_enum, lib_enum};
3
4pub mod cmd28;
5pub mod cmd29;
6pub mod cmd30;
7pub mod cmd31;
8
9lib_enum! {
10    /// MMC opcodes for Class 6.
11    CommandClass6: u32 {
12        default: SetWriteProtection,
13        error: Error,
14        SetWriteProtection = 28,
15        ClearWriteProtection = 29,
16        SendWriteProtection = 30,
17        SendWriteProtectionType = 31,
18    }
19}
20
21command_enum! {
22    /// Represents the variants for Class6 commands.
23    Command {
24        default: Cmd28(cmd28::Cmd28),
25        Cmd28(cmd28::Cmd28),
26        Cmd29(cmd29::Cmd29),
27        Cmd30(cmd30::Cmd30),
28        Cmd31(cmd31::Cmd31),
29    }
30}