Struct nrf5340_net_pac::timer0_ns::RegisterBlock
source · [−]#[repr(C)]pub struct RegisterBlock {Show 23 fields
pub tasks_start: Reg<TASKS_START_SPEC>,
pub tasks_stop: Reg<TASKS_STOP_SPEC>,
pub tasks_count: Reg<TASKS_COUNT_SPEC>,
pub tasks_clear: Reg<TASKS_CLEAR_SPEC>,
pub tasks_shutdown: Reg<TASKS_SHUTDOWN_SPEC>,
pub tasks_capture: [Reg<TASKS_CAPTURE_SPEC>; 8],
pub subscribe_start: Reg<SUBSCRIBE_START_SPEC>,
pub subscribe_stop: Reg<SUBSCRIBE_STOP_SPEC>,
pub subscribe_count: Reg<SUBSCRIBE_COUNT_SPEC>,
pub subscribe_clear: Reg<SUBSCRIBE_CLEAR_SPEC>,
pub subscribe_shutdown: Reg<SUBSCRIBE_SHUTDOWN_SPEC>,
pub subscribe_capture: [Reg<SUBSCRIBE_CAPTURE_SPEC>; 8],
pub events_compare: [Reg<EVENTS_COMPARE_SPEC>; 8],
pub publish_compare: [Reg<PUBLISH_COMPARE_SPEC>; 8],
pub shorts: Reg<SHORTS_SPEC>,
pub inten: Reg<INTEN_SPEC>,
pub intenset: Reg<INTENSET_SPEC>,
pub intenclr: Reg<INTENCLR_SPEC>,
pub mode: Reg<MODE_SPEC>,
pub bitmode: Reg<BITMODE_SPEC>,
pub prescaler: Reg<PRESCALER_SPEC>,
pub cc: [Reg<CC_SPEC>; 8],
pub oneshoten: [Reg<ONESHOTEN_SPEC>; 8],
/* private fields */
}
Expand description
Register block
Fields
tasks_start: Reg<TASKS_START_SPEC>
0x00 - Start Timer
tasks_stop: Reg<TASKS_STOP_SPEC>
0x04 - Stop Timer
tasks_count: Reg<TASKS_COUNT_SPEC>
0x08 - Increment Timer (Counter mode only)
tasks_clear: Reg<TASKS_CLEAR_SPEC>
0x0c - Clear time
tasks_shutdown: Reg<TASKS_SHUTDOWN_SPEC>
0x10 - Deprecated register - Shut down timer
tasks_capture: [Reg<TASKS_CAPTURE_SPEC>; 8]
0x40..0x60 - Description collection: Capture Timer value to CC[n] register
subscribe_start: Reg<SUBSCRIBE_START_SPEC>
0x80 - Subscribe configuration for task START
subscribe_stop: Reg<SUBSCRIBE_STOP_SPEC>
0x84 - Subscribe configuration for task STOP
subscribe_count: Reg<SUBSCRIBE_COUNT_SPEC>
0x88 - Subscribe configuration for task COUNT
subscribe_clear: Reg<SUBSCRIBE_CLEAR_SPEC>
0x8c - Subscribe configuration for task CLEAR
subscribe_shutdown: Reg<SUBSCRIBE_SHUTDOWN_SPEC>
0x90 - Deprecated register - Subscribe configuration for task SHUTDOWN
subscribe_capture: [Reg<SUBSCRIBE_CAPTURE_SPEC>; 8]
0xc0..0xe0 - Description collection: Subscribe configuration for task CAPTURE[n]
events_compare: [Reg<EVENTS_COMPARE_SPEC>; 8]
0x140..0x160 - Description collection: Compare event on CC[n] match
publish_compare: [Reg<PUBLISH_COMPARE_SPEC>; 8]
0x1c0..0x1e0 - Description collection: Publish configuration for event COMPARE[n]
shorts: Reg<SHORTS_SPEC>
0x200 - Shortcuts between local events and tasks
inten: Reg<INTEN_SPEC>
0x300 - Enable or disable interrupt
intenset: Reg<INTENSET_SPEC>
0x304 - Enable interrupt
intenclr: Reg<INTENCLR_SPEC>
0x308 - Disable interrupt
mode: Reg<MODE_SPEC>
0x504 - Timer mode selection
bitmode: Reg<BITMODE_SPEC>
0x508 - Configure the number of bits used by the TIMER
prescaler: Reg<PRESCALER_SPEC>
0x510 - Timer prescaler register
cc: [Reg<CC_SPEC>; 8]
0x540..0x560 - Description collection: Capture/Compare register n
oneshoten: [Reg<ONESHOTEN_SPEC>; 8]
0x580..0x5a0 - Description collection: Enable one-shot operation for Capture/Compare channel n
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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more