![]() |
Infineon MOTIX™ MCU TLE987x Device Family SDK
|
Go to the source code of this file.
Current Sense Amplifier low level access library.
Typedefs | |
typedef enum CSA_Gain | TCSA_Gain |
Enumerations | |
enum | CSA_Gain { CSA_GAIN_10 = 0 , CSA_GAIN_20 = 1 , CSA_GAIN_40 = 2 , CSA_GAIN_60 = 3 } |
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... | |
INLINE uint32 | CSA_Gain_Get () |
Get CSA Gain value. More... | |
void | CSA_Init (void) |
Initializes the CSA module based on the Config Wizard for MOTIX MCU configuration. 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 CSA_Gain |
Get CSA Gain value.
Example
This example reads the CSA Gain value.
Set CSA Gain value.
gain | Gain setting |
Example
This example configures CSA Gain value to 40.
void CSA_Init | ( | void | ) |
Initializes the CSA module based on the Config Wizard for MOTIX MCU configuration.
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.