pub struct WTxPayloadNoack<const N: usize>(pub [u8; N]);
Expand description
§W_TX_PAYLOAD_NOACK command
Write TX payload with AUTOACK disabled. Payload byte-order is kept as MSByte first contrary to documentation.
§Example
use nrf24l01_commands::commands;
let payload = [1, 2, 3, 4, 5, 6, 7, 8, 9];
let bytes = commands::WTxPayloadNoack(payload).bytes();
assert_eq!(bytes, [0b1011_0000, 1, 2, 3, 4, 5, 6, 7, 8, 9]);
Tuple Fields§
§0: [u8; N]
Payload to write.
Payload must be 1 to 32 bytes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<const N: usize> Freeze for WTxPayloadNoack<N>
impl<const N: usize> RefUnwindSafe for WTxPayloadNoack<N>
impl<const N: usize> Send for WTxPayloadNoack<N>
impl<const N: usize> Sync for WTxPayloadNoack<N>
impl<const N: usize> Unpin for WTxPayloadNoack<N>
impl<const N: usize> UnwindSafe for WTxPayloadNoack<N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more