cancel
Showing results for 
Search instead for 
Did you mean: 

Knowledge Base Articles

Access and Modify CapSense Register Map in Firmware – KBA2226674

chaitanyav_41
Employee

Access and Modify CapSense Register Map in Firmware – KBA2226674

Author: ShanmathiN_06          Version: **

Question:

How do I read from and write into the CapSense® register map through firmware in CapSense Component version 3.0 or above?

Answer:

You can access and modify the CapSense parameters dynamically in firmware using the GetParam and SetParam API functions respectively.


Read operation:

CapSense_GetParam (uint32 paramId, uint32 * value);

Use the following parameters as arguments for this API:

  • paramId

     The paramId for each register is available in the CapSense RegisterMap header file as CapSense_<ParameterName>_PARAM_ID.

  • value

      The value is the pointer to the variable to be updated with the obtained value from the CapSense register.

Write operation:

CapSense_SetParam (uint32 paramId, uint32 value);

Use the following parameters as arguments for this API:

  • paramId

     The paramId for each register is available in the CapSense RegisterMap header file as CapSense_<ParameterName>_PARAM_ID.

  • value

     The variable that holds the new value to be updated in the CapSense register.

Note:

  • Refer to the CapSense Component datasheet for details on the format of paramId. It also provides information on the read/write permissions for that specific parameter.

  • After modifying a CapSense parameter, re-initialization of the component may be necessary. This information is available for each register in the exported register map file (Select Export Register Map from the CapSense component customizer screen).
0 Likes
Version history
Revision #:
1 of 1
Last update:
‎Mar 07, 2019 09:22 PM
Updated by:
 
Contributors