#[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

source

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 Clone for Calibrate

source§

fn clone(&self) -> Calibrate

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Calibrate

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for Calibrate

source§

fn eq(&self, other: &Calibrate) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for Calibrate

source§

impl Eq for Calibrate

source§

impl StructuralEq for Calibrate

source§

impl StructuralPartialEq for Calibrate

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.