You are here

get_sensorcp API in CY8CKIT-040 | Cypress Semiconductor

get_sensorcp API in CY8CKIT-040

Summary: 1 Reply, Latest post by Bob Marlowe on 23 Feb 2016 12:40 PM PST
Verified Answers: 1
Last post
Log in to post new comments.
villadah_1498801's picture
1 post

Hello I'm new in this forum

I'm trying to use the get_sensorcp(); API but  I don't know how can I look for the result. I looked in the datasheet but I don't see

any example, please help.

user_1377889's picture
9268 posts

Welcome in the forum.

Excerpt from datasheet:

uint32 CapSense_GetSensorCp(uint32 sensor)
This API returns the Cp (parasitic capacitance) of sensor in pF (pico farads).
The supported range is 5-100 pF. The precision of API is +/-10%.
Note This API can be used to measure a capacitance of the external capacitors. In this case the parasitic capacitance should be subtracted from the total result.
uint32 sensor: Sensor number. The Capsense.h file contains defines for the sensor numbers. See the Sensor Constants section for details.
Return Value:
uint32: This API returns Sensor parasitic capacitance (Cp) of the sensor indicated as argument. The unit of sensor Cp value is pico-farads.
Side Effects:
Sensor scan should be complete before using this API.

What more do you need? An uint32 is returned.



Log in to post new comments.