| nRF5 SDK v12.0.0 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Fields
nrf_drv_csense_evt_t Struct Reference
Capacitive sensor support

Structure holding event parameters. More...

`#include <nrf_drv_csense.h>`

## Data Fields
uint16_t | read_value
uint8_t | analog_channel

## Detailed Description

Structure holding event parameters.

## Field Documentation

uint8_t nrf_drv_csense_evt_t::analog_channel

Index of analog channel from which value was read.

uint16_t nrf_drv_csense_evt_t::read_value

                      Value which was read on analog channel. It is voltage in millivolts for NRF51 or time in ticks of 10 periods of relaxation

oscillator for NRF52. Voltage corresponds to capacitance of pad attached to analog channel and gets bigger once it is touched. Period of relaxation also corresponds to pad capacitance and increases its value when capacitance getting bigger.