pub struct RxAddrP4(/* private fields */);Expand description
§RX_ADDR_P4 register
RX address data pipe 4. Only LSByte is stored.
MSBytes are equal to RxAddrP1 bits 39:8.
Address = 0x0E
§Fields
§rx_addr_p4 | bits 7:0
RX address data pipe 4. Default value: 0xC5.
§Example
use nrf24l01_commands::registers;
// Default value
let reg = registers::RxAddrP4::new();
assert_eq!(reg.into_bits(), 0xC5);
// Write fields
let reg = registers::RxAddrP4::new().with_rx_addr_p4(172);
assert_eq!(reg.into_bits(), 172);Implementations§
Source§impl RxAddrP4
impl RxAddrP4
Sourcepub const fn rx_addr_p4(&self) -> u8
pub const fn rx_addr_p4(&self) -> u8
RX address data pipe 4. Default value: 0xC5.
Bits: 0..8
Sourcepub const fn with_rx_addr_p4_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_rx_addr_p4_checked(self, value: u8) -> Result<Self, ()>
RX address data pipe 4. Default value: 0xC5.
Bits: 0..8
Sourcepub const fn with_rx_addr_p4(self, value: u8) -> Self
pub const fn with_rx_addr_p4(self, value: u8) -> Self
RX address data pipe 4. Default value: 0xC5.
Bits: 0..8
Sourcepub const fn set_rx_addr_p4(&mut self, value: u8)
pub const fn set_rx_addr_p4(&mut self, value: u8)
RX address data pipe 4. Default value: 0xC5.
Bits: 0..8
Trait Implementations§
impl Copy for RxAddrP4
Auto Trait Implementations§
impl Freeze for RxAddrP4
impl RefUnwindSafe for RxAddrP4
impl Send for RxAddrP4
impl Sync for RxAddrP4
impl Unpin for RxAddrP4
impl UnwindSafe for RxAddrP4
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