A library for Freescale MCU which contain TSI peripheral, just for Kinetis L version. Because they use "lighter" version of TSI peripheral.
Fork of tsi_sensor by
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 Mon Jul 18 2022 23:31:28 by 1.7.2