Code generation
The CAPSENSE™ Configurator generates .c and .h files into directory
GeneratedSource
next to the *.
cycapsense
file, which contains the user configuration. These files –
cycfg_capsense.h
,
cycfg_capsense.c
,
cycfg_capsense_defines.h
,
cycfg_capsense_tuner_regmap.h
– contain relevant firmware used for the CAPSENSE™ Middleware configuration and operation. The directory contains the necessary source (.c) and header (.h) files for the generated firmware, which uses the relevant driver APIs to configure the hardware.
The file
cycfg_capsense_defines.h
is required for the CAPSENSE™ Middleware to build successfully. It must be located in the
GeneratedSource
directory when the CAPSENSE™ Middleware is included in the application.
The tool generates code every time you save the configuration file. Code can be generated during the application build if it is missing or out-of-date.