pub struct RxPwP0(/* private fields */);Expand description
§RX_PW_P0 register
RX payload width for data pipe 0.
Address = 0x11
§Fields
§rx_pw_p0 | bits 7:0
RX payload width for data pipe 0. 1 - 32 bytes. 0 = pipe not used.
§Example
use nrf24l01_commands::registers;
// Default value
let reg = registers::RxPwP0::new();
assert_eq!(reg.into_bits(), 0);
// Write fields
let reg = registers::RxPwP0::new().with_rx_pw_p0(31);
assert_eq!(reg.into_bits(), 31);Implementations§
Source§impl RxPwP0
impl RxPwP0
Sourcepub const fn rx_pw_p0(&self) -> u8
pub const fn rx_pw_p0(&self) -> u8
RX payload width for data pipe 0. 1 - 32 bytes. 0 = pipe not used.
Bits: 0..6
Sourcepub const fn with_rx_pw_p0_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_rx_pw_p0_checked(self, value: u8) -> Result<Self, ()>
RX payload width for data pipe 0. 1 - 32 bytes. 0 = pipe not used.
Bits: 0..6
Sourcepub const fn with_rx_pw_p0(self, value: u8) -> Self
pub const fn with_rx_pw_p0(self, value: u8) -> Self
RX payload width for data pipe 0. 1 - 32 bytes. 0 = pipe not used.
Bits: 0..6
Sourcepub const fn set_rx_pw_p0(&mut self, value: u8)
pub const fn set_rx_pw_p0(&mut self, value: u8)
RX payload width for data pipe 0. 1 - 32 bytes. 0 = pipe not used.
Bits: 0..6
Trait Implementations§
impl Copy for RxPwP0
Auto Trait Implementations§
impl Freeze for RxPwP0
impl RefUnwindSafe for RxPwP0
impl Send for RxPwP0
impl Sync for RxPwP0
impl Unpin for RxPwP0
impl UnwindSafe for RxPwP0
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