Loading...
Searching...
No Matches
gba_timer Struct Reference

Struct whose members map onto the timer register. More...

Detailed Description

Struct whose members map onto the timer register.

Definition at line 144 of file periph_gba.h.

#include <periph_gba.h>

Data Fields

uint16_t current_value
 The counter / current value of this timer.
 
uint16_t prescaler: 2
 The prescaler sets the divider for this timer.
 
uint16_t count_up_on_neighbour_overflow: 1
 If set, counts up this timer when the previous overflowed.
 
uint16_t unused_3_5: 3
 unused
 
uint16_t irq_enable: 1
 enables interrupt request for this timer on overflow
 
uint16_t run: 1
 starts the timer
 
uint16_t unused_8_15: 8
 unused
 

Field Documentation

◆ count_up_on_neighbour_overflow

uint16_t gba_timer::count_up_on_neighbour_overflow

If set, counts up this timer when the previous overflowed.

Definition at line 147 of file periph_gba.h.

◆ current_value

uint16_t gba_timer::current_value

The counter / current value of this timer.

Definition at line 145 of file periph_gba.h.

◆ irq_enable

uint16_t gba_timer::irq_enable

enables interrupt request for this timer on overflow

Definition at line 150 of file periph_gba.h.

◆ prescaler

uint16_t gba_timer::prescaler

The prescaler sets the divider for this timer.

Definition at line 146 of file periph_gba.h.

◆ run

uint16_t gba_timer::run

starts the timer

Definition at line 151 of file periph_gba.h.

◆ unused_3_5

uint16_t gba_timer::unused_3_5

unused

Definition at line 149 of file periph_gba.h.

◆ unused_8_15

uint16_t gba_timer::unused_8_15

unused

Definition at line 152 of file periph_gba.h.


The documentation for this struct was generated from the following file: