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>
impl<SPI, CSN, IN, RSTN> RefUnwindSafe for SpiControlLines<SPI, CSN, IN, RSTN>
impl<SPI, CSN, IN, RSTN> Send for SpiControlLines<SPI, CSN, IN, RSTN>
impl<SPI, CSN, IN, RSTN> Sync for SpiControlLines<SPI, CSN, IN, RSTN>
impl<SPI, CSN, IN, RSTN> Unpin for SpiControlLines<SPI, CSN, IN, RSTN>
impl<SPI, CSN, IN, RSTN> UnwindSafe for SpiControlLines<SPI, CSN, IN, RSTN>
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