Struct esp_idf_hal::spi::config::Config
source · pub struct Config {
pub baudrate: Hertz,
pub data_mode: Mode,
pub write_only: bool,
pub duplex: Duplex,
pub bit_order: BitOrder,
pub cs_active_high: bool,
pub input_delay_ns: i32,
}
Expand description
SPI Device configuration
Fields§
§baudrate: Hertz
§data_mode: Mode
§write_only: bool
This property can be set to configure a SPI Device for being write only Thus the flag SPI_DEVICE_NO_DUMMY will be passed on initialization and it will unlock the possibility of using 80Mhz as the bus freq See https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/spi_master.html#timing-considerations
duplex: Duplex
§bit_order: BitOrder
§cs_active_high: bool
§input_delay_ns: i32
Implementations§
source§impl Config
impl Config
pub fn new() -> Self
pub fn baudrate(self, baudrate: Hertz) -> Self
pub fn data_mode(self, data_mode: Mode) -> Self
pub fn write_only(self, write_only: bool) -> Self
pub fn duplex(self, duplex: Duplex) -> Self
pub fn bit_order(self, bit_order: BitOrder) -> Self
pub fn cs_active_high(self) -> Self
pub fn input_delay_ns(self, input_delay_ns: i32) -> Self
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more