XBee Firmware Library  1.6.0
Typedefs | Enumerations | Functions
timer.h File Reference

Typedefs

typedef enum tpm_t timer_t
 

Enumerations

enum  timermode_t { ONE_SHOT = 0, PERIODIC = 1, NO_VALID }
 

Functions

int timer_config (timer_t timer, bool_t enable, timermode_t mode, uint32_t timeout)
 Function that configures the settings of the timer component. More...
 
void timer_enable (timer_t timer, uint8_t enable)
 Function that enables/disables the timer module. More...
 
timermode_t timer_get_mode (timer_t timer)
 Function that returns timer's mode configuration. More...
 
uint32_t timer_get_timeout (timer_t timer)
 Function that returns the timeout of the timer interrupt if it is configured as One-Shot timer or the period if it is configured as a periodic timer. More...
 
int timer_irq_enable (timer_t timer, bool_t enable)
 Function that enables timer interrupt. More...
 
int timer_set_mode (timer_t timer, timermode_t mode)
 Function that sets timer's mode. More...
 
int timer_set_timeout (timer_t timer, uint32_t timeout)
 Function that sets the timeout of the timer interrupt if it is configured as One-Shot timer or the period if it is configured as a periodic timer. More...
 
void tpm1ov_irq (void)
 
void tpm2ov_irq (void)
 
void tpm3ov_irq (void)
 

Typedef Documentation

typedef enum tpm_t timer_t

Enumeration Type Documentation

Enumerator
ONE_SHOT 
PERIODIC 
NO_VALID 

Function Documentation

void tpm1ov_irq ( void  )
void tpm2ov_irq ( void  )
void tpm3ov_irq ( void  )