[−][src]Struct shared_bus_rtic::CommonBus
Implementations
impl<BUS> CommonBus<BUS>
[src]
Trait Implementations
impl<'_, BUS: FullDuplex<u16>> FullDuplex<u16> for &'_ CommonBus<BUS>
[src]
type Error = BUS::Error
An enumeration of SPI errors
fn read(&mut self) -> Result<u16, Self::Error>
[src]
fn send(&mut self, word: u16) -> Result<(), Self::Error>
[src]
impl<'_, BUS: FullDuplex<u32>> FullDuplex<u32> for &'_ CommonBus<BUS>
[src]
type Error = BUS::Error
An enumeration of SPI errors
fn read(&mut self) -> Result<u32, Self::Error>
[src]
fn send(&mut self, word: u32) -> Result<(), Self::Error>
[src]
impl<'_, BUS: FullDuplex<u64>> FullDuplex<u64> for &'_ CommonBus<BUS>
[src]
type Error = BUS::Error
An enumeration of SPI errors
fn read(&mut self) -> Result<u64, Self::Error>
[src]
fn send(&mut self, word: u64) -> Result<(), Self::Error>
[src]
impl<'_, BUS: FullDuplex<u8>> FullDuplex<u8> for &'_ CommonBus<BUS>
[src]
type Error = BUS::Error
An enumeration of SPI errors
fn read(&mut self) -> Result<u8, Self::Error>
[src]
fn send(&mut self, word: u8) -> Result<(), Self::Error>
[src]
impl<'_, BUS: Read> Read for &'_ CommonBus<BUS>
[src]
type Error = BUS::Error
Error type
fn read(&mut self, address: u8, buffer: &mut [u8]) -> Result<(), Self::Error>
[src]
impl<BUS> Sync for CommonBus<BUS>
[src]
impl<'_, BUS: Transfer<u16>> Transfer<u16> for &'_ CommonBus<BUS>
[src]
type Error = BUS::Error
Error type
fn transfer<'w>(
&mut self,
words: &'w mut [u16]
) -> Result<&'w [u16], Self::Error>
[src]
&mut self,
words: &'w mut [u16]
) -> Result<&'w [u16], Self::Error>
impl<'_, BUS: Transfer<u32>> Transfer<u32> for &'_ CommonBus<BUS>
[src]
type Error = BUS::Error
Error type
fn transfer<'w>(
&mut self,
words: &'w mut [u32]
) -> Result<&'w [u32], Self::Error>
[src]
&mut self,
words: &'w mut [u32]
) -> Result<&'w [u32], Self::Error>
impl<'_, BUS: Transfer<u64>> Transfer<u64> for &'_ CommonBus<BUS>
[src]
type Error = BUS::Error
Error type
fn transfer<'w>(
&mut self,
words: &'w mut [u64]
) -> Result<&'w [u64], Self::Error>
[src]
&mut self,
words: &'w mut [u64]
) -> Result<&'w [u64], Self::Error>
impl<'_, BUS: Transfer<u8>> Transfer<u8> for &'_ CommonBus<BUS>
[src]
type Error = BUS::Error
Error type
fn transfer<'w>(&mut self, words: &'w mut [u8]) -> Result<&'w [u8], Self::Error>
[src]
impl<'_, BUS: Write<u16>> Write<u16> for &'_ CommonBus<BUS>
[src]
type Error = BUS::Error
Error type
fn write(&mut self, words: &[u16]) -> Result<(), Self::Error>
[src]
impl<'_, BUS: Write<u32>> Write<u32> for &'_ CommonBus<BUS>
[src]
type Error = BUS::Error
Error type
fn write(&mut self, words: &[u32]) -> Result<(), Self::Error>
[src]
impl<'_, BUS: Write<u64>> Write<u64> for &'_ CommonBus<BUS>
[src]
type Error = BUS::Error
Error type
fn write(&mut self, words: &[u64]) -> Result<(), Self::Error>
[src]
impl<'_, BUS: Write<u8>> Write<u8> for &'_ CommonBus<BUS>
[src]
impl<'_, BUS: Write> Write for &'_ CommonBus<BUS>
[src]
type Error = BUS::Error
Error type
fn write(&mut self, address: u8, buffer: &[u8]) -> Result<(), Self::Error>
[src]
impl<'_, BUS: WriteRead> WriteRead for &'_ CommonBus<BUS>
[src]
Auto Trait Implementations
impl<BUS> Send for CommonBus<BUS> where
BUS: Send,
BUS: Send,
impl<BUS> Unpin for CommonBus<BUS> where
BUS: Unpin,
BUS: Unpin,
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>,