tag_sensor_t

Structure

tag_sensor_t

Input / Output

Output from the library

Use

Data structure which holds the internal sensor state variables used by the library.

Fields

Type

Comment

State

uint8_t

internal sensor state

general_counter

uint8_t

general purpose counter: used for calibration, drifting, etc

ndil_counter

uint8_t

drift Integration counter

Threshold

uint8_t

sensor detection threshold. Refer to Detect threshold for more details

type_aks_pos_hyst

uint8_t

holds information for sensor type, AKS group, positive recalibration flag, and hysteresis value:

Bit fields

Use

B1 : B0

Hysteresis. Refer to Hysteresis for more details

B2

positive recalibration flag

B5:B3

AKS group. Refer to Adjacent Key Suppression (AKS) for more details

B7:B6

sensor type

from_channel

uint8_t

starting channel number for sensor

to_channel

uint8_t

ending channel number for sensor

Index

uint8_t

index for array of rotor/slider values