Enum stm32wlxx_hal::subghz::Calibrate
source · #[repr(u8)]pub enum Calibrate {
Image = 64,
AdcBulkP = 32,
AdcBulkN = 16,
AdcPulse = 8,
Pll = 4,
Rc13M = 2,
Rc64K = 1,
}
Expand description
Block calibration.
Argument of calibrate
.
Variants§
Image = 64
Image calibration
AdcBulkP = 32
RF-ADC bulk P calibration
AdcBulkN = 16
RF-ADC bulk N calibration
AdcPulse = 8
RF-ADC pulse calibration
Pll = 4
RF-PLL calibration
Rc13M = 2
Sub-GHz radio RC 13 MHz calibration
Rc64K = 1
Sub-GHz radio RC 64 kHz calibration
Implementations§
source§impl Calibrate
impl Calibrate
sourcepub const fn mask(self) -> u8
pub const fn mask(self) -> u8
Get the bitmask for the block calibration.
Example
use stm32wlxx_hal::subghz::Calibrate;
assert_eq!(Calibrate::Image.mask(), 0b0100_0000);
assert_eq!(Calibrate::AdcBulkP.mask(), 0b0010_0000);
assert_eq!(Calibrate::AdcBulkN.mask(), 0b0001_0000);
assert_eq!(Calibrate::AdcPulse.mask(), 0b0000_1000);
assert_eq!(Calibrate::Pll.mask(), 0b0000_0100);
assert_eq!(Calibrate::Rc13M.mask(), 0b0000_0010);
assert_eq!(Calibrate::Rc64K.mask(), 0b0000_0001);
Trait Implementations§
source§impl PartialEq for Calibrate
impl PartialEq for Calibrate
impl Copy for Calibrate
impl Eq for Calibrate
impl StructuralEq for Calibrate
impl StructuralPartialEq for Calibrate
Auto Trait Implementations§
impl RefUnwindSafe for Calibrate
impl Send for Calibrate
impl Sync for Calibrate
impl Unpin for Calibrate
impl UnwindSafe for Calibrate
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