Struct Pcnf1
#[repr(transparent)]pub struct Pcnf1(pub u32);
Expand description
Packet configuration register 1
Tuple Fields§
§0: u32
Implementations§
§impl Pcnf1
impl Pcnf1
pub 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.
pub 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.
pub fn set_statlen(&mut self, val: u8)
pub fn set_statlen(&mut self, val: u8)
Static length in number of bytes
pub 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.
pub 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.
pub fn set_whiteen(&mut self, val: bool)
pub fn set_whiteen(&mut self, val: bool)
Enable or disable packet whitening
pub const fn whiteoffset(&self) -> Whiteoffset
pub const fn whiteoffset(&self) -> Whiteoffset
If whitening is enabled S0 can be configured to be excluded from whitening
pub fn set_whiteoffset(&mut self, val: Whiteoffset)
pub fn set_whiteoffset(&mut self, val: Whiteoffset)
If whitening is enabled S0 can be configured to be excluded from 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
)