pub struct Tcc0 { /* private fields */ }
Expand description
Timer Counter Control 0
Implementations§
Source§impl Tcc0
impl Tcc0
Sourcepub const PTR: *const RegisterBlock = {0x42002000 as *const tcc0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x42002000 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(&self) -> &CountDith6
pub fn count_dith6(&self) -> &CountDith6
0x34 - Count
Sourcepub fn count_dith5(&self) -> &CountDith5
pub fn count_dith5(&self) -> &CountDith5
0x34 - Count
Sourcepub fn count_dith4(&self) -> &CountDith4
pub fn count_dith4(&self) -> &CountDith4
0x34 - Count
Sourcepub fn cc_dith6_iter(&self) -> impl Iterator<Item = &CcDith6>
pub fn cc_dith6_iter(&self) -> impl Iterator<Item = &CcDith6>
Iterator for array of: 0x44..0x54 - Compare and Capture
Sourcepub fn cc_dith5_iter(&self) -> impl Iterator<Item = &CcDith5>
pub fn cc_dith5_iter(&self) -> impl Iterator<Item = &CcDith5>
Iterator for array of: 0x44..0x54 - Compare and Capture
Sourcepub fn cc_dith4_iter(&self) -> impl Iterator<Item = &CcDith4>
pub fn cc_dith4_iter(&self) -> impl Iterator<Item = &CcDith4>
Iterator for array of: 0x44..0x54 - Compare and Capture
Sourcepub fn cc_iter(&self) -> impl Iterator<Item = &Cc>
pub fn cc_iter(&self) -> impl Iterator<Item = &Cc>
Iterator for array of: 0x44..0x54 - Compare and Capture
Sourcepub fn perb_dith6(&self) -> &PerbDith6
pub fn perb_dith6(&self) -> &PerbDith6
0x6c - Period Buffer
Sourcepub fn perb_dith5(&self) -> &PerbDith5
pub fn perb_dith5(&self) -> &PerbDith5
0x6c - Period Buffer
Sourcepub fn perb_dith4(&self) -> &PerbDith4
pub fn perb_dith4(&self) -> &PerbDith4
0x6c - Period Buffer
Sourcepub fn ccb_dith6_iter(&self) -> impl Iterator<Item = &CcbDith6>
pub fn ccb_dith6_iter(&self) -> impl Iterator<Item = &CcbDith6>
Iterator for array of: 0x70..0x80 - Compare and Capture Buffer
Sourcepub fn ccb0_dith6(&self) -> &CcbDith6
pub fn ccb0_dith6(&self) -> &CcbDith6
0x70 - Compare and Capture Buffer
Sourcepub fn ccb1_dith6(&self) -> &CcbDith6
pub fn ccb1_dith6(&self) -> &CcbDith6
0x74 - Compare and Capture Buffer
Sourcepub fn ccb2_dith6(&self) -> &CcbDith6
pub fn ccb2_dith6(&self) -> &CcbDith6
0x78 - Compare and Capture Buffer
Sourcepub fn ccb3_dith6(&self) -> &CcbDith6
pub fn ccb3_dith6(&self) -> &CcbDith6
0x7c - Compare and Capture Buffer
Sourcepub fn ccb_dith5_iter(&self) -> impl Iterator<Item = &CcbDith5>
pub fn ccb_dith5_iter(&self) -> impl Iterator<Item = &CcbDith5>
Iterator for array of: 0x70..0x80 - Compare and Capture Buffer
Sourcepub fn ccb0_dith5(&self) -> &CcbDith5
pub fn ccb0_dith5(&self) -> &CcbDith5
0x70 - Compare and Capture Buffer
Sourcepub fn ccb1_dith5(&self) -> &CcbDith5
pub fn ccb1_dith5(&self) -> &CcbDith5
0x74 - Compare and Capture Buffer
Sourcepub fn ccb2_dith5(&self) -> &CcbDith5
pub fn ccb2_dith5(&self) -> &CcbDith5
0x78 - Compare and Capture Buffer
Sourcepub fn ccb3_dith5(&self) -> &CcbDith5
pub fn ccb3_dith5(&self) -> &CcbDith5
0x7c - Compare and Capture Buffer
Sourcepub fn ccb_dith4_iter(&self) -> impl Iterator<Item = &CcbDith4>
pub fn ccb_dith4_iter(&self) -> impl Iterator<Item = &CcbDith4>
Iterator for array of: 0x70..0x80 - Compare and Capture Buffer
Sourcepub fn ccb0_dith4(&self) -> &CcbDith4
pub fn ccb0_dith4(&self) -> &CcbDith4
0x70 - Compare and Capture Buffer
Sourcepub fn ccb1_dith4(&self) -> &CcbDith4
pub fn ccb1_dith4(&self) -> &CcbDith4
0x74 - Compare and Capture Buffer
Sourcepub fn ccb2_dith4(&self) -> &CcbDith4
pub fn ccb2_dith4(&self) -> &CcbDith4
0x78 - Compare and Capture Buffer
Sourcepub fn ccb3_dith4(&self) -> &CcbDith4
pub fn ccb3_dith4(&self) -> &CcbDith4
0x7c - Compare and Capture Buffer