Browse Source

Update 'main/tnc_kiss.h'

Updated struct to hold status field for buffer.
Tyler Berezowsky 4 years ago
parent
commit
1e52285777
1 changed files with 7 additions and 0 deletions
  1. 7 0
      main/tnc_kiss.h

+ 7 - 0
main/tnc_kiss.h

@@ -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;
 
 typedef struct {