TLE986x Device Family SDK
Enumerations | Functions
csa.h File Reference

Go to the source code of this file.

Detailed Description

Current Sense Amplifier low level access library.

Version
V0.1.5
Date
28. Feb 2020

Include Graph

Include dependency graph for csa.h:

Enumerations

enum  TCSA_Gain { CSA_GAIN_10 = 0, CSA_GAIN_20 = 1, CSA_GAIN_40 = 2, CSA_GAIN_60 = 3 }
 This enum lists the CSA Gain Settings. More...
 

Functions

INLINE void CSA_Power_On (void)
 switches on CSA module. More...
 
INLINE void CSA_Power_Off (void)
 switches off CSA module. More...
 
INLINE void CSA_Gain_Set (uint32 gain)
 Set CSA Gain value. More...
 
void CSA_Init (void)
 Initializes the CSA module. More...
 
INLINE void CSA_Set_Gain (uint8 gain)
 Set CSA Gain value. More...
 
uint16 CSA_Offset_Get (void)
 measures the CSA offset using ADC1. More...
 

Enumeration Type Documentation

◆ TCSA_Gain

enum TCSA_Gain

This enum lists the CSA Gain Settings.

Enumerator
CSA_GAIN_10 

Operational Amplifier Gain Factor 10

CSA_GAIN_20 

Operational Amplifier Gain Factor 20

CSA_GAIN_40 

Operational Amplifier Gain Factor 40

CSA_GAIN_60 

Operational Amplifier Gain Factor 60

Function Documentation

◆ CSA_Gain_Set()

INLINE void CSA_Gain_Set ( uint32  gain)

Set CSA Gain value.

Parameters
gainGain setting

Example

This example configures CSA Gain value to 40.

void Example_Function(void)
{
}

◆ CSA_Init()

void CSA_Init ( void  )

Initializes the CSA module.

◆ CSA_Offset_Get()

uint16 CSA_Offset_Get ( void  )

measures the CSA offset using ADC1.

this measurement must be done with 0A through the shunt

Returns
CSA offset

◆ CSA_Power_Off()

INLINE void CSA_Power_Off ( void  )

switches off CSA module.

Example

This example switches off CSA module.

void Example_Function(void)
{
}

◆ CSA_Power_On()

INLINE void CSA_Power_On ( void  )

switches on CSA module.

Example

This example switches on CSA module.

void Example_Function(void)
{
}

◆ CSA_Set_Gain()

INLINE void CSA_Set_Gain ( uint8  gain)

Set CSA Gain value.

Parameters
gainGain setting

Example

This example configures CSA Gain value to 40.

void Example_Function(void)
{
}
CSA_Power_On
INLINE void CSA_Power_On(void)
switches on CSA module.
Definition: csa.h:104
CSA_Gain_Set
INLINE void CSA_Gain_Set(uint32 gain)
Set CSA Gain value.
Definition: csa.h:140
CSA_Set_Gain
INLINE void CSA_Set_Gain(uint8 gain)
Set CSA Gain value.
Definition: csa.h:180
CSA_Power_Off
INLINE void CSA_Power_Off(void)
switches off CSA module.
Definition: csa.h:121