Updated struct to hold status field for buffer.
@@ -56,10 +56,17 @@ typedef enum {
FRAME_END,
} KISS_STATE_t;
+typedef enum {
+ FRAME_INVALID = 0,
+ FRAME_INCOMPLETE,
+ FRAME_COMPLETE,
+} FRAME_STATUS_t;
+
typedef struct {
uint8_t buf[FRAME_BUFFER_SIZE];
uint32_t max_len;
uint32_t index;
+ FRAME_STATUS_t status;
} buffer_handle_t;