#[non_exhaustive]pub struct Config {
pub mode: Mode,
pub bit_order: BitOrder,
pub orc: u8,
pub def: u8,
pub auto_acquire: bool,
pub miso_drive: OutputDrive,
}
Expand description
SPIS configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.mode: Mode
SPI mode
bit_order: BitOrder
Bit order
orc: u8
Overread character.
If the master keeps clocking the bus after all the bytes in the TX buffer have already been transmitted, this byte will be constantly transmitted in the MISO line.
def: u8
Default byte.
This is the byte clocked out in the MISO line for ignored transactions (if the master sets CSN low while the semaphore is owned by the firmware)
auto_acquire: bool
Automatically make the firmware side acquire the semaphore on transfer end.
miso_drive: OutputDrive
Drive strength for the MISO line.
Trait Implementations§
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