You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
934 B
28 lines
934 B
//
|
|
// Created by MightyPork on 2017/12/15.
|
|
//
|
|
|
|
#ifndef GEX_CLIENT_GEX_CLIENT_INTERNAL_H
|
|
#define GEX_CLIENT_GEX_CLIENT_INTERNAL_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include "gex_client.h"
|
|
|
|
struct gex_client {
|
|
TinyFrame *tf; //!< TinyFrame instance
|
|
const char *acm_device; //!< Comport device name, might be used to reconnect (?)
|
|
int acm_fd; //!< Open comport file descriptor
|
|
bool connected; //!< Flag that we're currently connected to the comport
|
|
|
|
// synchronous query "hacks"
|
|
bool sync_query_ok; //!< flag that the query response was received
|
|
GexMsg sync_query_response; //!< response message, copied here
|
|
uint8_t sync_query_buffer[TF_MAX_PAYLOAD_RX]; //!< buffer for the rx payload to be copied here
|
|
|
|
GexEventListener fallback_report_handler;
|
|
|
|
struct gex_unit *ulu_head; //!< Units look-up linked list
|
|
};
|
|
|
|
#endif //GEX_CLIENT_GEX_CLIENT_INTERNAL_H
|
|
|