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 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 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 syscounter(self, n: usize) -> Syscounter
pub const fn syscounter(self, n: usize) -> Syscounter
Unspecified
Trait Implementations§
impl Copy for Grtc
impl Eq for Grtc
impl Send for Grtc
impl StructuralPartialEq for Grtc
impl Sync for Grtc
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)