#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - Start Timer."] pub tasks_start: TASKS_START, #[doc = "0x04 - Stop Timer."] pub tasks_stop: TASKS_STOP, #[doc = "0x08 - Increment Timer (In counter mode)."] pub tasks_count: TASKS_COUNT, #[doc = "0x0c - Clear timer."] pub tasks_clear: TASKS_CLEAR, #[doc = "0x10 - Shutdown timer."] pub tasks_shutdown: TASKS_SHUTDOWN, _reserved5: [u8; 0x2c], #[doc = "0x40..0x50 - Capture Timer value to CC\\[n\\] registers."] pub tasks_capture: [TASKS_CAPTURE; 4], _reserved6: [u8; 0xf0], #[doc = "0x140..0x150 - Compare event on CC\\[n\\] match."] pub events_compare: [EVENTS_COMPARE; 4], _reserved7: [u8; 0xb0], #[doc = "0x200 - Shortcuts for Timer."] pub shorts: SHORTS, _reserved8: [u8; 0x0100], #[doc = "0x304 - Interrupt enable set register."] pub intenset: INTENSET, #[doc = "0x308 - Interrupt enable clear register."] pub intenclr: INTENCLR, _reserved10: [u8; 0x01f8], #[doc = "0x504 - Timer Mode selection."] pub mode: MODE, #[doc = "0x508 - Sets timer behaviour."] pub bitmode: BITMODE, _reserved12: [u8; 0x04], #[doc = "0x510 - 4-bit prescaler to source clock frequency (max value 9). Source clock frequency is divided by 2^SCALE."] pub prescaler: PRESCALER, _reserved13: [u8; 0x2c], #[doc = "0x540..0x550 - Capture/compare registers."] pub cc: [CC; 4], _reserved14: [u8; 0x0aac], #[doc = "0xffc - Peripheral power control."] pub power: POWER, } #[doc = "TASKS_START (w) register accessor: an alias for `Reg`"] pub type TASKS_START = crate::Reg; #[doc = "Start Timer."] pub mod tasks_start; #[doc = "TASKS_STOP (w) register accessor: an alias for `Reg`"] pub type TASKS_STOP = crate::Reg; #[doc = "Stop Timer."] pub mod tasks_stop; #[doc = "TASKS_COUNT (w) register accessor: an alias for `Reg`"] pub type TASKS_COUNT = crate::Reg; #[doc = "Increment Timer (In counter mode)."] pub mod tasks_count; #[doc = "TASKS_CLEAR (w) register accessor: an alias for `Reg`"] pub type TASKS_CLEAR = crate::Reg; #[doc = "Clear timer."] pub mod tasks_clear; #[doc = "TASKS_SHUTDOWN (w) register accessor: an alias for `Reg`"] pub type TASKS_SHUTDOWN = crate::Reg; #[doc = "Shutdown timer."] pub mod tasks_shutdown; #[doc = "TASKS_CAPTURE (w) register accessor: an alias for `Reg`"] pub type TASKS_CAPTURE = crate::Reg; #[doc = "Capture Timer value to CC\\[n\\] registers."] pub mod tasks_capture; #[doc = "EVENTS_COMPARE (rw) register accessor: an alias for `Reg`"] pub type EVENTS_COMPARE = crate::Reg; #[doc = "Compare event on CC\\[n\\] match."] pub mod events_compare; #[doc = "SHORTS (rw) register accessor: an alias for `Reg`"] pub type SHORTS = crate::Reg; #[doc = "Shortcuts for Timer."] pub mod shorts; #[doc = "INTENSET (rw) register accessor: an alias for `Reg`"] pub type INTENSET = crate::Reg; #[doc = "Interrupt enable set register."] pub mod intenset; #[doc = "INTENCLR (rw) register accessor: an alias for `Reg`"] pub type INTENCLR = crate::Reg; #[doc = "Interrupt enable clear register."] pub mod intenclr; #[doc = "MODE (rw) register accessor: an alias for `Reg`"] pub type MODE = crate::Reg; #[doc = "Timer Mode selection."] pub mod mode; #[doc = "BITMODE (rw) register accessor: an alias for `Reg`"] pub type BITMODE = crate::Reg; #[doc = "Sets timer behaviour."] pub mod bitmode; #[doc = "PRESCALER (rw) register accessor: an alias for `Reg`"] pub type PRESCALER = crate::Reg; #[doc = "4-bit prescaler to source clock frequency (max value 9). Source clock frequency is divided by 2^SCALE."] pub mod prescaler; #[doc = "CC (rw) register accessor: an alias for `Reg`"] pub type CC = crate::Reg; #[doc = "Capture/compare registers."] pub mod cc; #[doc = "POWER (rw) register accessor: an alias for `Reg`"] pub type POWER = crate::Reg; #[doc = "Peripheral power control."] pub mod power;