13 #ifndef DATA_FORMAT_JSON_H_ 14 #define DATA_FORMAT_JSON_H_ 18 #define HOST_INTERFACE 1 23 #define DATA_FORMAT_JSON_OK 0 123 #endif // DATA_FORMAT_JSON_H_
int32_t JSON_Get_Stream_NonBlockingCall(void *pRecvData, uint8_t data, uint8_t *state, uint8_t *buffIndex)
This function is a helper function to get json stream where the data length is unknown.
int32_t JSON_Deserialize(void *pInData, void *pDataTag, char *pDataValue, json_format_t type)
The function to deserialize the data,.
The host_interface_service.h file describes the structures and definitions for the host...
bool JSON_Process_Rx_Byte(uint8_t c, host_rx_packet_t *pHostRxPkt)
Function to handle incomming JSON encoded bytes form the Host over UART.
int32_t JSON_Serialize(char *pStr, char *pDataTagStr, char *pDataValue, json_format_t type, bool end)
The function to serialize the data,.
The host_io_uart.h file contains the Host Protocol interface definitions and configuration.
enum _json_format_ json_format_t
size_t JSON_Process_Tx_Msg(const uint8_t *pBuffer, uint8_t *pMsg, size_t size)
This structure holds information to receive a packet of data to the host.
typedef int32_t(DATA_FORMAT_Append_t))(void *pData
The interface function to append the data on the formated stream.
void JSON_BlockDataRead_BlockingCall(host_interface_handle_t *pHandle, void *pRecvData)
The function provides block data read for the JSON stream, This is for Blocking receive call...
uint8_t data[FXLS8962_DATA_SIZE]