StuBS
Loading...
Searching...
No Matches
pit.h File Reference

The old/historical Programmable Interval Timer (PIT). More...

#include "types.h"
Include dependency graph for pit.h:

Namespaces

namespace  PIT
 Abstraction of the historical Programmable Interval Timer (PIT).
 

Functions

bool PIT::set (uint16_t us)
 Start timer.
 
uint16_t PIT::get (void)
 Reads the current timer value.
 
bool PIT::isActive (void)
 Check if the timer is running.
 
bool PIT::waitForTimeout (void)
 (Active) waiting for timeout
 
bool PIT::delay (uint16_t us)
 Set the timer and wait for timeout.
 
void PIT::pcspeaker (uint32_t freq)
 Play a given frequency on the PC speaker.
 
void PIT::disable (void)
 Deactivate the timer.
 

Detailed Description