DALI Library for Arduino/AVR
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | List of all members
DaliBusClass Class Reference

Public Member Functions

void begin (byte tx_pin, byte rx_pin, bool active_low=true)
 
daliReturnValue sendRaw (const byte *message, byte length)
 
int getLastResponse ()
 
bool busIsIdle ()
 
void timerISR ()
 
void pinchangeISR ()
 

Public Attributes

volatile byte busIdleCount
 

Protected Types

enum  busStateEnum {
  TX_START_1ST , TX_START_2ND , TX_BIT_1ST , TX_BIT_2ND ,
  TX_STOP_1ST , TX_STOP , IDLE , SHORT ,
  WAIT_RX , RX_START , RX_BIT , RX_STOP
}
 

Protected Member Functions

bool isDeltaWithinTE (unsigned long delta)
 
bool isDeltaWithin2TE (unsigned long delta)
 
byte getBusLevel ()
 
void setBusLevel (byte level)
 

Protected Attributes

byte txPin
 
byte rxPin
 
bool activeLow
 
byte txMessage [3]
 
byte txLength
 
volatile busStateEnum busState
 
volatile byte txPos
 
volatile byte txBusLevel
 
volatile byte txCollision
 
volatile unsigned long rxLastChange
 
volatile byte rxMessage
 
volatile char rxLength
 
volatile char rxError
 

The documentation for this class was generated from the following files: