[−][src]Struct mpu9250::SpiDevice
A SPI device. Use a SPI device when the MPU9250 is connected via SPI
Implementations
impl<SPI, NCS, E> SpiDevice<SPI, NCS> where
SPI: Write<u8, Error = E> + Transfer<u8, Error = E>,
NCS: OutputPin,
[src]
SPI: Write<u8, Error = E> + Transfer<u8, Error = E>,
NCS: OutputPin,
Trait Implementations
impl<SPI, NCS, E, EO> Device for SpiDevice<SPI, NCS> where
SPI: Write<u8, Error = E> + Transfer<u8, Error = E>,
NCS: OutputPin<Error = EO>,
[src]
SPI: Write<u8, Error = E> + Transfer<u8, Error = E>,
NCS: OutputPin<Error = EO>,
type Error = SpiError<E, EO>
The type of error for all results
fn read_many(
&mut self,
reg: Register,
buffer: &mut [u8]
) -> Result<(), Self::Error>
[src]
&mut self,
reg: Register,
buffer: &mut [u8]
) -> Result<(), Self::Error>
fn write(&mut self, reg: Register, val: u8) -> Result<(), Self::Error>
[src]
fn write_many(
&mut self,
reg: Register,
buffer: &[u8]
) -> Result<(), Self::Error>
[src]
&mut self,
reg: Register,
buffer: &[u8]
) -> Result<(), Self::Error>
fn read(&mut self, reg: Register) -> Result<u8, Self::Error>
[src]
fn modify<F>(&mut self, reg: Register, f: F) -> Result<(), Self::Error> where
F: FnOnce(u8) -> u8,
[src]
F: FnOnce(u8) -> u8,
impl<SPI, NCS, E, EO> NineDOFDevice for SpiDevice<SPI, NCS> where
SPI: Write<u8, Error = E> + Transfer<u8, Error = E>,
NCS: OutputPin<Error = EO>,
[src]
SPI: Write<u8, Error = E> + Transfer<u8, Error = E>,
NCS: OutputPin<Error = EO>,
Auto Trait Implementations
impl<SPI, GPIO> RefUnwindSafe for SpiDevice<SPI, GPIO> where
GPIO: RefUnwindSafe,
SPI: RefUnwindSafe,
GPIO: RefUnwindSafe,
SPI: RefUnwindSafe,
impl<SPI, GPIO> Send for SpiDevice<SPI, GPIO> where
GPIO: Send,
SPI: Send,
GPIO: Send,
SPI: Send,
impl<SPI, GPIO> Sync for SpiDevice<SPI, GPIO> where
GPIO: Sync,
SPI: Sync,
GPIO: Sync,
SPI: Sync,
impl<SPI, GPIO> Unpin for SpiDevice<SPI, GPIO> where
GPIO: Unpin,
SPI: Unpin,
GPIO: Unpin,
SPI: Unpin,
impl<SPI, GPIO> UnwindSafe for SpiDevice<SPI, GPIO> where
GPIO: UnwindSafe,
SPI: UnwindSafe,
GPIO: UnwindSafe,
SPI: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,