StuBS
PIT::Mode Union Reference

Public Member Functions

 Mode (uint8_t value)
 Constructor for mode, takes the numeric value.
 Mode (AccessMode access, OperatingMode operating, Format format)
 Constructor for counting mode.
 Mode ()
 (Default) constructor for reading the counter value
void write () const
 Write the value to the mode register.

Public Attributes

struct { 
Format format: 1
OperatingMode operating: 3
AccessMode access: 2
uint8_t channel: 2
}; 
uint8_t value

Constructor & Destructor Documentation

◆ Mode()

PIT::Mode::Mode ( AccessMode access,
OperatingMode operating,
Format format )
inline

Constructor for counting mode.

Parameters
accessAccess mode to the 16-bit counter value
operatingOperating mode for the counter
formatNumber format for the 16-bit counter values (binary or BCD)

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