Struct atsame51j::tcc0::RegisterBlock
source · [−]#[repr(C)]pub struct RegisterBlock {Show 17 fields
pub ctrla: Reg<CTRLA_SPEC>,
pub ctrlbclr: Reg<CTRLBCLR_SPEC>,
pub ctrlbset: Reg<CTRLBSET_SPEC>,
pub syncbusy: Reg<SYNCBUSY_SPEC>,
pub fctrla: Reg<FCTRLA_SPEC>,
pub fctrlb: Reg<FCTRLB_SPEC>,
pub wexctrl: Reg<WEXCTRL_SPEC>,
pub drvctrl: Reg<DRVCTRL_SPEC>,
pub dbgctrl: Reg<DBGCTRL_SPEC>,
pub evctrl: Reg<EVCTRL_SPEC>,
pub intenclr: Reg<INTENCLR_SPEC>,
pub intenset: Reg<INTENSET_SPEC>,
pub intflag: Reg<INTFLAG_SPEC>,
pub status: Reg<STATUS_SPEC>,
pub patt: Reg<PATT_SPEC>,
pub wave: Reg<WAVE_SPEC>,
pub pattbuf: Reg<PATTBUF_SPEC>,
/* private fields */
}
Expand description
Register block
Fields
ctrla: Reg<CTRLA_SPEC>
0x00 - Control A
ctrlbclr: Reg<CTRLBCLR_SPEC>
0x04 - Control B Clear
ctrlbset: Reg<CTRLBSET_SPEC>
0x05 - Control B Set
syncbusy: Reg<SYNCBUSY_SPEC>
0x08 - Synchronization Busy
fctrla: Reg<FCTRLA_SPEC>
0x0c - Recoverable Fault A Configuration
fctrlb: Reg<FCTRLB_SPEC>
0x10 - Recoverable Fault B Configuration
wexctrl: Reg<WEXCTRL_SPEC>
0x14 - Waveform Extension Configuration
drvctrl: Reg<DRVCTRL_SPEC>
0x18 - Driver Control
dbgctrl: Reg<DBGCTRL_SPEC>
0x1e - Debug Control
evctrl: Reg<EVCTRL_SPEC>
0x20 - Event Control
intenclr: Reg<INTENCLR_SPEC>
0x24 - Interrupt Enable Clear
intenset: Reg<INTENSET_SPEC>
0x28 - Interrupt Enable Set
intflag: Reg<INTFLAG_SPEC>
0x2c - Interrupt Flag Status and Clear
status: Reg<STATUS_SPEC>
0x30 - Status
patt: Reg<PATT_SPEC>
0x38 - Pattern
wave: Reg<WAVE_SPEC>
0x3c - Waveform Control
pattbuf: Reg<PATTBUF_SPEC>
0x64 - Pattern Buffer
Implementations
sourceimpl RegisterBlock
impl RegisterBlock
sourcepub fn count_dith6_mode(&self) -> &Reg<COUNT_DITH6_MODE_SPEC>
pub fn count_dith6_mode(&self) -> &Reg<COUNT_DITH6_MODE_SPEC>
0x34 - Count
sourcepub fn count_dith5_mode(&self) -> &Reg<COUNT_DITH5_MODE_SPEC>
pub fn count_dith5_mode(&self) -> &Reg<COUNT_DITH5_MODE_SPEC>
0x34 - Count
sourcepub fn count_dith4_mode(&self) -> &Reg<COUNT_DITH4_MODE_SPEC>
pub fn count_dith4_mode(&self) -> &Reg<COUNT_DITH4_MODE_SPEC>
0x34 - Count
sourcepub fn count(&self) -> &Reg<COUNT_SPEC>
pub fn count(&self) -> &Reg<COUNT_SPEC>
0x34 - Count
sourcepub fn per_dith6_mode(&self) -> &Reg<PER_DITH6_MODE_SPEC>
pub fn per_dith6_mode(&self) -> &Reg<PER_DITH6_MODE_SPEC>
0x40 - Period
sourcepub fn per_dith5_mode(&self) -> &Reg<PER_DITH5_MODE_SPEC>
pub fn per_dith5_mode(&self) -> &Reg<PER_DITH5_MODE_SPEC>
0x40 - Period
sourcepub fn per_dith4_mode(&self) -> &Reg<PER_DITH4_MODE_SPEC>
pub fn per_dith4_mode(&self) -> &Reg<PER_DITH4_MODE_SPEC>
0x40 - Period
sourcepub fn cc_dith6_mode(&self) -> &[Reg<CC_DITH6_MODE_SPEC>; 6]
pub fn cc_dith6_mode(&self) -> &[Reg<CC_DITH6_MODE_SPEC>; 6]
0x44..0x5c - Compare and Capture
sourcepub fn cc_dith5_mode(&self) -> &[Reg<CC_DITH5_MODE_SPEC>; 6]
pub fn cc_dith5_mode(&self) -> &[Reg<CC_DITH5_MODE_SPEC>; 6]
0x44..0x5c - Compare and Capture
sourcepub fn cc_dith4_mode(&self) -> &[Reg<CC_DITH4_MODE_SPEC>; 6]
pub fn cc_dith4_mode(&self) -> &[Reg<CC_DITH4_MODE_SPEC>; 6]
0x44..0x5c - Compare and Capture
sourcepub fn perbuf_dith6_mode(&self) -> &Reg<PERBUF_DITH6_MODE_SPEC>
pub fn perbuf_dith6_mode(&self) -> &Reg<PERBUF_DITH6_MODE_SPEC>
0x6c - Period Buffer
sourcepub fn perbuf_dith5_mode(&self) -> &Reg<PERBUF_DITH5_MODE_SPEC>
pub fn perbuf_dith5_mode(&self) -> &Reg<PERBUF_DITH5_MODE_SPEC>
0x6c - Period Buffer
sourcepub fn perbuf_dith4_mode(&self) -> &Reg<PERBUF_DITH4_MODE_SPEC>
pub fn perbuf_dith4_mode(&self) -> &Reg<PERBUF_DITH4_MODE_SPEC>
0x6c - Period Buffer
sourcepub fn perbuf(&self) -> &Reg<PERBUF_SPEC>
pub fn perbuf(&self) -> &Reg<PERBUF_SPEC>
0x6c - Period Buffer
sourcepub fn ccbuf_dith6_mode(&self) -> &[Reg<CCBUF_DITH6_MODE_SPEC>; 6]
pub fn ccbuf_dith6_mode(&self) -> &[Reg<CCBUF_DITH6_MODE_SPEC>; 6]
0x70..0x88 - Compare and Capture Buffer
sourcepub fn ccbuf_dith5_mode(&self) -> &[Reg<CCBUF_DITH5_MODE_SPEC>; 6]
pub fn ccbuf_dith5_mode(&self) -> &[Reg<CCBUF_DITH5_MODE_SPEC>; 6]
0x70..0x88 - Compare and Capture Buffer
sourcepub fn ccbuf_dith4_mode(&self) -> &[Reg<CCBUF_DITH4_MODE_SPEC>; 6]
pub fn ccbuf_dith4_mode(&self) -> &[Reg<CCBUF_DITH4_MODE_SPEC>; 6]
0x70..0x88 - Compare and Capture Buffer
Auto Trait Implementations
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more