AqHome: Added a test for sending/receiving asynchronously.
This commit is contained in:
@@ -14,10 +14,24 @@
|
||||
#include <inttypes.h>
|
||||
|
||||
|
||||
#define AQH_SERIAL_BUFFERSIZE 32
|
||||
|
||||
|
||||
|
||||
struct AQH_SERIAL {
|
||||
char *deviceName;
|
||||
int fd;
|
||||
uint8_t address;
|
||||
|
||||
uint8_t readBuffer[AQH_SERIAL_BUFFERSIZE];
|
||||
uint8_t bytesToRead;
|
||||
uint8_t readPos;
|
||||
|
||||
uint8_t writeBuffer[AQH_SERIAL_BUFFERSIZE];
|
||||
uint8_t bytesToWrite;
|
||||
uint8_t writePos;
|
||||
|
||||
AQH_SERIAL_PACKETRECEIVED_FN packetReceivedFn;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user