RegisterBlock

Struct RegisterBlock 

#[repr(C)]
pub struct RegisterBlock {
Show 26 fields sc: Sc, mod_: Mod, cnt: Cnt, idly: Idly, chc1: (), _reserved5: [u8; 4], chs: (), _reserved6: [u8; 4], chdly0: (), _reserved7: [u8; 4], chdly1: (), _reserved8: [u8; 4], chdly2: (), _reserved9: [u8; 4], chdly3: (), _reserved10: [u8; 4], chdly4: (), _reserved11: [u8; 4], chdly5: (), _reserved12: [u8; 4], chdly6: (), _reserved13: [u8; 4], chdly7: (), _reserved14: [u8; 348], poen: Poen, _reserved_15_dly1: [u8; 4],
}
Expand description

Register block

Fields§

§sc: Sc§mod_: Mod§cnt: Cnt§idly: Idly§chc1: ()§_reserved5: [u8; 4]§chs: ()§_reserved6: [u8; 4]§chdly0: ()§_reserved7: [u8; 4]§chdly1: ()§_reserved8: [u8; 4]§chdly2: ()§_reserved9: [u8; 4]§chdly3: ()§_reserved10: [u8; 4]§chdly4: ()§_reserved11: [u8; 4]§chdly5: ()§_reserved12: [u8; 4]§chdly6: ()§_reserved13: [u8; 4]§chdly7: ()§_reserved14: [u8; 348]§poen: Poen§_reserved_15_dly1: [u8; 4]

Implementations§

§

impl RegisterBlock

pub const fn sc(&self) -> &Sc

0x00 - Status and Control register

pub const fn mod_(&self) -> &Mod

0x04 - Modulus register

pub const fn cnt(&self) -> &Cnt

0x08 - Counter register

pub const fn idly(&self) -> &Idly

0x0c - Interrupt Delay register

pub const fn chc1(&self, n: usize) -> &Chc1

0x10..0x1c - Channel n Control register 1

pub fn chc1_iter(&self) -> impl Iterator<Item = &Chc1>

Iterator for array of: 0x10..0x1c - Channel n Control register 1

pub const fn ch0c1(&self) -> &Chc1

0x10 - Channel n Control register 1

pub const fn ch1c1(&self) -> &Chc1

0x38 - Channel n Control register 1

pub const fn ch2c1(&self) -> &Chc1

0x60 - Channel n Control register 1

pub const fn chs(&self, n: usize) -> &Chs

0x14..0x20 - Channel n Status register

pub fn chs_iter(&self) -> impl Iterator<Item = &Chs>

Iterator for array of: 0x14..0x20 - Channel n Status register

pub const fn ch0s(&self) -> &Chs

0x14 - Channel n Status register

pub const fn ch1s(&self) -> &Chs

0x3c - Channel n Status register

pub const fn ch2s(&self) -> &Chs

0x64 - Channel n Status register

pub const fn chdly0(&self, n: usize) -> &Chdly0

0x18..0x24 - Channel n Delay 0 register

pub fn chdly0_iter(&self) -> impl Iterator<Item = &Chdly0>

Iterator for array of: 0x18..0x24 - Channel n Delay 0 register

pub const fn ch0dly0(&self) -> &Chdly0

0x18 - Channel n Delay 0 register

pub const fn ch1dly0(&self) -> &Chdly0

0x40 - Channel n Delay 0 register

pub const fn ch2dly0(&self) -> &Chdly0

0x68 - Channel n Delay 0 register

pub const fn chdly1(&self, n: usize) -> &Chdly1

0x1c..0x28 - Channel n Delay 1 register

pub fn chdly1_iter(&self) -> impl Iterator<Item = &Chdly1>

Iterator for array of: 0x1c..0x28 - Channel n Delay 1 register

pub const fn ch0dly1(&self) -> &Chdly1

0x1c - Channel n Delay 1 register

pub const fn ch1dly1(&self) -> &Chdly1

0x44 - Channel n Delay 1 register

pub const fn ch2dly1(&self) -> &Chdly1

0x6c - Channel n Delay 1 register

pub const fn chdly2(&self, n: usize) -> &Chdly2

0x20..0x2c - Channel n Delay 2 register

pub fn chdly2_iter(&self) -> impl Iterator<Item = &Chdly2>

Iterator for array of: 0x20..0x2c - Channel n Delay 2 register

pub const fn ch0dly2(&self) -> &Chdly2

0x20 - Channel n Delay 2 register

pub const fn ch1dly2(&self) -> &Chdly2

0x48 - Channel n Delay 2 register

pub const fn ch2dly2(&self) -> &Chdly2

0x70 - Channel n Delay 2 register

pub const fn chdly3(&self, n: usize) -> &Chdly3

0x24..0x30 - Channel n Delay 3 register

pub fn chdly3_iter(&self) -> impl Iterator<Item = &Chdly3>

Iterator for array of: 0x24..0x30 - Channel n Delay 3 register

pub const fn ch0dly3(&self) -> &Chdly3

0x24 - Channel n Delay 3 register

pub const fn ch1dly3(&self) -> &Chdly3

0x4c - Channel n Delay 3 register

pub const fn ch2dly3(&self) -> &Chdly3

0x74 - Channel n Delay 3 register

pub const fn chdly4(&self, n: usize) -> &Chdly4

0x28..0x34 - Channel n Delay 4 register

pub fn chdly4_iter(&self) -> impl Iterator<Item = &Chdly4>

Iterator for array of: 0x28..0x34 - Channel n Delay 4 register

pub const fn ch0dly4(&self) -> &Chdly4

0x28 - Channel n Delay 4 register

pub const fn ch1dly4(&self) -> &Chdly4

0x50 - Channel n Delay 4 register

pub const fn ch2dly4(&self) -> &Chdly4

0x78 - Channel n Delay 4 register

pub const fn chdly5(&self, n: usize) -> &Chdly5

0x2c..0x38 - Channel n Delay 5 register

pub fn chdly5_iter(&self) -> impl Iterator<Item = &Chdly5>

Iterator for array of: 0x2c..0x38 - Channel n Delay 5 register

pub const fn ch0dly5(&self) -> &Chdly5

0x2c - Channel n Delay 5 register

pub const fn ch1dly5(&self) -> &Chdly5

0x54 - Channel n Delay 5 register

pub const fn ch2dly5(&self) -> &Chdly5

0x7c - Channel n Delay 5 register

pub const fn chdly6(&self, n: usize) -> &Chdly6

0x30..0x3c - Channel n Delay 6 register

pub fn chdly6_iter(&self) -> impl Iterator<Item = &Chdly6>

Iterator for array of: 0x30..0x3c - Channel n Delay 6 register

pub const fn ch0dly6(&self) -> &Chdly6

0x30 - Channel n Delay 6 register

pub const fn ch1dly6(&self) -> &Chdly6

0x58 - Channel n Delay 6 register

pub const fn ch2dly6(&self) -> &Chdly6

0x80 - Channel n Delay 6 register

pub const fn chdly7(&self, n: usize) -> &Chdly7

0x34..0x40 - Channel n Delay 7 register

pub fn chdly7_iter(&self) -> impl Iterator<Item = &Chdly7>

Iterator for array of: 0x34..0x40 - Channel n Delay 7 register

pub const fn ch0dly7(&self) -> &Chdly7

0x34 - Channel n Delay 7 register

pub const fn ch1dly7(&self) -> &Chdly7

0x5c - Channel n Delay 7 register

pub const fn ch2dly7(&self) -> &Chdly7

0x84 - Channel n Delay 7 register

pub const fn poen(&self) -> &Poen

0x190 - Pulse-Out n Enable register

pub const fn dly2(&self) -> &Dly2

0x194 - PDB1_DLY2 register.

pub const fn podly(&self) -> &Podly

0x194 - Pulse-Out n Delay register

pub const fn dly1(&self) -> &Dly1

0x196 - PDB1_DLY1 register.

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.