#[repr(transparent)]pub struct Pcnf1(pub u32);
Expand description
Packet configuration register 1
Tuple Fields§
§0: u32
Implementations§
Source§impl Pcnf1
impl Pcnf1
Sourcepub const fn maxlen(&self) -> u8
pub const fn maxlen(&self) -> u8
Maximum length of packet payload. If the packet payload is larger than MAXLEN, the radio will truncate the payload to MAXLEN.
Sourcepub fn set_maxlen(&mut self, val: u8)
pub fn set_maxlen(&mut self, val: u8)
Maximum length of packet payload. If the packet payload is larger than MAXLEN, the radio will truncate the payload to MAXLEN.
Sourcepub fn set_statlen(&mut self, val: u8)
pub fn set_statlen(&mut self, val: u8)
Static length in number of bytes
Sourcepub const fn endian(&self) -> Endian
pub const fn endian(&self) -> Endian
On-air endianness of packet, this applies to the S0, LENGTH, S1, and the PAYLOAD fields.
Sourcepub fn set_endian(&mut self, val: Endian)
pub fn set_endian(&mut self, val: Endian)
On-air endianness of packet, this applies to the S0, LENGTH, S1, and the PAYLOAD fields.
Sourcepub fn set_whiteen(&mut self, val: bool)
pub fn set_whiteen(&mut self, val: bool)
Enable or disable packet whitening
Trait Implementations§
impl Copy for Pcnf1
impl Eq for Pcnf1
impl StructuralPartialEq for Pcnf1
Auto Trait Implementations§
impl Freeze for Pcnf1
impl RefUnwindSafe for Pcnf1
impl Send for Pcnf1
impl Sync for Pcnf1
impl Unpin for Pcnf1
impl UnwindSafe for Pcnf1
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)