pub struct Config {
pub frequency: HertzU32,
pub mode: SpiMode,
pub read_bit_order: SpiBitOrder,
pub write_bit_order: SpiBitOrder,
}Expand description
SPI peripheral configuration
Fields§
§frequency: HertzU32SPI clock frequency
mode: SpiModeSPI mode
read_bit_order: SpiBitOrderBit order of the read data.
write_bit_order: SpiBitOrderBit order of the written data.
Trait Implementations§
impl Copy for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more