libtropic
C library for TROPIC01 chip
lt_l2_frame_check.h File Reference

Layer 2 frame check functions declarations. More...

#include <stdint.h>
#include "libtropic_common.h"
Include dependency graph for lt_l2_frame_check.h:

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

Author
Tropic Square s.r.o.
License
For the license see file LICENSE.txt file in the root directory of this source tree.