Struct Grtc
pub struct Grtc { /* private fields */ }Expand description
Global Real-time counter 0
Implementations§
§impl Grtc
impl Grtc
pub const unsafe fn from_ptr(ptr: *mut ()) -> Grtc
pub const fn as_ptr(&self) -> *mut ()
pub const fn tasks_capture(self, n: usize) -> Reg<u32, W>
pub const fn tasks_capture(self, n: usize) -> Reg<u32, W>
Description collection: Capture the counter value to CC[n] register
pub const fn tasks_start(self) -> Reg<u32, W>
pub const fn tasks_start(self) -> Reg<u32, W>
Start the counter
pub const fn tasks_stop(self) -> Reg<u32, W>
pub const fn tasks_stop(self) -> Reg<u32, W>
Stop the counter
pub const fn tasks_clear(self) -> Reg<u32, W>
pub const fn tasks_clear(self) -> Reg<u32, W>
Clear the counter
pub const fn tasks_pwmstart(self) -> Reg<u32, W>
pub const fn tasks_pwmstart(self) -> Reg<u32, W>
Start the PWM
pub const fn tasks_pwmstop(self) -> Reg<u32, W>
pub const fn tasks_pwmstop(self) -> Reg<u32, W>
Stop the PWM
pub const fn subscribe_capture(self, n: usize) -> Reg<Subscribe, RW>
pub const fn subscribe_capture(self, n: usize) -> Reg<Subscribe, RW>
Description collection: Subscribe configuration for task CAPTURE[n]
pub const fn events_compare(self, n: usize) -> Reg<u32, RW>
pub const fn events_compare(self, n: usize) -> Reg<u32, RW>
Description collection: Compare event on CC[n] match
pub const fn events_rtcomparesync(self) -> Reg<u32, RW>
pub const fn events_rtcomparesync(self) -> Reg<u32, RW>
The GRTC low frequency timer is synchronized with the SYSCOUNTER
pub const fn events_pwmperiodend(self) -> Reg<u32, RW>
pub const fn events_pwmperiodend(self) -> Reg<u32, RW>
Event on end of each PWM period
pub const fn events_pwmready(self) -> Reg<u32, RW>
pub const fn events_pwmready(self) -> Reg<u32, RW>
Event on STATUS.PWM.READY status changed to ready
pub const fn events_clkoutready(self) -> Reg<u32, RW>
pub const fn events_clkoutready(self) -> Reg<u32, RW>
Event on STATUS.CLKOUT.READY status changed to ready
pub const fn publish_compare(self, n: usize) -> Reg<Publish, RW>
pub const fn publish_compare(self, n: usize) -> Reg<Publish, RW>
Description collection: Publish configuration for event COMPARE[n]
pub const fn publish_pwmready(self) -> Reg<Publish, RW>
pub const fn publish_pwmready(self) -> Reg<Publish, RW>
Publish configuration for event PWMREADY
pub const fn publish_clkoutready(self) -> Reg<Publish, RW>
pub const fn publish_clkoutready(self) -> Reg<Publish, RW>
Publish configuration for event CLKOUTREADY
pub const fn timeout(self) -> Reg<Timeout, RW>
pub const fn timeout(self) -> Reg<Timeout, RW>
Timeout after all CPUs gone into sleep state to stop the SYSCOUNTER
pub const fn interval(self) -> Reg<Interval, RW>
pub const fn interval(self) -> Reg<Interval, RW>
Count to add to CC[0] when the event EVENTS_COMPARE[0] triggers.
pub const fn clkout(self) -> Reg<GrtcClkout, RW>
pub const fn clkout(self) -> Reg<GrtcClkout, RW>
Configuration of clock output
pub const fn syscounter(self, n: usize) -> Syscounter
pub const fn syscounter(self, n: usize) -> Syscounter
Unspecified