minipix_uart_interface
A library and examples for the MiniPIX UART interface
|
Go to the documentation of this file.
13 #ifndef GATHERER_INTERFACE_H
14 #define GATHERER_INTERFACE_H
25 #ifndef GATHERER_SEND_STRING
26 #define GATHERER_SEND_STRING 0
29 #ifndef GATHERER_SEND_CHAR
30 #define GATHERER_SEND_CHAR 0
33 #if ((GATHERER_SEND_CHAR == 0) && (GATHERER_SEND_STRING == 0))
35 "Cannot have both GATHERER_SEND_CHAR and GATHERER_SEND_STRING set to 0. At least one data handling function needs to be used! Please, read README at https://github.com/klaxalk/minipix_uart_interface/tree/master/software/gatherer for more details."
89 #endif // GATHERER_INTERFACE_H
void gatherer_processTemperature(Gatherer_Handler_t *gatherer_handler, const LLCP_Temperature_t *data)
Definition: gatherer_interface.c:192
void gatherer_initialize(Gatherer_Handler_t *gatherer_handler)
Definition: gatherer_interface.c:5
void gatherer_processAck(Gatherer_Handler_t *gatherer_handler, const LLCP_Ack_t *data)
Definition: gatherer_interface.c:212
void gatherer_processFrameDataTerminator(Gatherer_Handler_t *gatherer_handler, const LLCP_FrameDataTerminator_t *data)
Definition: gatherer_interface.c:152
MUI_Handler_t * mui_handler_ptr_
Definition: gatherer_interface.h:53
void gatherer_receiveCharCallback(Gatherer_Handler_t *gatherer_handler, const uint8_t byte_in)
callback called by a user with new bytes coming from the UART connected to PC
Definition: gatherer_interface.c:15
LLCP_Temperature_t
Definition: llcp_minipix_messages.h:935
Definition: gatherer_interface.h:51
void gatherer_processFrameMeasurementFinished(Gatherer_Handler_t *gatherer_handler)
Definition: gatherer_interface.c:252
void gatherer_processFrameData(Gatherer_Handler_t *gatherer_handler, const LLCP_FrameData_t *data)
Definition: gatherer_interface.c:132
LLCP_FrameData_t
Definition: llcp_minipix_messages.h:181
LLCP_Status_t
Definition: llcp_minipix_messages.h:829
gatherer_sendChar_t sendChar
Definition: gatherer_interface.h:45
LLCP_Receiver_t llcp_receiver
Definition: gatherer_interface.h:54
LLCP_Ack_t
Definition: llcp_minipix_messages.h:682
void(* gatherer_sendString_t)(const uint8_t *str_out, const uint16_t len)
Definition: gatherer_interface.h:40
Definition: gatherer_interface.h:42
#define LLCP_RX_TX_BUFFER_SIZE
Definition: llcp.h:54
void(* gatherer_sendChar_t)(const uint8_t char_out)
Definition: gatherer_interface.h:39
void gatherer_sendMessage(Gatherer_Handler_t *gatherer_handler, const uint8_t *str_out, const uint16_t len)
Definition: gatherer_interface.c:271
LLCP_MinipixError_t
Definition: llcp_minipix_messages.h:1043
void gatherer_processStatus(Gatherer_Handler_t *gatherer_handler, const LLCP_Status_t *data)
Definition: gatherer_interface.c:172
LLCP_FrameDataTerminator_t
Definition: llcp_minipix_messages.h:251
uint8_t tx_buffer[TX_SERIAL_BUFFER_SIZE]
Definition: main.cpp:16
gatherer_sendString_t sendString
Definition: gatherer_interface.h:46
Gatherer_FcnPrototypes_t fcns
Definition: gatherer_interface.h:56
void gatherer_processMinipixError(Gatherer_Handler_t *gatherer_handler, const LLCP_MinipixError_t *data)
Definition: gatherer_interface.c:232
LLCP_Receiver_t
Definition: llcp.h:107