Parcourir la source

Update 'main/tnc_kiss.h'

Updated struct to hold status field for buffer.
Tyler Berezowsky il y a 5 ans
Parent
commit
1e52285777
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  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 {