Struct zinc_hal_lpc11xx::ioregs::CT16B0_ccr_Get [] [src]

pub struct CT16B0_ccr_Get {
    // some fields omitted
}

CCR: Capture Control Register (CCR). The CCR controls which edges of the capture inputs are used to load the Capture Registers and whether or not an interrupt is generated when a capture takes place.

Methods

impl CT16B0_ccr_Get

fn new(reg: &CT16B0_ccr) -> CT16B0_ccr_Get

Create a getter reflecting the current value of the given register.

fn raw(&self) -> u32

Get the raw value of the register.

fn cap0re(&self) -> CT16B0_ccr_cap0re

Get value of CAP0RE field: Capture on CT16Bn_CAP0 rising edge: a sequence of 0 then 1 on CT16Bn_CAP0 will cause CR0 to be loaded with the contents of TC.

fn cap0fe(&self) -> CT16B0_ccr_cap0fe

Get value of CAP0FE field: Capture on CT16Bn_CAP0 falling edge: a sequence of 1 then 0 on CT16Bn_CAP0 will cause CR0 to be loaded with the contents of TC.

fn cap0i(&self) -> CT16B0_ccr_cap0i

Get value of CAP0I field: Interrupt on CT16Bn_CAP0 event: a CR0 load due to a CT16Bn_CAP0 event will generate an interrupt.

fn cap1re(&self) -> CT16B0_ccr_cap1re

Get value of CAP1RE field: Capture on CT16Bn_CAP1 rising edge: a sequence of 0 then 1 on CT16Bn_CAP1 will cause CR1 to be loaded with the contents of TC.

fn cap1fe(&self) -> CT16B0_ccr_cap1fe

Get value of CAP1FE field: Capture on CT16Bn_CAP1 falling edge: a sequence of 1 then 0 on CT16Bn_CAP1 will cause CR1 to be loaded with the contents of TC.

fn cap1i(&self) -> CT16B0_ccr_cap1i

Get value of CAP1I field: Interrupt on CT16Bn_CAP1 event: a CR1 load due to a CT16Bn_CAP1 event will generate an interrupt.

Trait Implementations

impl Copy for CT16B0_ccr_Get

Derived Implementations

impl Clone for CT16B0_ccr_Get

fn clone(&self) -> CT16B0_ccr_Get

fn clone_from(&mut self, source: &Self)