Speeduino
Loading...
Searching...
No Matches
comms.h
Go to the documentation of this file.
1
10#ifndef COMMS_H
11#define COMMS_H
12
14#define primarySerial (*pPrimarySerial)
15
17
22void serialReceive(void);
23
26void serialTransmit(void);
27
32bool isRxTimeout(void);
33
43
46
47#endif // COMMS_H
void setStorageWriteTimeout(uint32_t time)
During serial comms, defer storage writes.
Definition comms.cpp:1191
uint32_t serialReceiveStartTime
The time in milliseconds at which the serial receive started. Used for calculating whether a timeout ...
Definition comms.cpp:85
void serialReceive(void)
The serial receive pump. Should be called whenever the serial port has data available to read.
Definition comms.cpp:476
Stream * pPrimarySerial
Definition comms.cpp:105
void serialTransmit(void)
The serial transmit pump. Should be called when serialStatusFlag indicates a transmit operation is in...
Definition comms.cpp:560
bool storageWriteTimeoutExpired(void)
Test if the timeout set by setStorageWriteTimeout has expired.
Definition comms.cpp:1195
bool isRxTimeout(void)
Checks whether the current serial command should be timed out.
Definition comms.cpp:116
static TIntegral readSerialIntegralTimeout(void)
Reads an integral type, timing out if necessary.
Definition comms.cpp:175