Type Alias R

Source
pub type R = R<SMPR2rs>;
Expand description

Register SMPR2 reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn smp(&self, n: u8) -> SMP_R

Channel (0-9) sample time selection

`n` is number of field in register. `n == 0` corresponds to `SMP0` field.
Source

pub fn smp_iter(&self) -> impl Iterator<Item = SMP_R> + '_

Iterator for array of: Channel (0-9) sample time selection

Source

pub fn smp0(&self) -> SMP_R

Bits 0:2 - Channel 0 sample time selection

Source

pub fn smp1(&self) -> SMP_R

Bits 3:5 - Channel 1 sample time selection

Source

pub fn smp2(&self) -> SMP_R

Bits 6:8 - Channel 2 sample time selection

Source

pub fn smp3(&self) -> SMP_R

Bits 9:11 - Channel 3 sample time selection

Source

pub fn smp4(&self) -> SMP_R

Bits 12:14 - Channel 4 sample time selection

Source

pub fn smp5(&self) -> SMP_R

Bits 15:17 - Channel 5 sample time selection

Source

pub fn smp6(&self) -> SMP_R

Bits 18:20 - Channel 6 sample time selection

Source

pub fn smp7(&self) -> SMP_R

Bits 21:23 - Channel 7 sample time selection

Source

pub fn smp8(&self) -> SMP_R

Bits 24:26 - Channel 8 sample time selection

Source

pub fn smp9(&self) -> SMP_R

Bits 27:29 - Channel 9 sample time selection

Trait Implementations§

Source§

impl Debug for R

Source§

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

Formats the value using the given formatter. Read more