Speeduino
Loading...
Searching...
No Matches
comms_legacy.h
Go to the documentation of this file.
1
10#ifndef COMMS_LEGACY_H
11#define COMMS_LEGACY_H
12
45
60
71
72extern bool firstCommsRequest;
73extern byte logItemsTransmitted;
74extern byte inProgressLength;
75
76void legacySerialCommand(void);//This is the heart of the Command Line Interpreter. All that needed to be done was to make it human readable.
80void sendValuesLegacy(void);
81void sendPage(void);
82void sendPageASCII(void);
84void testComm(void);
87
88#endif // COMMS_LEGACY_H
void legacySerialHandler(byte cmd, Stream &targetPort, SerialStatus &targetStatusFlag)
Definition comms_legacy.cpp:527
bool serialTransmitInProgress(void)
Is a serial write in progress?
Definition comms_legacy.h:52
void sendValues(uint16_t offset, uint16_t packetLength, byte cmd, Stream &targetPort, SerialStatus &targetStatusFlag)
Definition comms_legacy.cpp:695
void sendCompositeLog_legacy(byte startOffset)
Definition comms_legacy.cpp:1297
void sendValuesLegacy(void)
Definition comms_legacy.cpp:766
void sendPage(void)
Definition comms_legacy.cpp:955
void sendToothLog_legacy(byte startOffset)
Definition comms_legacy.cpp:1269
void legacySerialCommand(void)
Definition comms_legacy.cpp:57
SerialStatus
The current state of serial communication.
Definition comms_legacy.h:16
@ SERIAL_TRANSMIT_INPROGRESS_LEGACY
Definition comms_legacy.h:22
@ SERIAL_INACTIVE
Definition comms_legacy.h:18
@ SERIAL_TRANSMIT_TOOTH_INPROGRESS_LEGACY
Definition comms_legacy.h:26
@ SERIAL_TRANSMIT_TOOTH_INPROGRESS
Definition comms_legacy.h:24
@ SERIAL_COMMAND_INPROGRESS_LEGACY
Definition comms_legacy.h:40
@ SERIAL_TRANSMIT_COMPOSITE_INPROGRESS_LEGACY
Definition comms_legacy.h:30
@ SERIAL_RECEIVE_INPROGRESS
Definition comms_legacy.h:38
@ SERIAL_TRANSMIT_INPROGRESS
Definition comms_legacy.h:20
@ SERIAL_TRANSMIT_COMPOSITE_INPROGRESS
Definition comms_legacy.h:28
SerialStatus serialSecondaryStatusFlag
Definition comms_legacy.cpp:37
void receiveCalibration(byte tableID)
Definition comms_legacy.cpp:1180
byte inProgressLength
Definition comms_legacy.cpp:35
bool firstCommsRequest
Definition comms_legacy.cpp:28
SerialStatus serialStatusFlag
Current status of serial comms.
Definition comms_legacy.cpp:36
bool serialRecieveInProgress(void)
Is a non-blocking serial receive operation in progress?
Definition comms_legacy.h:67
void testComm(void)
Definition comms_legacy.cpp:1337
byte logItemsTransmitted
Definition comms_legacy.cpp:34
void sendPageASCII(void)
Definition comms_legacy.cpp:1065
static uint32_t rshift(uint32_t a)
Bitwise right shift - generic, unoptimized, case.
Definition bit_shifts.h:349