![]() |
Infineon MOTIX™ MCU TLE988x/9x Device Family SDK
|
Typedefs | |
typedef enum CSA_gain | tCSA_gain |
typedef enum CSA_offset | tCSA_offset |
Enumerations | |
enum | CSA_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... | |
enum | CSA_offset { CSA_offset_10 = 0 , CSA_offset_20 = 1 , CSA_offset_40 = 2 , CSA_offset_60 = 3 } |
This enum lists the CSA offset settings. More... | |
Functions | |
sint8 | CSACSC_init (void) |
Initialize all CW registers of the CSA/CSC module. More... | |
sint8 | CSACSC_startCalibration (uint16 *pu16_Val_mV) |
Perform the calibration of the CSA. More... | |
INLINE void | CSACSC_enPower (void) |
Enable Current sense amplifier and comparator enable. More... | |
INLINE void | CSACSC_disPower (void) |
Disable Current sense amplifier and comparator enable. More... | |
INLINE void | CSACSC_setMinGain (tCSA_gain e_gain) |
Set Current sense amplifier minimum gain setting. More... | |
INLINE tCSA_gain | CSACSC_getMinGain (void) |
Get Current sense amplifier minimum gain setting. More... | |
INLINE void | CSACSC_setMinOffset (tCSA_offset e_offset) |
Set Current sense amplifier minimum output offset setting. More... | |
INLINE tCSA_offset | CSACSC_getMinOffset (void) |
Get Current sense amplifier minimum output offset setting. More... | |
INLINE void | CSACSC_setMaxThreshold (uint16 u16_value) |
Set Current sense comparator maximum threshold setting. More... | |
INLINE uint16 | CSACSC_getMaxThreshold (void) |
Get Current sense comparator maximum threshold setting. More... | |
INLINE void | CSACSC_setAddInputOffset (uint8 u8_value) |
Set Additional input offset setting. More... | |
INLINE uint8 | CSACSC_getAddInputOffset (void) |
Get Additional input offset setting. More... | |
INLINE void | CSACSC_setGain (tCSA_gain e_gain) |
Set Current sense amplifier gain setting. More... | |
INLINE tCSA_gain | CSACSC_getGain (void) |
Get Current sense amplifier gain setting. More... | |
INLINE void | CSACSC_setOffset (tCSA_offset e_offset) |
Set Current sense amplifier output offset setting. More... | |
INLINE tCSA_offset | CSACSC_getOffset (void) |
Get Current sense amplifier output offset setting. More... | |
INLINE void | CSACSC_setVout (uint8 u8_value) |
Set Current sense output selection. More... | |
INLINE uint8 | CSACSC_getVout (void) |
Get Current sense output selection. More... | |
INLINE void | CSACSC_setThreshold (uint8 u8_value) |
Set Current sense comparator threshold setting. More... | |
INLINE uint8 | CSACSC_getThreshold (void) |
Get Current sense comparator threshold setting. More... | |
INLINE void | CSACSC_setFilterTime (uint8 u8_value) |
Set Filter time for current sense comparator. More... | |
INLINE uint8 | CSACSC_getFilterTime (void) |
Get Filter time for current sense comparator. More... | |
INLINE void | CSACSC_clrOverCurrIntSts (void) |
Clear Overcurrent event interrupt status clear. More... | |
INLINE void | CSACSC_clrParamErrorIntSts (void) |
Clear CSA minimum gain or offset selection error interrupt status clear. More... | |
INLINE void | CSACSC_clrOverCurrSts (void) |
Clear Overcurrent event status clear. More... | |
INLINE void | CSACSC_enOverCurrInt (void) |
Enable Overcurrent event interrupt enable. More... | |
INLINE void | CSACSC_disOverCurrInt (void) |
Disable Overcurrent event interrupt enable. More... | |
INLINE void | CSACSC_enParamErrorInt (void) |
Enable CSA minimum gain or offset selection error interrupt enable. More... | |
INLINE void | CSACSC_disParamErrorInt (void) |
Disable CSA minimum gain or offset selection error interrupt enable. More... | |
INLINE uint8 | CSACSC_getOverCurrIntSts (void) |
Get Overcurrent event interrupt status. More... | |
INLINE uint8 | CSACSC_getParamErrorIntSts (void) |
Get CSA minimum gain or offset selection error interrupt status. More... | |
INLINE uint8 | CSACSC_getOverCurrSts (void) |
Get Overcurrent event status. More... | |
INLINE uint8 | CSACSC_getOverCurrCmpOut (void) |
Get Overcurrent comparator output. More... | |
INLINE uint8 | CSACSC_getBistSts (void) |
Get CSC built-in self test status. More... | |
void | CSACSC_setOverCurrIntNodePtr (void) __attribute__((deprecated("Do not change this at runtime |
Set Overcurrent Interrupt Node Pointer. More... | |
void | CSACSC_setParamErrorIntNodePtr (void) __attribute__((deprecated("Do not change this at runtime |
Set Parameter Error Interrupt Node Pointer. More... | |
Variables | |
void use the ConfigWizard to configure this | feature |
typedef enum CSA_offset tCSA_offset |
enum CSA_gain |
This enum lists the CSA gain settings.
enum CSA_offset |
This enum lists the CSA offset settings.
INLINE void CSACSC_clrOverCurrIntSts | ( | void | ) |
Clear Overcurrent event interrupt status clear.
INLINE void CSACSC_clrOverCurrSts | ( | void | ) |
Clear Overcurrent event status clear.
INLINE void CSACSC_clrParamErrorIntSts | ( | void | ) |
Clear CSA minimum gain or offset selection error interrupt status clear.
INLINE void CSACSC_disOverCurrInt | ( | void | ) |
Disable Overcurrent event interrupt enable.
INLINE void CSACSC_disParamErrorInt | ( | void | ) |
Disable CSA minimum gain or offset selection error interrupt enable.
INLINE void CSACSC_disPower | ( | void | ) |
Disable Current sense amplifier and comparator enable.
INLINE void CSACSC_enOverCurrInt | ( | void | ) |
Enable Overcurrent event interrupt enable.
INLINE void CSACSC_enParamErrorInt | ( | void | ) |
Enable CSA minimum gain or offset selection error interrupt enable.
INLINE void CSACSC_enPower | ( | void | ) |
Enable Current sense amplifier and comparator enable.
Get Additional input offset setting.
Get CSC built-in self test status.
Get Filter time for current sense comparator.
Get Current sense amplifier gain setting.
Get Current sense comparator maximum threshold setting.
Get Current sense amplifier minimum gain setting.
INLINE tCSA_offset CSACSC_getMinOffset | ( | void | ) |
Get Current sense amplifier minimum output offset setting.
INLINE tCSA_offset CSACSC_getOffset | ( | void | ) |
Get Current sense amplifier output offset setting.
Get Overcurrent comparator output.
Get Overcurrent event interrupt status.
Get Overcurrent event status.
Get CSA minimum gain or offset selection error interrupt status.
Get Current sense comparator threshold setting.
Get Current sense output selection.
sint8 CSACSC_init | ( | void | ) |
Initialize all CW registers of the CSA/CSC module.
Set Additional input offset setting.
u8_value | Additional input offset setting |
Set Filter time for current sense comparator.
u8_value | Filter time for current sense comparator |
Set Current sense amplifier gain setting.
e_gain | Current sense amplifier gain setting |
Set Current sense comparator maximum threshold setting.
u16_value | Current sense comparator maximum threshold setting |
Set Current sense amplifier minimum gain setting.
e_gain | Current sense amplifier minimum gain setting |
INLINE void CSACSC_setMinOffset | ( | tCSA_offset | e_offset | ) |
Set Current sense amplifier minimum output offset setting.
e_offset | Current sense amplifier minimum output offset setting |
INLINE void CSACSC_setOffset | ( | tCSA_offset | e_offset | ) |
Set Current sense amplifier output offset setting.
e_offset | Current sense amplifier output offset setting |
void CSACSC_setOverCurrIntNodePtr | ( | void | ) |
Set Overcurrent Interrupt Node Pointer.
void CSACSC_setParamErrorIntNodePtr | ( | void | ) |
Set Parameter Error Interrupt Node Pointer.
Set Current sense comparator threshold setting.
u8_value | Current sense comparator threshold setting |
Set Current sense output selection.
u8_value | Current sense output selection |
Perform the calibration of the CSA.
For this purpose the channel 19 / sequence 3 are reconfigured to perform a CSA measurement.
The ADC1 configuration will be restored after the measurement is done.
u16p_Val_mV | pointer to the ADC1 result value |
void use the ConfigWizard to configure this feature |