A struct representing a controllable power output. More...
Public Attributes | |
uint8_t | id |
A numeric ID for this unit. More... | |
uint8_t | state |
volatile uint8_t * | portreg |
Pointer to the register that this PowerUnit uses. More... | |
uint8_t | portbit |
The bit on the portreg register that the PowerUnit controls. More... | |
struct DimmerClock * | dimmer |
Pointer to the dimmer that this is connected to. More... | |
A struct representing a controllable power output.
For now, its either one of the lights or the receptacle. The combination of portreg and portbit represents the output pin that this dimmer controls (for example, portreg = &PORTG and portbit = 1 means this DimmerClock controls the output on PG1.
Definition at line 81 of file triaclight.c.
struct DimmerClock* PowerUnit::dimmer |
Pointer to the dimmer that this is connected to.
Definition at line 96 of file triaclight.c.
uint8_t PowerUnit::id |
A numeric ID for this unit.
Definition at line 84 of file triaclight.c.
uint8_t PowerUnit::portbit |
The bit on the portreg register that the PowerUnit controls.
Definition at line 93 of file triaclight.c.
volatile uint8_t* PowerUnit::portreg |
Pointer to the register that this PowerUnit uses.
Definition at line 90 of file triaclight.c.
uint8_t PowerUnit::state |
Definition at line 87 of file triaclight.c.