![]() |
TLE986x Device Family SDK
|
Go to the source code of this file.
Current Sense Amplifier low level access library.
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... | |
enum TCSA_Gain |
Set CSA Gain value.
gain | Gain setting |
Example
This example configures CSA Gain value to 40.
void CSA_Init | ( | void | ) |
Initializes the CSA module.
uint16 CSA_Offset_Get | ( | void | ) |
measures the CSA offset using ADC1.
this measurement must be done with 0A through the shunt
INLINE void CSA_Power_Off | ( | void | ) |
switches off CSA module.
Example
This example switches off CSA module.
INLINE void CSA_Power_On | ( | void | ) |
switches on CSA module.
Example
This example switches on CSA module.
Set CSA Gain value.
gain | Gain setting |
Example
This example configures CSA Gain value to 40.