1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
pub(crate) const RESET_CONFIG: Config = Config {
    sclk_mode: embedded_hal::spi::MODE_0,
    bit_order: BitOrder::MSBFirst,
};

pub struct Config {
    pub sclk_mode: embedded_hal::spi::Mode,
    pub bit_order: BitOrder,
}

pub enum BitOrder {
    MSBFirst,
    LSBFirst,
}

pub enum Polarity {
    ActiveLow,
    ActiveHigh,
}