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