Struct radio::mock::Transaction [−][src]
Transactions describe interactions with a radio device
Implementations
impl<St, Reg, Ch, Inf, Irq, E> Transaction<St, Reg, Ch, Inf, Irq, E>
[src]
pub fn set_state(state: St, err: Option<E>) -> Self
[src]
Set the radio state
pub fn get_state(res: Result<St, E>) -> Self
[src]
Get the radio state
pub fn is_busy(res: Result<bool, E>) -> Self
[src]
Check whether radio is currently busy
pub fn set_register(reg: Reg, value: u8, err: Option<E>) -> Self
[src]
Set a radio register
pub fn get_register(res: Result<u8, E>) -> Self
[src]
Get a radio register
pub fn set_channel(ch: Ch, err: Option<E>) -> Self
[src]
Set a radio channel
pub fn set_power(power: i8, err: Option<E>) -> Self
[src]
Set radio power
pub fn start_transmit(data: Vec<u8>, err: Option<E>) -> Self
[src]
Start radio transmission
pub fn check_transmit(res: Result<bool, E>) -> Self
[src]
Check for transmission completed
pub fn start_receive(err: Option<E>) -> Self
[src]
Start radio reception
pub fn check_receive(restart: bool, res: Result<bool, E>) -> Self
[src]
Check for radio reception
pub fn get_received(res: Result<(Vec<u8>, Inf), E>) -> Self
[src]
Fetch received data and information
pub fn get_irq(clear: bool, res: Result<Irq, E>) -> Self
[src]
Fetch radio IRQs
pub fn poll_rssi(res: Result<i16, E>) -> Self
[src]
Poll for RSSI
pub fn delay_us(ms: u32) -> Self
[src]
Delay for a certain time
Trait Implementations
impl<St: Clone, Reg: Clone, Ch: Clone, Inf: Clone, Irq: Clone, E: Clone> Clone for Transaction<St, Reg, Ch, Inf, Irq, E>
[src]
fn clone(&self) -> Transaction<St, Reg, Ch, Inf, Irq, E>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<St: Debug, Reg: Debug, Ch: Debug, Inf: Debug, Irq: Debug, E: Debug> Debug for Transaction<St, Reg, Ch, Inf, Irq, E>
[src]
impl<St: PartialEq, Reg: PartialEq, Ch: PartialEq, Inf: PartialEq, Irq: PartialEq, E: PartialEq> PartialEq<Transaction<St, Reg, Ch, Inf, Irq, E>> for Transaction<St, Reg, Ch, Inf, Irq, E>
[src]
fn eq(&self, other: &Transaction<St, Reg, Ch, Inf, Irq, E>) -> bool
[src]
fn ne(&self, other: &Transaction<St, Reg, Ch, Inf, Irq, E>) -> bool
[src]
impl<St, Reg, Ch, Inf, Irq, E> StructuralPartialEq for Transaction<St, Reg, Ch, Inf, Irq, E>
[src]
Auto Trait Implementations
impl<St, Reg, Ch, Inf, Irq, E> RefUnwindSafe for Transaction<St, Reg, Ch, Inf, Irq, E> where
Ch: RefUnwindSafe,
E: RefUnwindSafe,
Inf: RefUnwindSafe,
Irq: RefUnwindSafe,
Reg: RefUnwindSafe,
St: RefUnwindSafe,
Ch: RefUnwindSafe,
E: RefUnwindSafe,
Inf: RefUnwindSafe,
Irq: RefUnwindSafe,
Reg: RefUnwindSafe,
St: RefUnwindSafe,
impl<St, Reg, Ch, Inf, Irq, E> Send for Transaction<St, Reg, Ch, Inf, Irq, E> where
Ch: Send,
E: Send,
Inf: Send,
Irq: Send,
Reg: Send,
St: Send,
Ch: Send,
E: Send,
Inf: Send,
Irq: Send,
Reg: Send,
St: Send,
impl<St, Reg, Ch, Inf, Irq, E> Sync for Transaction<St, Reg, Ch, Inf, Irq, E> where
Ch: Sync,
E: Sync,
Inf: Sync,
Irq: Sync,
Reg: Sync,
St: Sync,
Ch: Sync,
E: Sync,
Inf: Sync,
Irq: Sync,
Reg: Sync,
St: Sync,
impl<St, Reg, Ch, Inf, Irq, E> Unpin for Transaction<St, Reg, Ch, Inf, Irq, E> where
Ch: Unpin,
E: Unpin,
Inf: Unpin,
Irq: Unpin,
Reg: Unpin,
St: Unpin,
Ch: Unpin,
E: Unpin,
Inf: Unpin,
Irq: Unpin,
Reg: Unpin,
St: Unpin,
impl<St, Reg, Ch, Inf, Irq, E> UnwindSafe for Transaction<St, Reg, Ch, Inf, Irq, E> where
Ch: UnwindSafe,
E: UnwindSafe,
Inf: UnwindSafe,
Irq: UnwindSafe,
Reg: UnwindSafe,
St: UnwindSafe,
Ch: UnwindSafe,
E: UnwindSafe,
Inf: UnwindSafe,
Irq: UnwindSafe,
Reg: UnwindSafe,
St: 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,
pub 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> 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>,