libtropic
C library for TROPIC01 chip
lt_l1.h File Reference

Layer 1 functions declarations. More...

#include "libtropic_common.h"
Include dependency graph for lt_l1.h:

Macros

#define CHIP_MODE_READY_bit   0x01
 
#define CHIP_MODE_ALARM_bit   0x02
 
#define CHIP_MODE_STARTUP_bit   0x04
 
#define LT_L1_READ_MAX_TRIES   10
 
#define LT_L1_READ_RETRY_DELAY   25
 
#define LT_L1_TIMEOUT_MS_MIN   5
 
#define LT_L1_TIMEOUT_MS_DEFAULT   70
 
#define LT_L1_TIMEOUT_MS_MAX   150
 
#define GET_RESPONSE_REQ_ID   0xAA
 

Functions

lt_ret_t lt_l1_read (lt_l2_state_t *s2, const uint32_t max_len, const uint32_t timeout_ms)
 Reads data from TROPIC01 into host platform. More...
 
lt_ret_t lt_l1_write (lt_l2_state_t *s2, const uint16_t len, const uint32_t timeout_ms)
 Writes data from host platform into TROPIC01. 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.