Type Alias R

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

Register CRH reader

Aliased Type§

pub struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn mode(&self, n: u8) -> MODE_R

Port n.(8-15) mode bits

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

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

Iterator for array of: Port n.(8-15) mode bits

Source

pub fn mode8(&self) -> MODE_R

Bits 0:1 - Port n.8 mode bits

Source

pub fn mode9(&self) -> MODE_R

Bits 4:5 - Port n.9 mode bits

Source

pub fn mode10(&self) -> MODE_R

Bits 8:9 - Port n.10 mode bits

Source

pub fn mode11(&self) -> MODE_R

Bits 12:13 - Port n.11 mode bits

Source

pub fn mode12(&self) -> MODE_R

Bits 16:17 - Port n.12 mode bits

Source

pub fn mode13(&self) -> MODE_R

Bits 20:21 - Port n.13 mode bits

Source

pub fn mode14(&self) -> MODE_R

Bits 24:25 - Port n.14 mode bits

Source

pub fn mode15(&self) -> MODE_R

Bits 28:29 - Port n.15 mode bits

Source

pub fn cnf(&self, n: u8) -> CNF_R

Port n.(8-15) configuration bits

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

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

Iterator for array of: Port n.(8-15) configuration bits

Source

pub fn cnf8(&self) -> CNF_R

Bits 2:3 - Port n.8 configuration bits

Source

pub fn cnf9(&self) -> CNF_R

Bits 6:7 - Port n.9 configuration bits

Source

pub fn cnf10(&self) -> CNF_R

Bits 10:11 - Port n.10 configuration bits

Source

pub fn cnf11(&self) -> CNF_R

Bits 14:15 - Port n.11 configuration bits

Source

pub fn cnf12(&self) -> CNF_R

Bits 18:19 - Port n.12 configuration bits

Source

pub fn cnf13(&self) -> CNF_R

Bits 22:23 - Port n.13 configuration bits

Source

pub fn cnf14(&self) -> CNF_R

Bits 26:27 - Port n.14 configuration bits

Source

pub fn cnf15(&self) -> CNF_R

Bits 30:31 - Port n.15 configuration bits

Trait Implementations§

Source§

impl Debug for R

Source§

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

Formats the value using the given formatter. Read more