Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
TSIElectrode Class Reference
TSI Electrode with simple data required for touch detection. More...
#include <tsi_sensor.h>
Public Member Functions | |
| TSIElectrode (PinName pin) | |
| Initialize electrode. | |
| TSIElectrode (uint32_t tsi_channel) | |
| Initialize electrode. | |
| void | setBaseline (uint32_t baseline) |
| Set baseline. | |
| void | setThreshold (uint32_t threshold) |
| Set threshold. | |
| void | setSignal (uint32_t signal) |
| Set signal. | |
| uint32_t | getBaseline () |
| Get baseline. | |
| uint32_t | getDelta () |
| Get delta. | |
| uint32_t | getSignal () |
| Get signal. | |
| uint32_t | getThreshold () |
| Get threshold. | |
| uint32_t | getChannel () |
| Get channel. | |
Static Public Member Functions | |
| static uint8_t | getTSIChannel (PinName pin) |
| Get TSI Channel for PinName. | |
Detailed Description
TSI Electrode with simple data required for touch detection.
Definition at line 63 of file tsi_sensor.h.
Constructor & Destructor Documentation
| TSIElectrode | ( | PinName | pin ) |
Initialize electrode.
Definition at line 67 of file tsi_sensor.h.
| TSIElectrode | ( | uint32_t | tsi_channel ) |
Initialize electrode.
Definition at line 73 of file tsi_sensor.h.
Member Function Documentation
| uint32_t getBaseline | ( | ) |
Get baseline.
Definition at line 93 of file tsi_sensor.h.
| uint32_t getChannel | ( | ) |
Get channel.
Definition at line 118 of file tsi_sensor.h.
| uint32_t getDelta | ( | ) |
Get delta.
Definition at line 98 of file tsi_sensor.h.
| uint32_t getSignal | ( | ) |
Get signal.
Definition at line 108 of file tsi_sensor.h.
| uint32_t getThreshold | ( | ) |
Get threshold.
Definition at line 113 of file tsi_sensor.h.
| static uint8_t getTSIChannel | ( | PinName | pin ) | [static] |
Get TSI Channel for PinName.
- Returns:
- TSI channel ID for use in constructor of TSIAnalogSlider and TSIElectrode.
- Exceptions:
-
compile-time error if target is not supported, or runtime error if pin does not match any channel.
Definition at line 126 of file tsi_sensor.h.
| void setBaseline | ( | uint32_t | baseline ) |
Set baseline.
Definition at line 78 of file tsi_sensor.h.
| void setSignal | ( | uint32_t | signal ) |
Set signal.
Definition at line 88 of file tsi_sensor.h.
| void setThreshold | ( | uint32_t | threshold ) |
Set threshold.
Definition at line 83 of file tsi_sensor.h.
Generated on Tue Aug 23 2022 23:44:59 by
1.7.2