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
34#endif // COMMS_H
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:474
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:558
bool isRxTimeout(void)
Checks whether the current serial command should be timed out.
Definition comms.cpp:114
static TIntegral readSerialIntegralTimeout(void)
Reads an integral type, timing out if necessary.
Definition comms.cpp:173