#[repr(u8)]
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum SdBusWidth {
_1bit = 0b00,
_4bit = 0b10,
}
impl SdBusWidth {
pub const fn new() -> Self {
Self::_1bit
}
}
impl Default for SdBusWidth {
fn default() -> Self {
Self::new()
}
}
#[repr(u8)]
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum MmcBusWidth {
Sdr1bit = 0b0000,
Sdr4bit = 0b0001,
Sdr8bit = 0b0010,
Ddr4bit = 0b0101,
Ddr8bit = 0b0110,
}
impl MmcBusWidth {
pub const fn new() -> Self {
Self::Sdr1bit
}
}
impl Default for MmcBusWidth {
fn default() -> Self {
Self::new()
}
}