Type Alias R

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

Register DR reader

Aliased Type§

pub struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn byte(&self, n: u8) -> BYTE_R

Data byte (0-3)

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

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

Iterator for array of: Data byte (0-3)

Source

pub fn byte0(&self) -> BYTE_R

Bits 0:7 - Data byte 0

Source

pub fn byte1(&self) -> BYTE_R

Bits 8:15 - Data byte 1

Source

pub fn byte2(&self) -> BYTE_R

Bits 16:23 - Data byte 2

Source

pub fn byte3(&self) -> BYTE_R

Bits 24:31 - Data byte 3

Trait Implementations§

Source§

impl Debug for R

Source§

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

Formats the value using the given formatter. Read more