Struct xbee_s2c::XBeeApiSpi
source · pub struct XBeeApiSpi<'a, 'b, 'c, S: 'a, C: 'b, A: 'c> { /* private fields */ }
Implementations
sourceimpl<'a, 'b, 'c, E, S, C, A> XBeeApiSpi<'a, 'b, 'c, S, C, A>where
S: FullDuplex<u8, Error = E>,
C: OutputPin,
A: InputPin,
impl<'a, 'b, 'c, E, S, C, A> XBeeApiSpi<'a, 'b, 'c, S, C, A>where
S: FullDuplex<u8, Error = E>,
C: OutputPin,
A: InputPin,
pub fn new(
spi: &'a mut S,
cs: Option<&'b mut C>,
attn: &'c mut A
) -> XBeeApiSpi<'a, 'b, 'c, S, C, A>
pub fn tx_queue_empty(&self) -> bool
pub fn tx_queue_full(&self) -> bool
pub fn rx_queue_empty(&self) -> bool
pub fn rx_queue_full(&self) -> bool
pub fn transmit_and_receive(&mut self) -> Result<bool, E>
pub fn tx_rx_internal(&mut self) -> Result<bool, E>
pub fn get_sender_receiver<'d>(
&'d mut self
) -> (XBeeApiSender<'d, E>, XBeeApiReceiver<'d, E>)
Auto Trait Implementations
impl<'a, 'b, 'c, S, C, A> RefUnwindSafe for XBeeApiSpi<'a, 'b, 'c, S, C, A>where
A: RefUnwindSafe,
C: RefUnwindSafe,
S: RefUnwindSafe,
impl<'a, 'b, 'c, S, C, A> Send for XBeeApiSpi<'a, 'b, 'c, S, C, A>where
A: Send,
C: Send,
S: Send,
impl<'a, 'b, 'c, S, C, A> Sync for XBeeApiSpi<'a, 'b, 'c, S, C, A>where
A: Sync,
C: Sync,
S: Sync,
impl<'a, 'b, 'c, S, C, A> Unpin for XBeeApiSpi<'a, 'b, 'c, S, C, A>
impl<'a, 'b, 'c, S, C, A> !UnwindSafe for XBeeApiSpi<'a, 'b, 'c, S, C, A>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more