pub fn new(mode: Mode) -> Self {
        Config {
            mode,
            swap_miso_mosi: false,
            hardware_cs: HardwareCS {
                mode: HardwareCSMode::Disabled,
                assertion_delay: 0.0,
                polarity: Polarity::IdleHigh,
            },
            inter_word_delay: 0.0,
            communication_mode: CommunicationMode::FullDuplex,
        }
    }
/// Create a default configuration for the SPI interface.
///
/// Arguments:
/// * `mode` - The SPI mode to configure.
Create a default configuration for the SPI interface.
Arguments:
`mode` - The SPI mode to configure.
Create a default configuration for the SPI interface . Arguments : ` mode ` - The SPI mode to configure .
pub fn new(mode: Mode) -> Self {
        Config {
            mode,
            swap_miso_mosi: false,
            hardware_cs: HardwareCS {
                mode: HardwareCSMode::Disabled,
                assertion_delay: 0.0,
                polarity: Polarity::IdleHigh,
            },
            inter_word_delay: 0.0,
            communication_mode: CommunicationMode::FullDuplex,
        }
    }
pub fn new ( mode : Mode ) -> Self { Config { mode , swap_miso_mosi : false , hardware_cs : HardwareCS { mode : HardwareCSMode :: Disabled , assertion_delay : 0.0 , polarity : Polarity :: IdleHigh , } , inter_word_delay : 0.0 , communication_mode : CommunicationMode :: FullDuplex , } }
Create a default configuration for the SPI interface.
Create a default configuration for the SPI interface .
mode
Mode
mode
Mode