33#include "PinChangeInterrupt.h"
35const int DALI_BAUD = 1200;
36const unsigned long DALI_TE = 417;
37const unsigned long DALI_TE_MIN = ( 80 * DALI_TE) / 100;
38const unsigned long DALI_TE_MAX = (120 * DALI_TE) / 100;
46 DALI_INVALID_PARAMETER = -4,
48 DALI_READY_TIMEOUT = -6,
49 DALI_SEND_TIMEOUT = -7,
55 void begin(
byte tx_pin,
byte rx_pin,
bool active_low =
true);
58 int getLastResponse();
61 volatile byte busIdleCount;
73 TX_START_1ST, TX_START_2ND,
74 TX_BIT_1ST, TX_BIT_2ND,
78 WAIT_RX, RX_START, RX_BIT, RX_STOP
80 volatile busStateEnum busState;
82 volatile byte txBusLevel;
83 volatile byte txCollision;
85 volatile unsigned long rxLastChange;
86 volatile byte rxMessage;
87 volatile char rxLength;
88 volatile char rxError;
90 bool isDeltaWithinTE(
unsigned long delta);
91 bool isDeltaWithin2TE(
unsigned long delta);
93 void setBusLevel(
byte level);
daliReturnValue
Definition: DaliBus.h:42