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: EFM32 RDA5807M RDS Radio EMF32-Segment-Touch-Demo EFM32_Bugs MFALHIMOHAMMED ... more
Functions | |
| uint8_t | CAPLESENSE_getSegmentChannel (uint8_t capSegment) |
| Get the channelValue for a sensor segment. | |
| uint32_t | CAPLESENSE_getVal (uint8_t channel) |
| Get the current channelValue for a channel. | |
| uint32_t | CAPLESENSE_getNormalizedVal (uint8_t channel) |
| Get the current normalized channelValue for a channel. | |
| int32_t | CAPLESENSE_getSliderPosition (void) |
| Get the position of the slider. | |
| void | CAPLESENSE_Init (bool sleep) |
| Initializes the capacative sense system without LESENSE. | |
| void | CAPLESENSE_setupLESENSE (bool sleep) |
| Setup the LESENSE for capavitive sensing. | |
| void | CAPLESENSE_setupCallbacks (void(*scanCb)(void), void(*chCb)(void)) |
| LESENSE callback setup. | |
| void | CAPLESENSE_Sleep (void) |
| Send the capacative sense system to sleep mode. | |
Function Documentation
| uint32_t CAPLESENSE_getNormalizedVal | ( | uint8_t | channel ) |
Get the current normalized channelValue for a channel.
- Parameters:
-
channel The channel.
- Returns:
- The channel value in range (0-256).
Definition at line 445 of file caplesense.c.
| uint8_t CAPLESENSE_getSegmentChannel | ( | uint8_t | capSegment ) |
Get the channelValue for a sensor segment.
- Parameters:
-
capSegment
- Returns:
- channel
Definition at line 406 of file caplesense.c.
| int32_t CAPLESENSE_getSliderPosition | ( | void | ) |
Get the position of the slider.
- Returns:
- The position of the slider if it can be determined, -1 otherwise.
Definition at line 458 of file caplesense.c.
| uint32_t CAPLESENSE_getVal | ( | uint8_t | channel ) |
Get the current channelValue for a channel.
- Parameters:
-
channel The channel.
- Returns:
- The channelValue.
Definition at line 435 of file caplesense.c.
| void CAPLESENSE_Init | ( | bool | sleep ) |
Initializes the capacative sense system without LESENSE.
- Parameters:
-
sleep If true, go into sleep mode.
Definition at line 526 of file caplesense.c.
| void CAPLESENSE_setupCallbacks | ( | void(*)(void) | scanCb, |
| void(*)(void) | chCb | ||
| ) |
LESENSE callback setup.
- Parameters:
-
scanCb Scan callback chCb Channel callback
Definition at line 337 of file caplesense.c.
| void CAPLESENSE_setupLESENSE | ( | bool | sleep ) |
Setup the LESENSE for capavitive sensing.
- Parameters:
-
sleep If true, go into sleep mode.
Definition at line 169 of file caplesense.c.
| void CAPLESENSE_Sleep | ( | void | ) |
Send the capacative sense system to sleep mode.
Definition at line 515 of file caplesense.c.
Generated on Tue Jul 12 2022 18:58:41 by
1.7.2