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