#include "SFBTypes.h"
Go to the source code of this file.
Data Structures | |
class | SFBHWTimer |
The representation of a hardware timer. More... | |
Typedefs | |
typedef void(* | HWTimerHandler )() |
Variables | |
SFBHWTimer | Timers [5] |
Global array of SFBHWTimer objects. Only indices 1 through 4 are valid. | |
SFBHWTimer & | Timer1 |
Object providing access to hardware timer 1. | |
SFBHWTimer & | Timer2 |
Object providing access to hardware timer 2. | |
SFBHWTimer & | Timer3 |
Object providing access to hardware timer 3. | |
SFBHWTimer & | Timer4 |
Object providing access to hardware timer 4 (shared with SFBHWPWM.h). |
See the LPC23xx user manual (lpc23xx_um.pdf) Chapter 23 for details of operation, although note that only a limited amount of the full timer functionality is accessible through this API.
Up to four timers can be accessed through this API, denoted Timer1 through Timer4, or by array reference to Timers
[1] through Timers
[4]. Note that although array entry Timers
[0] does exist, it should not be accessed because it corresponds to the master system clock, which is not managed through this API.
Also, be aware that Timer4, although completely usable through this API as just another timer, is actually a PWM (Pulse Width Modulation) block in the hardware, the same hardware used by the SFBHWPWM.h code, and so Timer4 must not be accessed through this API if hardware PWM is in use.