Capacitive sensor module configuration

nRF5 SDK v12.1.0

Macros

#define NRF_DRV_CSENSE_ENABLED
Enabled Capacitive touch sensor driver. More...
#define TIMER0_FOR_CSENSE
First TIMER instance used by the driver (except nRF51) More...
#define TIMER1_FOR_CSENSE
Second TIMER instance used by the driver (except nRF51) More...
#define MEASUREMENT_PERIOD
Single measurement period. More...

Detailed Description

Macro Definition Documentation

#define MEASUREMENT_PERIOD

Single measurement period.

Time of single measurement can be calculated as T = (1/2)*MEASUREMENT_PERIOD*(1/f_OSC) where f_OSC = I_SOURCE / (2C*(VUP-VDOWN) ). I_SOURCE, VUP and VDOWN are values used to initialize COMP and C is capacitance of used pad.

Note
This is an NRF_CONFIG macro.
#define NRF_DRV_CSENSE_ENABLED

Enabled Capacitive touch sensor driver.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define TIMER0_FOR_CSENSE

First TIMER instance used by the driver (except nRF51)

Note
This is an NRF_CONFIG macro.
#define TIMER1_FOR_CSENSE

Second TIMER instance used by the driver (except nRF51)

Note
This is an NRF_CONFIG macro.