Struct driver_pal::mock::Spi [−][src]
Mock Transactional SPI implementation
Trait Implementations
impl Busy for Spi
[src]
type Error = Error<(), (), ()>
fn get_busy(&mut self) -> Result<PinState, Self::Error>
[src]
Check peripheral busy status
impl Clone for Spi
[src]
impl Debug for Spi
[src]
impl DelayMs<u32> for Spi
[src]
type Error = ()
Enumeration of DelayMs
errors
fn try_delay_ms(&mut self, t: u32) -> Result<(), Self::Error>
[src]
impl DelayUs<u32> for Spi
[src]
type Error = ()
Enumeration of DelayMs
errors
fn try_delay_us(&mut self, t: u32) -> Result<(), Self::Error>
[src]
impl Ready for Spi
[src]
type Error = Error<(), (), ()>
fn get_ready(&mut self) -> Result<PinState, Self::Error>
[src]
Check peripheral ready status
impl Reset for Spi
[src]
type Error = Error<(), (), ()>
fn set_reset(&mut self, state: PinState) -> Result<(), Self::Error>
[src]
Check peripheral ready status
impl Transactional<u8> for Spi
[src]
type Error = Error<(), (), ()>
Associated error type
fn try_exec<'a>(
&mut self,
operations: &mut [Operation<'a, u8>]
) -> Result<(), Self::Error>
[src]
&mut self,
operations: &mut [Operation<'a, u8>]
) -> Result<(), Self::Error>
impl Transfer<u8> for Spi
[src]
type Error = Error<(), (), ()>
Error type
fn try_transfer<'w>(
&mut self,
data: &'w mut [u8]
) -> Result<&'w [u8], Self::Error>
[src]
&mut self,
data: &'w mut [u8]
) -> Result<&'w [u8], Self::Error>
impl Write<u8> for Spi
[src]
Auto Trait Implementations
impl RefUnwindSafe for Spi
impl Send for Spi
impl Sync for Spi
impl Unpin for Spi
impl UnwindSafe for Spi
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, E> Hal<E> for T where
T: Transactional<u8, Error = E> + PrefixWrite<Error = E> + Busy<Error = E> + Ready<Error = E> + PrefixRead<Error = E> + Reset<Error = E> + DelayMs<u32> + DelayUs<u32>,
[src]
T: Transactional<u8, Error = E> + PrefixWrite<Error = E> + Busy<Error = E> + Ready<Error = E> + PrefixRead<Error = E> + Reset<Error = E> + DelayMs<u32> + DelayUs<u32>,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, E> PrefixRead for T where
T: Transactional<u8, Error = E>,
[src]
T: Transactional<u8, Error = E>,
type Error = E
pub fn try_prefix_read(
&mut Self,
&[u8],
&'a mut [u8]
) -> Result<(), <T as PrefixRead>::Error>
[src]
&mut Self,
&[u8],
&'a mut [u8]
) -> Result<(), <T as PrefixRead>::Error>
Read data with the specified prefix
impl<T, E> PrefixWrite for T where
T: Transactional<u8, Error = E>,
[src]
T: Transactional<u8, Error = E>,
type Error = E
pub fn try_prefix_write(
&mut Self,
&[u8],
&[u8]
) -> Result<(), <T as PrefixWrite>::Error>
[src]
&mut Self,
&[u8],
&[u8]
) -> Result<(), <T as PrefixWrite>::Error>
Write data with the specified prefix
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,