ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
ldc1614.h File Reference

TI LDC1614 inductance-to-digital field-sensing codec (PROTOCORE_ENABLE_LDC1614). More...

#include "protocore_config.h"

Go to the source code of this file.

Detailed Description

TI LDC1614 inductance-to-digital field-sensing codec (PROTOCORE_ENABLE_LDC1614).

The LDC1614 measures the resonant frequency of an external LC tank driven by a coil; a nearby conductor changes the coil's effective inductance (eddy currents), moving that frequency - so the 28-bit conversion result tracks metal proximity, displacement, and EM-field perturbation without contact. It shares TI's FDC/LDC register architecture: each channel's result is a DATA MSB register (top 4 bits error flags, low 12 bits data MSB) plus a DATA LSB register, combining into 28 bits, with f_sensor = data / 2^28 * f_ref and L = 1 / (C * (2*pi*f)^2) derived by the app from the tank C.

This codec is pure and host-tested: ::protocore_ldc1614_data combines the register pair, ::protocore_ldc1614_error pulls the flags, ::protocore_ldc1614_sensor_freq_hz scales to frequency, and ::protocore_ldc1614_build_config emits a single-channel bring-up. On an ESP32 the binding replays that config and reads the channel over I2C; only that touches hardware. Bridge the readings northbound like any sensor.

Definition in file ldc1614.h.