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

This documentation file has been automatically generated on Fri Oct 4 2019 03:47:34 by doxygen 1.8.8