Struct SpiControlLines

Source
pub struct SpiControlLines<SPI, CSN, IN, RSTN> {
    pub spi: SPI,
    pub csn: CSN,
    pub hintn: IN,
    pub reset: RSTN,
}
Expand description

Encapsulates all the lines required to operate this sensor

  • SCK: clock line from master
  • MISO: Data input from the sensor to the master
  • MOSI: Output from the master to the sensor
  • CSN: chip select line that selects the device on the shared SPI bus
  • HINTN: Hardware Interrupt. Sensor uses this to indicate it had data available for read
  • RSTN: Reset the device

Fields§

§spi: SPI§csn: CSN§hintn: IN§reset: RSTN

Auto Trait Implementations§

§

impl<SPI, CSN, IN, RSTN> Freeze for SpiControlLines<SPI, CSN, IN, RSTN>
where SPI: Freeze, CSN: Freeze, IN: Freeze, RSTN: Freeze,

§

impl<SPI, CSN, IN, RSTN> RefUnwindSafe for SpiControlLines<SPI, CSN, IN, RSTN>

§

impl<SPI, CSN, IN, RSTN> Send for SpiControlLines<SPI, CSN, IN, RSTN>
where SPI: Send, CSN: Send, IN: Send, RSTN: Send,

§

impl<SPI, CSN, IN, RSTN> Sync for SpiControlLines<SPI, CSN, IN, RSTN>
where SPI: Sync, CSN: Sync, IN: Sync, RSTN: Sync,

§

impl<SPI, CSN, IN, RSTN> Unpin for SpiControlLines<SPI, CSN, IN, RSTN>
where SPI: Unpin, CSN: Unpin, IN: Unpin, RSTN: Unpin,

§

impl<SPI, CSN, IN, RSTN> UnwindSafe for SpiControlLines<SPI, CSN, IN, RSTN>
where SPI: UnwindSafe, CSN: UnwindSafe, IN: UnwindSafe, RSTN: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.