Infineon MOTIX™ MCU TLE988x/9x Device Family SDK
Typedefs | Enumerations | Functions | Variables
csacsc.h File Reference

Go to the source code of this file.

Detailed Description

CSACSC low level access library.

Version
V0.2.8 l
Note

Include Graph

Include dependency graph for csacsc.h:

Include Graph

This graph shows which files directly or indirectly include this file:

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