Silicon Labs / EFM32_CapSenseSlider

Dependents:   EFM32 RDA5807M RDS Radio EMF32-Segment-Touch-Demo EFM32_Bugs MFALHIMOHAMMED ... more

Embed: (wiki syntax)

« Back to documentation index

CapSense

CapSense
[Drivers]

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:
channelThe 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:
channelThe 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:
sleepIf 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:
scanCbScan callback
chCbChannel callback

Definition at line 337 of file caplesense.c.

void CAPLESENSE_setupLESENSE ( bool  sleep )

Setup the LESENSE for capavitive sensing.

Parameters:
sleepIf 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.