Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
epacket_serial.h
Go to the documentation of this file.
1
9
10#ifndef INFUSE_SDK_INCLUDE_INFUSE_EPACKET_INTERFACE_EPACKET_SERIAL_H_
11#define INFUSE_SDK_INCLUDE_INFUSE_EPACKET_INTERFACE_EPACKET_SERIAL_H_
12
13#include <stdint.h>
14
15#include <zephyr/toolchain.h>
16
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
29
31#define EPACKET_SERIAL_SYNC_A 0xD5
33#define EPACKET_SERIAL_SYNC_B 0xCA
34
38 uint8_t sync[2];
40 uint16_t len;
41} __packed;
42
44#define epacket_serial_frame epacket_v0_versioned_frame_format
45
51void epacket_serial_reconstruct_reset(const struct device *dev);
52
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif /* INFUSE_SDK_INCLUDE_INFUSE_EPACKET_INTERFACE_EPACKET_SERIAL_H_ */
Common packet structures.
void epacket_serial_reconstruct_reset(const struct device *dev)
Reset the internal state of epacket_serial_reconstruct.
ePacket serial data frame header
Definition epacket_serial.h:36
uint16_t len
Length of the frame following this header.
Definition epacket_serial.h:40
uint8_t sync[2]
EPACKET_SERIAL_SYNC_A, EPACKET_SERIAL_SYNC_B
Definition epacket_serial.h:38