BPLightContraption
 All Classes Namespaces Files Functions Variables Macros Pages
Public Attributes | List of all members
PowerUnit Struct Reference

A struct representing a controllable power output. More...

Collaboration diagram for PowerUnit:
Collaboration graph
[legend]

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 DimmerClockdimmer
 Pointer to the dimmer that this is connected to. More...
 

Detailed Description

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.

Member Data Documentation

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.


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