aqhome: Improved serial port handling, added parsers for different msg types.
This commit is contained in:
32
aqhome/msg_p.h
Normal file
32
aqhome/msg_p.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/****************************************************************************
|
||||
* This file is part of the project AqHome.
|
||||
* AqHome (c) by 2023 Martin Preuss, all rights reserved.
|
||||
*
|
||||
* The license for this file can be found in the file COPYING which you
|
||||
* should have received along with this file.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef AQH_MSG_P_H
|
||||
#define AQH_MSG_P_H
|
||||
|
||||
|
||||
#include "aqhome/msg.h"
|
||||
|
||||
|
||||
|
||||
|
||||
struct AQH_MSG {
|
||||
GWEN_LIST_ELEMENT(AQH_MSG)
|
||||
|
||||
uint8_t buffer[AQH_MAXMSGSIZE];
|
||||
uint8_t bytesInBuffer;
|
||||
uint8_t currentPos;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user