Struct libftd2xx_cc1101::regs::PKTCTRL1 [−][src]
pub struct PKTCTRL1 { /* fields omitted */ }
Expand description
Implementations
pub fn pqt_or_err(
&self
) -> Result<<B3 as Specifier>::InOut, InvalidBitPattern<<B3 as Specifier>::Bytes>>
pub fn pqt_or_err(
&self
) -> Result<<B3 as Specifier>::InOut, InvalidBitPattern<<B3 as Specifier>::Bytes>>
Returns the value of pqt.
#Errors
If the returned value contains an invalid bit pattern for pqt.
Returns a copy of the bitfield with the value of pqt set to the given value.
#Panics
If the given value is out of bounds for pqt.
Returns a copy of the bitfield with the value of pqt set to the given value.
#Errors
If the given value is out of bounds for pqt.
Sets the value of pqt to the given value.
#Panics
If the given value is out of bounds for pqt.
pub fn set_pqt_checked(
&mut self,
new_val: <B3 as Specifier>::InOut
) -> Result<(), OutOfBounds>
pub fn set_pqt_checked(
&mut self,
new_val: <B3 as Specifier>::InOut
) -> Result<(), OutOfBounds>
Sets the value of pqt to the given value.
#Errors
If the given value is out of bounds for pqt.
Returns the value of crc_autoflush.
pub fn crc_autoflush_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn crc_autoflush_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of crc_autoflush.
#Errors
If the returned value contains an invalid bit pattern for crc_autoflush.
Returns a copy of the bitfield with the value of crc_autoflush set to the given value.
#Panics
If the given value is out of bounds for crc_autoflush.
pub fn with_crc_autoflush_checked(
self,
new_val: <bool as Specifier>::InOut
) -> Result<Self, OutOfBounds>
pub fn with_crc_autoflush_checked(
self,
new_val: <bool as Specifier>::InOut
) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of crc_autoflush set to the given value.
#Errors
If the given value is out of bounds for crc_autoflush.
Sets the value of crc_autoflush to the given value.
#Panics
If the given value is out of bounds for crc_autoflush.
pub fn set_crc_autoflush_checked(
&mut self,
new_val: <bool as Specifier>::InOut
) -> Result<(), OutOfBounds>
pub fn set_crc_autoflush_checked(
&mut self,
new_val: <bool as Specifier>::InOut
) -> Result<(), OutOfBounds>
Sets the value of crc_autoflush to the given value.
#Errors
If the given value is out of bounds for crc_autoflush.
Returns the value of append_status.
pub fn append_status_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn append_status_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of append_status.
#Errors
If the returned value contains an invalid bit pattern for append_status.
Returns a copy of the bitfield with the value of append_status set to the given value.
#Panics
If the given value is out of bounds for append_status.
pub fn with_append_status_checked(
self,
new_val: <bool as Specifier>::InOut
) -> Result<Self, OutOfBounds>
pub fn with_append_status_checked(
self,
new_val: <bool as Specifier>::InOut
) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of append_status set to the given value.
#Errors
If the given value is out of bounds for append_status.
Sets the value of append_status to the given value.
#Panics
If the given value is out of bounds for append_status.
pub fn set_append_status_checked(
&mut self,
new_val: <bool as Specifier>::InOut
) -> Result<(), OutOfBounds>
pub fn set_append_status_checked(
&mut self,
new_val: <bool as Specifier>::InOut
) -> Result<(), OutOfBounds>
Sets the value of append_status to the given value.
#Errors
If the given value is out of bounds for append_status.
pub fn adr_chk_or_err(
&self
) -> Result<<AdrChk as Specifier>::InOut, InvalidBitPattern<<AdrChk as Specifier>::Bytes>>
pub fn adr_chk_or_err(
&self
) -> Result<<AdrChk as Specifier>::InOut, InvalidBitPattern<<AdrChk as Specifier>::Bytes>>
Returns the value of adr_chk.
#Errors
If the returned value contains an invalid bit pattern for adr_chk.
Returns a copy of the bitfield with the value of adr_chk set to the given value.
#Panics
If the given value is out of bounds for adr_chk.
pub fn with_adr_chk_checked(
self,
new_val: <AdrChk as Specifier>::InOut
) -> Result<Self, OutOfBounds>
pub fn with_adr_chk_checked(
self,
new_val: <AdrChk as Specifier>::InOut
) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of adr_chk set to the given value.
#Errors
If the given value is out of bounds for adr_chk.
Sets the value of adr_chk to the given value.
#Panics
If the given value is out of bounds for adr_chk.
pub fn set_adr_chk_checked(
&mut self,
new_val: <AdrChk as Specifier>::InOut
) -> Result<(), OutOfBounds>
pub fn set_adr_chk_checked(
&mut self,
new_val: <AdrChk as Specifier>::InOut
) -> Result<(), OutOfBounds>
Sets the value of adr_chk to the given value.
#Errors
If the given value is out of bounds for adr_chk.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PKTCTRL1
impl UnwindSafe for PKTCTRL1
Blanket Implementations
Mutably borrows from an owned value. Read more