[][src]Type Definition cc2538::gptimer0::TBV

type TBV = Reg<u32, _TBV>;

GPTM Timer B value When read, this register shows the current, free-running value of Timer B in all modes. Software can use this value to determine the time elapsed between an interrupt and the ISR entry. When written, the value written into this register is loaded into the TBR register on the next clock cycle. When a GPTM is configured to one of the 32-bit modes, the contents of bits 15:0 in this register are loaded into the upper 16 bits of the TAV register. Reads from this register return the current free-running value of Timer B. In a 16-bit mode, bits [15:0] contain the value of the counter and bits [23:16] contain the current, free-running value of the prescaler, which is the upper 8 bits of the count in input edge count, input edge time, PWM and one-shot or periodic up count modes. In one-shot or periodic down count modes, the prescaler stored in [23:16] is a true prescaler, meaning bits [23:16] count down before decrementing the value in bits [15:0]. The prescaler its [31:24] always read as 0.

This register you can read, reset, write, write_with_zero, modify. See API.

For information about avaliable fields see tbv module

Trait Implementations

impl Readable for TBV[src]

read() method returns tbv::R reader structure

impl Writable for TBV[src]

write(|w| ..) method takes tbv::W writer structure

impl ResetValue for TBV[src]

Register TBV reset()'s with value 0

type Type = u32

Register size