[][src]Type Definition cc2538::gptimer1::tbmr::R

type R = R<u32, TBMR>;

Reader of register TBMR

Methods

impl R[src]

pub fn reserved12(&self) -> RESERVED12_R[src]

Bits 12:31 - 31:12] Reserved

pub fn tbplo(&self) -> TBPLO_R[src]

Bit 11 - 11:11] Legacy PWM operation 0: Legacy operation 1: CCP is set to 1 on time-out.

pub fn tbmrsu(&self) -> TBMRSU_R[src]

Bit 10 - 10:10] Timer B match register update mode 0: Update the GPTMBMATCHR and the GPTMBPR, if used on the next cycle. 1: Update the GPTMBMATCHR and the GPTMBPR, if used on the next time-out. If the timer is disabled (TAEN is clear) when this bit is set, GPTMTBMATCHR and GPTMTBPR are updated when the timer is enabled. If the timer is stalled (TBSTALL is set), GPTMTBMATCHR and GPTMTBPR are updated according to the configuration of this bit.

pub fn tbpwmie(&self) -> TBPWMIE_R[src]

Bit 9 - 9:9] GPTM Timer B PWM interrupt enable This bit enables interrupts in PWM mode on rising, falling, or both edges of the CCP output. 0: Interrupt is disabled. 1: Interrupt is enabled. This bit is valid only in PWM mode.

pub fn tbild(&self) -> TBILD_R[src]

Bit 8 - 8:8] GPTM Timer B PWM interval load write 0: Update the GPTMTBR register with the value in the GPTMTBILR register on the next cycle. If the prescaler is used, update the GPTMTBPS register with the value in the GPTMTBPR register on the next cycle. 1: Update the GPTMTBR register with the value in the GPTMTBILR register on the next cycle. If the prescaler is used, update the GPTMTBPS register with the value in the GPTMTBPR register on the next time-out.

pub fn tbsnaps(&self) -> TBSNAPS_R[src]

Bit 7 - 7:7] GPTM Timer B snap-shot mode 0: Snap-shot mode is disabled. 1: If Timer B is configured in the periodic mode, the actual free-running value of Timer A is loaded into the GPTM Timer B (GPTMTBR) register at the time-out event.

pub fn tbwot(&self) -> TBWOT_R[src]

Bit 6 - 6:6] GPTM Timer B wait-on-trigger 0: Timer B begins counting as soon as it is enabled. 1: If Timer B is enabled (TBEN is set in the GPTMCTL register), Timer B does not begin counting until it receives a trigger from the timer in the previous position in the daisy-chain.

pub fn tbmie(&self) -> TBMIE_R[src]

Bit 5 - 5:5] GPTM Timer B match interrupt enable 0: The match interrupt is disabled. 1: An interrupt is generated when the match value in the GPTMTBMATCHR register is reached in the one-shot and periodic modes.

pub fn tbcdir(&self) -> TBCDIR_R[src]

Bit 4 - 4:4] GPTM Timer B count direction 0: The timer counts down. 1: The timer counts up. When counting up, the timer starts from a value of 0x0.

pub fn tbams(&self) -> TBAMS_R[src]

Bit 3 - 3:3] GPTM Timer B alternate mode 0: Capture mode is enabled. 1: PWM mode is enabled. Note: To enable PWM mode, the TBCM bit must be cleared and the TBMR field must be configured to 0x2.

pub fn tbcmr(&self) -> TBCMR_R[src]

Bit 2 - 2:2] GPTM Timer B capture mode 0: Edge-count mode 1: Edge-time mode

pub fn tbmr(&self) -> TBMR_R[src]

Bits 0:1 - 1:0] GPTM Timer B mode 0x0: Reserved 0x1: One-shot timer mode 0x2: Periodic timer mode 0x3: Capture mode The timer mode is based on the timer configuration defined by bits [2:0] in the GPTMCFG register.