CC2538 General Purpose Timer

Detailed Description

Files

file  cc2538_gptimer.h
 CC2538 General Purpose Timer (GPTIMER) driver.
 

Data Structures

struct  cc2538_gptimer_t
 GPTIMER component registers. More...
 

Enumerations

enum  { GPTIMER_ONE_SHOT_MODE = 1, GPTIMER_PERIODIC_MODE = 2, GPTIMER_CAPTURE_MODE = 3 }
 Timer modes. More...
 
enum  { GPTMCFG_32_BIT_TIMER = 0, GPTMCFG_32_BIT_REAL_TIME_CLOCK = 1, GPTMCFG_16_BIT_TIMER = 4 }
 Timer width configuration. More...
 

Variables

cc2538_reg_t cc2538_gptimer_t::CFG
 GPTIMER Configuration.
 
cc2538_reg_t cc2538_gptimer_t::TAMR
 GPTIMER Timer A mode.
 
cc2538_reg_t cc2538_gptimer_t::TBMR
 GPTIMER Timer B mode.
 
cc2538_reg_t cc2538_gptimer_t::CTL
 GPTIMER Control.
 
cc2538_reg_t cc2538_gptimer_t::SYNC
 GPTIMER Synchronize.
 
cc2538_reg_t cc2538_gptimer_t::RESERVED2
 Reserved word.
 
cc2538_reg_t cc2538_gptimer_t::IMR
 GPTIMER Interrupt Mask.
 
cc2538_reg_t cc2538_gptimer_t::RIS
 GPTIMER Raw Interrupt Status.
 
cc2538_reg_t cc2538_gptimer_t::MIS
 GPTIMER Masked Interrupt Status.
 
cc2538_reg_t cc2538_gptimer_t::ICR
 GPTIMER Interrupt Clear.
 
cc2538_reg_t cc2538_gptimer_t::TAILR
 GPTIMER Timer A Interval Load.
 
cc2538_reg_t cc2538_gptimer_t::TBILR
 GPTIMER Timer B Interval Load.
 
cc2538_reg_t cc2538_gptimer_t::TAMATCHR
 GPTIMER Timer A Match.
 
cc2538_reg_t cc2538_gptimer_t::TBMATCHR
 GPTIMER Timer B Match.
 
cc2538_reg_t cc2538_gptimer_t::TAPR
 GPTIMER Timer A Prescale Register.
 
cc2538_reg_t cc2538_gptimer_t::TBPR
 GPTIMER Timer B Prescale Register.
 
cc2538_reg_t cc2538_gptimer_t::TAPMR
 GPTIMER Timer A Prescale Match Register.
 
cc2538_reg_t cc2538_gptimer_t::TBPMR
 GPTIMER Timer B Prescale Match Register.
 
cc2538_reg_t cc2538_gptimer_t::TAR
 GPTIMER Timer A.
 
cc2538_reg_t cc2538_gptimer_t::TBR
 GPTIMER Timer B.
 
cc2538_reg_t cc2538_gptimer_t::TAV
 GPTIMER Timer A Value.
 
cc2538_reg_t cc2538_gptimer_t::TBV
 GPTIMER Timer B Value.
 
cc2538_reg_t cc2538_gptimer_t::RESERVED3
 Reserved word.
 
cc2538_reg_t cc2538_gptimer_t::TAPS
 GPTIMER Timer A Prescale Snapshot.
 
cc2538_reg_t cc2538_gptimer_t::TBPS
 GPTIMER Timer B Prescale Snapshot.
 
cc2538_reg_t cc2538_gptimer_t::TAPV
 GPTIMER Timer A Prescale Value.
 
cc2538_reg_t cc2538_gptimer_t::TBPV
 GPTIMER Timer B Prescale Value.
 
cc2538_reg_t cc2538_gptimer_t::RESERVED [981]
 Reserved.
 
cc2538_reg_t cc2538_gptimer_t::PP
 GPTIMER Peripheral Properties.
 
cc2538_reg_t cc2538_gptimer_t::RESERVED4 [15]
 Reserved.
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Timer modes.

Enumerator
GPTIMER_ONE_SHOT_MODE 

GPTIMER one-shot mode.

GPTIMER_PERIODIC_MODE 

GPTIMER periodic mode.

GPTIMER_CAPTURE_MODE 

GPTIMER capture mode.

Definition at line 36 of file cc2538_gptimer.h.

◆ anonymous enum

anonymous enum

Timer width configuration.

Enumerator
GPTMCFG_32_BIT_TIMER 

32-bit timer configuration

GPTMCFG_32_BIT_REAL_TIME_CLOCK 

32-bit real-time clock

GPTMCFG_16_BIT_TIMER 

16-bit timer configuration

Definition at line 45 of file cc2538_gptimer.h.