pub struct TCC3 { /* private fields */ }
Expand description
Timer Counter Control
Implementations§
source§impl TCC3
impl TCC3
sourcepub const PTR: *const RegisterBlock = {0x42001000 as *const tcc0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x42001000 as *const tcc0::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn count_dith6_mode(&self) -> &COUNT_DITH6_MODE
pub fn count_dith6_mode(&self) -> &COUNT_DITH6_MODE
0x34 - Count
sourcepub fn count_dith5_mode(&self) -> &COUNT_DITH5_MODE
pub fn count_dith5_mode(&self) -> &COUNT_DITH5_MODE
0x34 - Count
sourcepub fn count_dith4_mode(&self) -> &COUNT_DITH4_MODE
pub fn count_dith4_mode(&self) -> &COUNT_DITH4_MODE
0x34 - Count
sourcepub fn per_dith6_mode(&self) -> &PER_DITH6_MODE
pub fn per_dith6_mode(&self) -> &PER_DITH6_MODE
0x40 - Period
sourcepub fn per_dith5_mode(&self) -> &PER_DITH5_MODE
pub fn per_dith5_mode(&self) -> &PER_DITH5_MODE
0x40 - Period
sourcepub fn per_dith4_mode(&self) -> &PER_DITH4_MODE
pub fn per_dith4_mode(&self) -> &PER_DITH4_MODE
0x40 - Period
sourcepub fn cc_dith6_mode(&self) -> &[CC_DITH6_MODE; 6]
pub fn cc_dith6_mode(&self) -> &[CC_DITH6_MODE; 6]
0x44..0x5c - Compare and Capture
sourcepub fn cc_dith5_mode(&self) -> &[CC_DITH5_MODE; 6]
pub fn cc_dith5_mode(&self) -> &[CC_DITH5_MODE; 6]
0x44..0x5c - Compare and Capture
sourcepub fn cc_dith4_mode(&self) -> &[CC_DITH4_MODE; 6]
pub fn cc_dith4_mode(&self) -> &[CC_DITH4_MODE; 6]
0x44..0x5c - Compare and Capture
sourcepub fn perbuf_dith6_mode(&self) -> &PERBUF_DITH6_MODE
pub fn perbuf_dith6_mode(&self) -> &PERBUF_DITH6_MODE
0x6c - Period Buffer
sourcepub fn perbuf_dith5_mode(&self) -> &PERBUF_DITH5_MODE
pub fn perbuf_dith5_mode(&self) -> &PERBUF_DITH5_MODE
0x6c - Period Buffer
sourcepub fn perbuf_dith4_mode(&self) -> &PERBUF_DITH4_MODE
pub fn perbuf_dith4_mode(&self) -> &PERBUF_DITH4_MODE
0x6c - Period Buffer
sourcepub fn ccbuf_dith6_mode(&self) -> &[CCBUF_DITH6_MODE; 6]
pub fn ccbuf_dith6_mode(&self) -> &[CCBUF_DITH6_MODE; 6]
0x70..0x88 - Compare and Capture Buffer
sourcepub fn ccbuf_dith5_mode(&self) -> &[CCBUF_DITH5_MODE; 6]
pub fn ccbuf_dith5_mode(&self) -> &[CCBUF_DITH5_MODE; 6]
0x70..0x88 - Compare and Capture Buffer
sourcepub fn ccbuf_dith4_mode(&self) -> &[CCBUF_DITH4_MODE; 6]
pub fn ccbuf_dith4_mode(&self) -> &[CCBUF_DITH4_MODE; 6]
0x70..0x88 - Compare and Capture Buffer