RegisterBlock

Struct RegisterBlock 

#[repr(C)]
pub struct RegisterBlock {
Show 57 fields sc: Sc, cnt: Cnt, mod_: Mod, c0sc: C0sc, c0v: C0v, c1sc: C1sc, c1v: C1v, c2sc: C2sc, c2v: C2v, c3sc: C3sc, c3v: C3v, c4sc: C4sc, c4v: C4v, c5sc: C5sc, c5v: C5v, c6sc: C6sc, c6v: C6v, c7sc: C7sc, c7v: C7v, cntin: Cntin, status: Status, mode: Mode, sync: Sync, outinit: Outinit, outmask: Outmask, combine: Combine, deadtime: Deadtime, exttrig: Exttrig, pol: Pol, fms: Fms, filter: Filter, fltctrl: Fltctrl, qdctrl: Qdctrl, conf: Conf, fltpol: Fltpol, synconf: Synconf, invctrl: Invctrl, swoctrl: Swoctrl, pwmload: Pwmload, hcr: Hcr, pair0deadtime: Pair0deadtime, _reserved41: [u8; 4], pair1deadtime: Pair1deadtime, _reserved42: [u8; 4], pair2deadtime: Pair2deadtime, _reserved43: [u8; 4], pair3deadtime: Pair3deadtime, _reserved44: [u8; 324], mod_mirror: ModMirror, c0v_mirror: C0vMirror, c1v_mirror: C1vMirror, c2v_mirror: C2vMirror, c3v_mirror: C3vMirror, c4v_mirror: C4vMirror, c5v_mirror: C5vMirror, c6v_mirror: C6vMirror, c7v_mirror: C7vMirror,
}
Expand description

Register block

Fields§

§sc: Sc§cnt: Cnt§mod_: Mod§c0sc: C0sc§c0v: C0v§c1sc: C1sc§c1v: C1v§c2sc: C2sc§c2v: C2v§c3sc: C3sc§c3v: C3v§c4sc: C4sc§c4v: C4v§c5sc: C5sc§c5v: C5v§c6sc: C6sc§c6v: C6v§c7sc: C7sc§c7v: C7v§cntin: Cntin§status: Status§mode: Mode§sync: Sync§outinit: Outinit§outmask: Outmask§combine: Combine§deadtime: Deadtime§exttrig: Exttrig§pol: Pol§fms: Fms§filter: Filter§fltctrl: Fltctrl§qdctrl: Qdctrl§conf: Conf§fltpol: Fltpol§synconf: Synconf§invctrl: Invctrl§swoctrl: Swoctrl§pwmload: Pwmload§hcr: Hcr§pair0deadtime: Pair0deadtime§_reserved41: [u8; 4]§pair1deadtime: Pair1deadtime§_reserved42: [u8; 4]§pair2deadtime: Pair2deadtime§_reserved43: [u8; 4]§pair3deadtime: Pair3deadtime§_reserved44: [u8; 324]§mod_mirror: ModMirror§c0v_mirror: C0vMirror§c1v_mirror: C1vMirror§c2v_mirror: C2vMirror§c3v_mirror: C3vMirror§c4v_mirror: C4vMirror§c5v_mirror: C5vMirror§c6v_mirror: C6vMirror§c7v_mirror: C7vMirror

Implementations§

§

impl RegisterBlock

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

0x00 - Status And Control

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

0x04 - Counter

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

0x08 - Modulo

pub const fn c0sc(&self) -> &C0sc

0x0c - Channel (n) Status And Control

pub const fn c0v(&self) -> &C0v

0x10 - Channel (n) Value

pub const fn c1sc(&self) -> &C1sc

0x14 - Channel (n) Status And Control

pub const fn c1v(&self) -> &C1v

0x18 - Channel (n) Value

pub const fn c2sc(&self) -> &C2sc

0x1c - Channel (n) Status And Control

pub const fn c2v(&self) -> &C2v

0x20 - Channel (n) Value

pub const fn c3sc(&self) -> &C3sc

0x24 - Channel (n) Status And Control

pub const fn c3v(&self) -> &C3v

0x28 - Channel (n) Value

pub const fn c4sc(&self) -> &C4sc

0x2c - Channel (n) Status And Control

pub const fn c4v(&self) -> &C4v

0x30 - Channel (n) Value

pub const fn c5sc(&self) -> &C5sc

0x34 - Channel (n) Status And Control

pub const fn c5v(&self) -> &C5v

0x38 - Channel (n) Value

pub const fn c6sc(&self) -> &C6sc

0x3c - Channel (n) Status And Control

pub const fn c6v(&self) -> &C6v

0x40 - Channel (n) Value

pub const fn c7sc(&self) -> &C7sc

0x44 - Channel (n) Status And Control

pub const fn c7v(&self) -> &C7v

0x48 - Channel (n) Value

pub const fn cntin(&self) -> &Cntin

0x4c - Counter Initial Value

pub const fn status(&self) -> &Status

0x50 - Capture And Compare Status

pub const fn mode(&self) -> &Mode

0x54 - Features Mode Selection

pub const fn sync(&self) -> &Sync

0x58 - Synchronization

pub const fn outinit(&self) -> &Outinit

0x5c - Initial State For Channels Output

pub const fn outmask(&self) -> &Outmask

0x60 - Output Mask

pub const fn combine(&self) -> &Combine

0x64 - Function For Linked Channels

pub const fn deadtime(&self) -> &Deadtime

0x68 - Deadtime Configuration

pub const fn exttrig(&self) -> &Exttrig

0x6c - FTM External Trigger

pub const fn pol(&self) -> &Pol

0x70 - Channels Polarity

pub const fn fms(&self) -> &Fms

0x74 - Fault Mode Status

pub const fn filter(&self) -> &Filter

0x78 - Input Capture Filter Control

pub const fn fltctrl(&self) -> &Fltctrl

0x7c - Fault Control

pub const fn qdctrl(&self) -> &Qdctrl

0x80 - Quadrature Decoder Control And Status

pub const fn conf(&self) -> &Conf

0x84 - Configuration

pub const fn fltpol(&self) -> &Fltpol

0x88 - FTM Fault Input Polarity

pub const fn synconf(&self) -> &Synconf

0x8c - Synchronization Configuration

pub const fn invctrl(&self) -> &Invctrl

0x90 - FTM Inverting Control

pub const fn swoctrl(&self) -> &Swoctrl

0x94 - FTM Software Output Control

pub const fn pwmload(&self) -> &Pwmload

0x98 - FTM PWM Load

pub const fn hcr(&self) -> &Hcr

0x9c - Half Cycle Register

pub const fn pair0deadtime(&self) -> &Pair0deadtime

0xa0 - Pair 0 Deadtime Configuration

pub const fn pair1deadtime(&self) -> &Pair1deadtime

0xa8 - Pair 1 Deadtime Configuration

pub const fn pair2deadtime(&self) -> &Pair2deadtime

0xb0 - Pair 2 Deadtime Configuration

pub const fn pair3deadtime(&self) -> &Pair3deadtime

0xb8 - Pair 3 Deadtime Configuration

pub const fn mod_mirror(&self) -> &ModMirror

0x200 - Mirror of Modulo Value

pub const fn c0v_mirror(&self) -> &C0vMirror

0x204 - Mirror of Channel (n) Match Value

pub const fn c1v_mirror(&self) -> &C1vMirror

0x208 - Mirror of Channel (n) Match Value

pub const fn c2v_mirror(&self) -> &C2vMirror

0x20c - Mirror of Channel (n) Match Value

pub const fn c3v_mirror(&self) -> &C3vMirror

0x210 - Mirror of Channel (n) Match Value

pub const fn c4v_mirror(&self) -> &C4vMirror

0x214 - Mirror of Channel (n) Match Value

pub const fn c5v_mirror(&self) -> &C5vMirror

0x218 - Mirror of Channel (n) Match Value

pub const fn c6v_mirror(&self) -> &C6vMirror

0x21c - Mirror of Channel (n) Match Value

pub const fn c7v_mirror(&self) -> &C7vMirror

0x220 - Mirror of Channel (n) Match Value

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.