mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-30 03:26:13 +01:00
26 lines
661 B
C++
26 lines
661 B
C++
#include "Railcom.h"
|
|
#include "Hardware.h"
|
|
|
|
void Railcom::startCutout() {
|
|
return;
|
|
/*** todo when ready ***
|
|
interruptState=0;
|
|
Hardware::setSingleCallback(RAILCOM_T0,interrupt);
|
|
*************/
|
|
}
|
|
|
|
void Railcom::interrupt() {
|
|
/*** TODO when ready .. railcom state machine
|
|
switch (interruptState) {
|
|
case 0: //
|
|
Hardware::setPower(true,false);
|
|
state=1;
|
|
nextInterrupt=RAILCOM_T1;
|
|
break;
|
|
}
|
|
**********************/
|
|
}
|
|
byte Railcom::interruptState;
|
|
byte Railcom::bitsReceived;
|
|
byte Railcom::buffer[MAX_BUFFER];
|