|
EE445M RTOS
Taken at the University of Texas Spring 2015
|
#include <timerpp.hpp>


Public Member Functions | |
| timer () | |
| timer (timer_t timer_id, subtimer_t timer_subtimer, uint32_t timer_configuration, reload_t timer_load_val, uint32_t timer_interrupt, bool timer_start=false) | |
| virtual void | start () |
| virtual void | stop () |
| virtual uint32_t | ack () |
| virtual uint32_t | get () |
| const subtimer_t | get_subtimer () |
| const uint32_t | get_base () |
| void | reload (void) |
| void | load (uint32_t load_value) |
Public Member Functions inherited from interruptable | |
| interruptable () | |
Private Attributes | |
| timer_t | id |
| uint32_t | base |
| subtimer_t | subtimer |
| reload_t | reload_value |
| uint32_t | configuration |
| uint32_t | interrupt |
Definition at line 26 of file timerpp.hpp.
| timer::timer | ( | ) |
Definition at line 10 of file timerpp.cpp.
| timer::timer | ( | timer_t | timer_id, |
| subtimer_t | timer_subtimer, | ||
| uint32_t | timer_configuration, | ||
| reload_t | timer_load_val, | ||
| uint32_t | timer_interrupt, | ||
| bool | timer_start = false |
||
| ) |
Definition at line 12 of file timerpp.cpp.
References base, configuration, interrupt, reload(), reload_value, start(), and subtimer.

|
virtual |
Acknowledge an interrupt. Clears the interrupt bits for this timer.
Implements interruptable.
Definition at line 74 of file timerpp.cpp.
References base, and subtimer.
Referenced by lswitch::end_debounce(), ping::handle_timer(), Timer0A_Handler(), Timer1A_Handler(), and Timer2A_Handler().

|
virtual |
Definition at line 90 of file timerpp.cpp.
References base, and subtimer.
Referenced by ping::handle_gpio().

| const uint32_t timer::get_base | ( | ) |
Definition at line 109 of file timerpp.cpp.
References base.
Referenced by adc::configure_timer_interrupt().

| const subtimer_t timer::get_subtimer | ( | ) |
Definition at line 105 of file timerpp.cpp.
References subtimer.
Referenced by adc::configure_timer_interrupt().

| void timer::load | ( | uint32_t | load_value | ) |
Definition at line 47 of file timerpp.cpp.
References base, and subtimer.
Referenced by ping::handle_gpio(), and reload().

| void timer::reload | ( | void | ) |
Reload the timer with the initial reload value
Definition at line 42 of file timerpp.cpp.
References load(), and reload_value.
Referenced by ping::handle_gpio(), and timer().


|
virtual |
Start a timer.
Implements interruptable.
Definition at line 62 of file timerpp.cpp.
References base, interrupt, and subtimer.
Referenced by lswitch::debounce(), ping::handle_gpio(), and timer().

|
virtual |
Stop a timer.
Implements interruptable.
Definition at line 68 of file timerpp.cpp.
References base, interrupt, and subtimer.
|
private |
The base address of the specified timer
Definition at line 32 of file timerpp.hpp.
Referenced by ack(), get(), get_base(), load(), start(), stop(), and timer().
|
private |
The configuration bitset for the timer
Definition at line 42 of file timerpp.hpp.
Referenced by timer().
|
private |
Defined between 0 to 4, where 0 indicates TIMER0
Definition at line 29 of file timerpp.hpp.
|
private |
The timer interrupt to be acknowdeged, enabled, disabled
Definition at line 46 of file timerpp.hpp.
|
private |
The reload value for the timer
Definition at line 38 of file timerpp.hpp.
|
private |
TIMER_A, TIMER_B, or TIMER_BOTH
Definition at line 35 of file timerpp.hpp.
Referenced by ack(), get(), get_subtimer(), load(), start(), stop(), and timer().