Struct atsamd21g::tcc0::RegisterBlock
source · [−]#[repr(C)]pub struct RegisterBlock {Show 18 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 pattb: Reg<PATTB_SPEC>,
pub waveb: Reg<WAVEB_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
pattb: Reg<PATTB_SPEC>
0x64 - Pattern Buffer
waveb: Reg<WAVEB_SPEC>
0x68 - Waveform Control Buffer
Implementations
sourceimpl RegisterBlock
impl RegisterBlock
sourcepub fn count_dith6(&self) -> &Reg<COUNT_DITH6_SPEC>
pub fn count_dith6(&self) -> &Reg<COUNT_DITH6_SPEC>
0x34 - Count
sourcepub fn count_dith5(&self) -> &Reg<COUNT_DITH5_SPEC>
pub fn count_dith5(&self) -> &Reg<COUNT_DITH5_SPEC>
0x34 - Count
sourcepub fn count_dith4(&self) -> &Reg<COUNT_DITH4_SPEC>
pub fn count_dith4(&self) -> &Reg<COUNT_DITH4_SPEC>
0x34 - Count
sourcepub fn count(&self) -> &Reg<COUNT_SPEC>
pub fn count(&self) -> &Reg<COUNT_SPEC>
0x34 - Count
sourcepub fn per_dith6(&self) -> &Reg<PER_DITH6_SPEC>
pub fn per_dith6(&self) -> &Reg<PER_DITH6_SPEC>
0x40 - Period
sourcepub fn per_dith5(&self) -> &Reg<PER_DITH5_SPEC>
pub fn per_dith5(&self) -> &Reg<PER_DITH5_SPEC>
0x40 - Period
sourcepub fn per_dith4(&self) -> &Reg<PER_DITH4_SPEC>
pub fn per_dith4(&self) -> &Reg<PER_DITH4_SPEC>
0x40 - Period
sourcepub fn perb_dith6(&self) -> &Reg<PERB_DITH6_SPEC>
pub fn perb_dith6(&self) -> &Reg<PERB_DITH6_SPEC>
0x6c - Period Buffer
sourcepub fn perb_dith5(&self) -> &Reg<PERB_DITH5_SPEC>
pub fn perb_dith5(&self) -> &Reg<PERB_DITH5_SPEC>
0x6c - Period Buffer
sourcepub fn perb_dith4(&self) -> &Reg<PERB_DITH4_SPEC>
pub fn perb_dith4(&self) -> &Reg<PERB_DITH4_SPEC>
0x6c - Period 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