Struct zinc_hal_lpc11xx::ioregs::CT16B0_tcr_Get
[−]
[src]
pub struct CT16B0_tcr_Get { // some fields omitted }
TCR
: Timer Control Register (TCR). The TCR is used to control the Timer Counter functions. The Timer Counter can be disabled or reset through the TCR.
Methods
impl CT16B0_tcr_Get
fn new(reg: &CT16B0_tcr) -> CT16B0_tcr_Get
Create a getter reflecting the current value of the given register.
fn raw(&self) -> u32
Get the raw value of the register.
fn cen(&self) -> bool
Get value of CEN
field: Counter Enable. When one, the Timer Counter and Prescale Counter are enabled for counting. When zero, the counters are disabled.
fn crst(&self) -> bool
Get value of CRST
field: Counter Reset. When one, the Timer Counter and the Prescale Counter are synchronously reset on the next positive edge of PCLK. The counters remain reset until TCR[1] is returned to zero.