libtropic
C library for TROPIC01 chip
Layer 2 frame check functions

Used internally. More...

Files

file  lt_l2_frame_check.h
 Layer 2 frame check functions declarations.
 

Macros

#define L2_STATUS_REQUEST_OK   0x01
 STATUS field value.
 
#define L2_STATUS_RESULT_OK   0x02
 STATUS field value.
 
#define L2_STATUS_REQUEST_CONT   0x03
 STATUS field value.
 
#define L2_STATUS_RESULT_CONT   0x04
 STATUS field value.
 
#define L2_STATUS_RESP_DISABLED   0x78
 STATUS field value.
 
#define L2_STATUS_HSK_ERR   0x79
 STATUS field value.
 
#define L2_STATUS_NO_SESSION   0x7A
 STATUS field value.
 
#define L2_STATUS_TAG_ERR   0x7B
 STATUS field value.
 
#define L2_STATUS_CRC_ERR   0x7C
 STATUS field value.
 
#define L2_STATUS_UNKNOWN_ERR   0x7E
 STATUS field value.
 
#define L2_STATUS_GEN_ERR   0x7F
 STATUS field value.
 
#define L2_STATUS_NO_RESP   0xFF
 STATUS field value.
 

Functions

lt_ret_t lt_l2_frame_check (const uint8_t *frame)
 Checks if incomming L2 frame is valid. More...
 

Detailed Description

Functions for L2 frame checking