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.
Dependents: kl25z-tinyshell-demo tsi_slider_light_senso_LED frdm_tsi_slider_led_blend demo_slider ... more
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 51 of file tsi_sensor.h.
Constructor & Destructor Documentation
| TSIElectrode | ( | PinName | pin ) |
Initialize electrode.
Definition at line 55 of file tsi_sensor.h.
| TSIElectrode | ( | uint32_t | tsi_channel ) |
Initialize electrode.
Definition at line 61 of file tsi_sensor.h.
Member Function Documentation
| uint32_t getBaseline | ( | ) |
Get baseline.
Definition at line 81 of file tsi_sensor.h.
| uint32_t getChannel | ( | ) |
Get channel.
Definition at line 106 of file tsi_sensor.h.
| uint32_t getDelta | ( | ) |
Get delta.
Definition at line 86 of file tsi_sensor.h.
| uint32_t getSignal | ( | ) |
Get signal.
Definition at line 96 of file tsi_sensor.h.
| uint32_t getThreshold | ( | ) |
Get threshold.
Definition at line 101 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 114 of file tsi_sensor.h.
| void setBaseline | ( | uint32_t | baseline ) |
Set baseline.
Definition at line 66 of file tsi_sensor.h.
| void setSignal | ( | uint32_t | signal ) |
Set signal.
Definition at line 76 of file tsi_sensor.h.
| void setThreshold | ( | uint32_t | threshold ) |
Set threshold.
Definition at line 71 of file tsi_sensor.h.
Generated on Tue Jul 12 2022 11:17:42 by
1.7.2