Struct libftd2xx_cc1101::regs::AGCCTRL2 [−][src]
pub struct AGCCTRL2 { /* fields omitted */ }
Expand description
Implementations
Returns the value of max_dvga_gain.
pub fn max_dvga_gain_or_err(
&self
) -> Result<<MaxDvgaGain as Specifier>::InOut, InvalidBitPattern<<MaxDvgaGain as Specifier>::Bytes>>
pub fn max_dvga_gain_or_err(
&self
) -> Result<<MaxDvgaGain as Specifier>::InOut, InvalidBitPattern<<MaxDvgaGain as Specifier>::Bytes>>
Returns the value of max_dvga_gain.
#Errors
If the returned value contains an invalid bit pattern for max_dvga_gain.
Returns a copy of the bitfield with the value of max_dvga_gain set to the given value.
#Panics
If the given value is out of bounds for max_dvga_gain.
pub fn with_max_dvga_gain_checked(
self,
new_val: <MaxDvgaGain as Specifier>::InOut
) -> Result<Self, OutOfBounds>
pub fn with_max_dvga_gain_checked(
self,
new_val: <MaxDvgaGain as Specifier>::InOut
) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of max_dvga_gain set to the given value.
#Errors
If the given value is out of bounds for max_dvga_gain.
Sets the value of max_dvga_gain to the given value.
#Panics
If the given value is out of bounds for max_dvga_gain.
pub fn set_max_dvga_gain_checked(
&mut self,
new_val: <MaxDvgaGain as Specifier>::InOut
) -> Result<(), OutOfBounds>
pub fn set_max_dvga_gain_checked(
&mut self,
new_val: <MaxDvgaGain as Specifier>::InOut
) -> Result<(), OutOfBounds>
Sets the value of max_dvga_gain to the given value.
#Errors
If the given value is out of bounds for max_dvga_gain.
Returns the value of max_lna_gain.
pub fn max_lna_gain_or_err(
&self
) -> Result<<MaxLnaGain as Specifier>::InOut, InvalidBitPattern<<MaxLnaGain as Specifier>::Bytes>>
pub fn max_lna_gain_or_err(
&self
) -> Result<<MaxLnaGain as Specifier>::InOut, InvalidBitPattern<<MaxLnaGain as Specifier>::Bytes>>
Returns the value of max_lna_gain.
#Errors
If the returned value contains an invalid bit pattern for max_lna_gain.
Returns a copy of the bitfield with the value of max_lna_gain set to the given value.
#Panics
If the given value is out of bounds for max_lna_gain.
pub fn with_max_lna_gain_checked(
self,
new_val: <MaxLnaGain as Specifier>::InOut
) -> Result<Self, OutOfBounds>
pub fn with_max_lna_gain_checked(
self,
new_val: <MaxLnaGain as Specifier>::InOut
) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of max_lna_gain set to the given value.
#Errors
If the given value is out of bounds for max_lna_gain.
Sets the value of max_lna_gain to the given value.
#Panics
If the given value is out of bounds for max_lna_gain.
pub fn set_max_lna_gain_checked(
&mut self,
new_val: <MaxLnaGain as Specifier>::InOut
) -> Result<(), OutOfBounds>
pub fn set_max_lna_gain_checked(
&mut self,
new_val: <MaxLnaGain as Specifier>::InOut
) -> Result<(), OutOfBounds>
Sets the value of max_lna_gain to the given value.
#Errors
If the given value is out of bounds for max_lna_gain.
Returns the value of magn_target.
pub fn magn_target_or_err(
&self
) -> Result<<MagnTarget as Specifier>::InOut, InvalidBitPattern<<MagnTarget as Specifier>::Bytes>>
pub fn magn_target_or_err(
&self
) -> Result<<MagnTarget as Specifier>::InOut, InvalidBitPattern<<MagnTarget as Specifier>::Bytes>>
Returns the value of magn_target.
#Errors
If the returned value contains an invalid bit pattern for magn_target.
Returns a copy of the bitfield with the value of magn_target set to the given value.
#Panics
If the given value is out of bounds for magn_target.
pub fn with_magn_target_checked(
self,
new_val: <MagnTarget as Specifier>::InOut
) -> Result<Self, OutOfBounds>
pub fn with_magn_target_checked(
self,
new_val: <MagnTarget as Specifier>::InOut
) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of magn_target set to the given value.
#Errors
If the given value is out of bounds for magn_target.
Sets the value of magn_target to the given value.
#Panics
If the given value is out of bounds for magn_target.
pub fn set_magn_target_checked(
&mut self,
new_val: <MagnTarget as Specifier>::InOut
) -> Result<(), OutOfBounds>
pub fn set_magn_target_checked(
&mut self,
new_val: <MagnTarget as Specifier>::InOut
) -> Result<(), OutOfBounds>
Sets the value of magn_target to the given value.
#Errors
If the given value is out of bounds for magn_target.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AGCCTRL2
impl UnwindSafe for AGCCTRL2
Blanket Implementations
Mutably borrows from an owned value. Read more