EFM32 Wonder Gecko Software Documentation  efm32wg-doc-5.1.2
em_lesense.c File Reference

Detailed Description

Low Energy Sensor (LESENSE) Peripheral API.

Version
5.1.2

License

Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software.
  2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Labs has no obligation to support this Software. Silicon Labs is providing the Software "AS IS", with no express or implied warranties of any kind, including, but not limited to, any implied warranties of merchantability or fitness for any particular purpose or warranties against infringement of any proprietary rights of a third party.

Silicon Labs will not be liable for any consequential, incidental, or special damages, or any other relief, or for any claim by any third party, arising from your use of this Software.

Definition in file em_lesense.c.

#include "em_lesense.h"
#include "em_assert.h"
#include "em_bus.h"
#include "em_cmu.h"

Go to the source code of this file.

Functions

void LESENSE_AltExConfig (const LESENSE_ConfAltEx_TypeDef *confAltEx)
 Configure the LESENSE alternate excitation modes. More...
 
void LESENSE_ChannelAllConfig (const LESENSE_ChAll_TypeDef *confChAll)
 Configure all (16) LESENSE sensor channels. More...
 
void LESENSE_ChannelConfig (const LESENSE_ChDesc_TypeDef *confCh, uint32_t chIdx)
 Configure a single LESENSE sensor channel. More...
 
void LESENSE_ChannelEnable (uint8_t chIdx, bool enaScanCh, bool enaPin)
 Enable/disable LESENSE scan channel and the pin assigned to it. More...
 
void LESENSE_ChannelEnableMask (uint16_t chMask, uint16_t pinMask)
 Enable/disable LESENSE scan channel and the pin assigned to it. More...
 
void LESENSE_ChannelThresSet (uint8_t chIdx, uint16_t acmpThres, uint16_t cntThres)
 Set LESENSE channel threshold parameters. More...
 
void LESENSE_ChannelTimingSet (uint8_t chIdx, uint8_t exTime, uint8_t sampleDelay, uint16_t measDelay)
 Set LESENSE channel timing parameters. More...
 
void LESENSE_ClkDivSet (LESENSE_ChClk_TypeDef clk, LESENSE_ClkPresc_TypeDef clkDiv)
 Set clock division for LESENSE timers. More...
 
void LESENSE_DecoderStart (void)
 Start LESENSE decoder. More...
 
void LESENSE_DecoderStateAllConfig (const LESENSE_DecStAll_TypeDef *confDecStAll)
 Configure all LESENSE decoder states. More...
 
void LESENSE_DecoderStateConfig (const LESENSE_DecStDesc_TypeDef *confDecSt, uint32_t decSt)
 Configure a single LESENSE decoder state. More...
 
uint32_t LESENSE_DecoderStateGet (void)
 Get the current state of the LESENSE decoder. More...
 
void LESENSE_DecoderStateSet (uint32_t decSt)
 Set LESENSE decoder state. More...
 
void LESENSE_Init (const LESENSE_Init_TypeDef *init, bool reqReset)
 Initialize the LESENSE module. More...
 
void LESENSE_Reset (void)
 Reset the LESENSE module. More...
 
void LESENSE_ResultBufferClear (void)
 Clear result buffer. More...
 
uint32_t LESENSE_ScanFreqSet (uint32_t refFreq, uint32_t scanFreq)
 Set scan frequency for periodic scanning. More...
 
void LESENSE_ScanModeSet (LESENSE_ScanMode_TypeDef scanMode, bool start)
 Set scan mode of the LESENSE channels. More...
 
void LESENSE_ScanStart (void)
 Start scanning of sensors. More...
 
void LESENSE_ScanStop (void)
 Stop scanning of sensors. More...
 
void LESENSE_StartDelaySet (uint8_t startDelay)
 Set start delay of sensor interaction on each channel. More...