RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn deviceid0(&self) -> &DEVICEID0

0x00 - Device ID Byte 0

Source

pub const fn deviceid1(&self) -> &DEVICEID1

0x01 - Device ID Byte 1

Source

pub const fn deviceid2(&self) -> &DEVICEID2

0x02 - Device ID Byte 2

Source

pub const fn sernum0(&self) -> &SERNUM0

0x03 - Serial Number Byte 0

Source

pub const fn sernum1(&self) -> &SERNUM1

0x04 - Serial Number Byte 1

Source

pub const fn sernum2(&self) -> &SERNUM2

0x05 - Serial Number Byte 2

Source

pub const fn sernum3(&self) -> &SERNUM3

0x06 - Serial Number Byte 3

Source

pub const fn sernum4(&self) -> &SERNUM4

0x07 - Serial Number Byte 4

Source

pub const fn sernum5(&self) -> &SERNUM5

0x08 - Serial Number Byte 5

Source

pub const fn sernum6(&self) -> &SERNUM6

0x09 - Serial Number Byte 6

Source

pub const fn sernum7(&self) -> &SERNUM7

0x0a - Serial Number Byte 7

Source

pub const fn sernum8(&self) -> &SERNUM8

0x0b - Serial Number Byte 8

Source

pub const fn sernum9(&self) -> &SERNUM9

0x0c - Serial Number Byte 9

Source

pub const fn osccal32k(&self) -> &OSCCAL32K

0x14 - Oscillator Calibration for 32kHz ULP

Source

pub const fn osccal16m0(&self) -> &OSCCAL16M0

0x18 - Oscillator Calibration 16 MHz Byte 0

Source

pub const fn osccal16m1(&self) -> &OSCCAL16M1

0x19 - Oscillator Calibration 16 MHz Byte 1

Source

pub const fn osccal20m0(&self) -> &OSCCAL20M0

0x1a - Oscillator Calibration 20 MHz Byte 0

Source

pub const fn osccal20m1(&self) -> &OSCCAL20M1

0x1b - Oscillator Calibration 20 MHz Byte 1

Source

pub const fn tempsense0(&self) -> &TEMPSENSE0

0x20 - Temperature Sensor Calibration Byte 0

Source

pub const fn tempsense1(&self) -> &TEMPSENSE1

0x21 - Temperature Sensor Calibration Byte 1

Source

pub const fn osc16err3v(&self) -> &OSC16ERR3V

0x22 - OSC16 error at 3V

Source

pub const fn osc16err5v(&self) -> &OSC16ERR5V

0x23 - OSC16 error at 5V

Source

pub const fn osc20err3v(&self) -> &OSC20ERR3V

0x24 - OSC20 error at 3V

Source

pub const fn osc20err5v(&self) -> &OSC20ERR5V

0x25 - OSC20 error at 5V

Source

pub const fn checksum1(&self) -> &CHECKSUM1

0x2f - CRC Checksum Byte 1

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.