Files
aqhomecontrol/aqhome/serial_p.h

41 lines
834 B
C

/****************************************************************************
* 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_SERIAL_P_H
#define AQH_SERIAL_P_H
#include "aqhome/serial.h"
#include <termios.h>
#include <inttypes.h>
#define AQH_SERIAL_BUFFERSIZE 32
struct AQH_SERIAL {
char *deviceName;
int fd;
uint8_t address;
int intendedAttnState;
AQH_MSG *currentlyReceivedMsg;
AQH_MSG_LIST *receivedMessageList;
AQH_MSG_LIST *sendMessageList;
struct termios previousOptions;
AQH_SERIAL_PACKETRECEIVED_FN packetReceivedFn;
};
#endif