Structure holding event parameters. More...
#include <nrf_drv_csense.h>
Data Fields | |
uint16_t | read_value |
uint8_t | analog_channel |
Structure holding event parameters.
uint8_t nrf_drv_csense_evt_t::analog_channel |
Index of the analog channel from which the value was read.
uint16_t nrf_drv_csense_evt_t::read_value |
Value which was read on the analog channel. For nRF51, this value is voltage in millivolts. For nRF52, it is time in ticks of 10 periods of the relaxation oscillator. Voltage corresponds to capacitance of the pad attached to analog channel and gets higher once it
is touched. Period of relaxation also corresponds to the pad capacitance and increases its value when capacitance gets higher.