tfmini 2.0.0.0
TFmini Device Settings

Settings for registers of TFmini Click driver. More...

Macros

#define TFMINI_CMD_HEADER   0x5A
 TFmini command frame macros.
 
#define TFMINI_CMD_ID_FW_VERSION   0x01
 
#define TFMINI_CMD_ID_SYSTEM_RESET   0x02
 
#define TFMINI_CMD_ID_FRAME_RATE   0x03
 
#define TFMINI_CMD_ID_TRIGGER_DETECTION   0x04
 
#define TFMINI_CMD_ID_OUTPUT_FORMAT   0x05
 
#define TFMINI_CMD_ID_BAUD_RATE   0x06
 
#define TFMINI_CMD_ID_ENABLE_OUTPUT   0x07
 
#define TFMINI_CMD_ID_COM_SELECTION   0x0A
 
#define TFMINI_CMD_ID_SLAVE_ADDRESS   0x0B
 
#define TFMINI_CMD_ID_DATA_FRAME   0x00
 
#define TFMINI_CMD_ID_IO_MODE_ENABLE   0x3B
 
#define TFMINI_CMD_ID_RESTORE_FACTORY   0x10
 
#define TFMINI_CMD_ID_SAVE_SETTINGS   0x11
 
#define TFMINI_HEADER   0x59
 TFmini output data frame macros.
 
#define TFMINI_FRAME_SIZE   0x07
 
#define TFMINI_MAX_BYTES_BEFORE_HEADER   100
 
#define TFMINI_LOW_SIGNAL_STRENGTH   -1
 
#define TFMINI_SIGNAL_STRENGTH_SATURATION   -2
 
#define TFMINI_AMBIENT_LIGHT_SATURATION   -4
 
#define TFMINI_NO_HEADER_FOUND   -5
 
#define TFMINI_WRONG_CHECKSUM   -6
 
#define DRV_BUFFER_SIZE   500
 TFmini driver buffer size.
 
#define TFMINI_SET_DEV_ADDR   0x10
 TFmini device address setting.
 

Detailed Description

Settings for registers of TFmini Click driver.

Macro Definition Documentation

◆ DRV_BUFFER_SIZE

#define DRV_BUFFER_SIZE   500

TFmini driver buffer size.

Specified size of driver ring buffer.

Note
Increase buffer size if needed.

◆ TFMINI_AMBIENT_LIGHT_SATURATION

#define TFMINI_AMBIENT_LIGHT_SATURATION   -4

◆ TFMINI_CMD_HEADER

#define TFMINI_CMD_HEADER   0x5A

TFmini command frame macros.

Specified macros for command frame of TFmini Click driver.

◆ TFMINI_CMD_ID_BAUD_RATE

#define TFMINI_CMD_ID_BAUD_RATE   0x06

◆ TFMINI_CMD_ID_COM_SELECTION

#define TFMINI_CMD_ID_COM_SELECTION   0x0A

◆ TFMINI_CMD_ID_DATA_FRAME

#define TFMINI_CMD_ID_DATA_FRAME   0x00

◆ TFMINI_CMD_ID_ENABLE_OUTPUT

#define TFMINI_CMD_ID_ENABLE_OUTPUT   0x07

◆ TFMINI_CMD_ID_FRAME_RATE

#define TFMINI_CMD_ID_FRAME_RATE   0x03

◆ TFMINI_CMD_ID_FW_VERSION

#define TFMINI_CMD_ID_FW_VERSION   0x01

◆ TFMINI_CMD_ID_IO_MODE_ENABLE

#define TFMINI_CMD_ID_IO_MODE_ENABLE   0x3B

◆ TFMINI_CMD_ID_OUTPUT_FORMAT

#define TFMINI_CMD_ID_OUTPUT_FORMAT   0x05

◆ TFMINI_CMD_ID_RESTORE_FACTORY

#define TFMINI_CMD_ID_RESTORE_FACTORY   0x10

◆ TFMINI_CMD_ID_SAVE_SETTINGS

#define TFMINI_CMD_ID_SAVE_SETTINGS   0x11

◆ TFMINI_CMD_ID_SLAVE_ADDRESS

#define TFMINI_CMD_ID_SLAVE_ADDRESS   0x0B

◆ TFMINI_CMD_ID_SYSTEM_RESET

#define TFMINI_CMD_ID_SYSTEM_RESET   0x02

◆ TFMINI_CMD_ID_TRIGGER_DETECTION

#define TFMINI_CMD_ID_TRIGGER_DETECTION   0x04

◆ TFMINI_FRAME_SIZE

#define TFMINI_FRAME_SIZE   0x07

◆ TFMINI_HEADER

#define TFMINI_HEADER   0x59

TFmini output data frame macros.

Specified macros for output data frame of TFmini Click driver.

◆ TFMINI_LOW_SIGNAL_STRENGTH

#define TFMINI_LOW_SIGNAL_STRENGTH   -1

◆ TFMINI_MAX_BYTES_BEFORE_HEADER

#define TFMINI_MAX_BYTES_BEFORE_HEADER   100

◆ TFMINI_NO_HEADER_FOUND

#define TFMINI_NO_HEADER_FOUND   -5

◆ TFMINI_SET_DEV_ADDR

#define TFMINI_SET_DEV_ADDR   0x10

TFmini device address setting.

Specified setting for device slave address selection of TFmini Click driver.

◆ TFMINI_SIGNAL_STRENGTH_SATURATION

#define TFMINI_SIGNAL_STRENGTH_SATURATION   -2

◆ TFMINI_WRONG_CHECKSUM

#define TFMINI_WRONG_CHECKSUM   -6