| 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
Macros
Capacitive sensor module configuration
Capacitive sensor support

## Macros
#define | NRF_DRV_CSENSE_ENABLED
| Enabled Capacitive touch sensor driver. * Set to 1 to activate. 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.