pub struct ObserveTx(/* private fields */);Expand description
§OBSERVE_TX register
Transmit observe register.
Address = 0x08
§plos_cnt | bits 7:4
Count lost packets. This counter is overflow protected to 15,
and continues at max until reset. This counter is reset by writing
to RfCh. This field is read-only.
§arc_cnt | 3:0
Count retransmitted packets. The counter is reset when transmission of a new packet starts. This field is read-only.
§Example
use nrf24l01_commands::registers;
// Default value
let reg = registers::ObserveTx::new();
assert_eq!(reg.into_bits(), 0);
// Read fields
let reg = registers::ObserveTx::from_bits(0b1010_1100);
assert_eq!(reg.plos_cnt(), 10);
assert_eq!(reg.arc_cnt(), 12);Implementations§
Trait Implementations§
impl Copy for ObserveTx
Auto Trait Implementations§
impl Freeze for ObserveTx
impl RefUnwindSafe for ObserveTx
impl Send for ObserveTx
impl Sync for ObserveTx
impl Unpin for ObserveTx
impl UnwindSafe for ObserveTx
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