[][src]Type Definition ambiq_apollo2_pac::ctimer::stcfg::W

type W = W<u32, STCFG>;

Writer for register STCFG

Methods

impl W[src]

pub fn freeze(&mut self) -> FREEZE_W[src]

Bit 31 - Set this bit to one to freeze the clock input to the COUNTER register. Once frozen, the value can be safely written from the MCU. Unfreeze to resume.

pub fn clear(&mut self) -> CLEAR_W[src]

Bit 30 - Set this bit to one to clear the System Timer register. If this bit is set to '1', the system timer register will stay cleared. It needs to be set to '0' for the system timer to start running.

pub fn compare_h_en(&mut self) -> COMPARE_H_EN_W[src]

Bit 15 - Selects whether compare is enabled for the corresponding SCMPR register. If compare is enabled, the interrupt status is set once the comparision is met.

pub fn compare_g_en(&mut self) -> COMPARE_G_EN_W[src]

Bit 14 - Selects whether compare is enabled for the corresponding SCMPR register. If compare is enabled, the interrupt status is set once the comparision is met.

pub fn compare_f_en(&mut self) -> COMPARE_F_EN_W[src]

Bit 13 - Selects whether compare is enabled for the corresponding SCMPR register. If compare is enabled, the interrupt status is set once the comparision is met.

pub fn compare_e_en(&mut self) -> COMPARE_E_EN_W[src]

Bit 12 - Selects whether compare is enabled for the corresponding SCMPR register. If compare is enabled, the interrupt status is set once the comparision is met.

pub fn compare_d_en(&mut self) -> COMPARE_D_EN_W[src]

Bit 11 - Selects whether compare is enabled for the corresponding SCMPR register. If compare is enabled, the interrupt status is set once the comparision is met.

pub fn compare_c_en(&mut self) -> COMPARE_C_EN_W[src]

Bit 10 - Selects whether compare is enabled for the corresponding SCMPR register. If compare is enabled, the interrupt status is set once the comparision is met.

pub fn compare_b_en(&mut self) -> COMPARE_B_EN_W[src]

Bit 9 - Selects whether compare is enabled for the corresponding SCMPR register. If compare is enabled, the interrupt status is set once the comparision is met.

pub fn compare_a_en(&mut self) -> COMPARE_A_EN_W[src]

Bit 8 - Selects whether compare is enabled for the corresponding SCMPR register. If compare is enabled, the interrupt status is set once the comparision is met.

pub fn clksel(&mut self) -> CLKSEL_W[src]

Bits 0:3 - Selects an appropriate clock source and divider to use for the System Timer clock.