XDK API  3.6.0
Documentation
Files | Functions
LEM sensor

This Module is Configuration header for Lem Sensor module. More...

+ Collaboration diagram for LEM sensor:

Files

file  XDK_Lem.h
 

Functions

Retcode_T Lem_Disable (void)
 function to Deinitialize lemsensor module. More...
 
Retcode_T Lem_Enable (void)
 function to initialize the ADC, DMA , Board detect pin, Timer required for the LEM sensor sampling & Starts the sampling timer. More...
 
Retcode_T Lem_GetRmsCurrent (float *rmsCurrent)
 function to get the RMS current. More...
 
Retcode_T Lem_GetRmsVoltage (float *rmsvoltage)
 function to get the RMS voltage. More...
 
Retcode_T Lem_Setup (float currentRatedTransformationRatio)
 Initialize the required components and variables of lem sensor module. More...
 

Detailed Description

Function Documentation

Retcode_T Lem_Disable ( void  )
Returns
Status of the LemSensor Deinitialization
  • RETCODE_OK if the Deinitialization is successful
  • Error for failure

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Retcode_T Lem_Enable ( void  )
Returns
Status of the LemSensor Initialization
  • RETCODE_OK if the initialization is successful
  • Error for failure

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Retcode_T Lem_GetRmsCurrent ( float *  rmsCurrent)
Parameters
[out]rmsCurrentTo get the LEM Sensor RMS current in ampere.
Returns
Status of the Getting the LemSensor Rms currnt
  • RETCODE_OK if the RMS current got successfully
  • Error for failure.
Retcode_T Lem_GetRmsVoltage ( float *  rmsvoltage)
Parameters
[out]rmsvoltageTo get the LEM Sensor RMS voltage in volts.
Returns
Status of the Getting the LemSensor Rms Voltage
  • RETCODE_OK if the RMS voltage got successfully
  • Error for failure.
Note
On every #SAMPLING_WINDOW_CYCLES the RMS voltage is updated.
Retcode_T Lem_Setup ( float  currentRatedTransformationRatio)
Parameters
[out]currentRatedTransformationRatioCurrent transformation ratio for the core used in lemsensor
Note
: example- Rated transformation ratio is 44.44 for 75Ampere split core current transformer
Returns
RETCODE_OK upon successful initialization or error code otherwise

All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:50 by doxygen 1.8.8