AM263Px MCU+ SDK  10.01.00
cmpss/v0/cmpss.h File Reference

Go to the source code of this file.

Macros

#define CMPSS_HICMP_CTL_M
 Header Files. More...
 
#define CMPSS_LOCMP_CTL_M
 
#define CMPSS_INSRC_DAC   (0x0000U)
 Input driven by internal DAC. More...
 
#define CMPSS_INSRC_PIN   (0x0001U)
 Input driven by external 'INL' pin. More...
 
#define CMPSS_INSRC_PIN_INL   (0x0000U)
 Input driven by external 'INL' pin. More...
 
#define CMPSS_INSRC_PIN_INH   (0x0001U)
 Input driven by external 'INH' pin. More...
 
#define CMPSS_INV_INVERTED   (0x0002U)
 Comparator output is inverted. More...
 
#define CMPSS_OR_ASYNC_OUT_W_FILT   (0x0040U)
 Asynch comparator output feeds into OR with latched digital filter output. More...
 
#define CMPSS_TRIPOUT_ASYNC_COMP   (0x0000U)
 Asynchronous comparator output drives CTRIPOUT. More...
 
#define CMPSS_TRIPOUT_SYNC_COMP   (0x0010U)
 Synchronous comparator output drives CTRIPOUT. More...
 
#define CMPSS_TRIPOUT_FILTER   (0x0020U)
 Filter output drives CTRIPOUT. More...
 
#define CMPSS_TRIPOUT_LATCH   (0x0030U)
 Latched filter output drives CTRIPOUT. More...
 
#define CMPSS_TRIP_ASYNC_COMP   (0x0000U)
 Asynchronous comparator output drives CTRIP. More...
 
#define CMPSS_TRIP_SYNC_COMP   (0x0004U)
 Synchronous comparator output drives CTRIP. More...
 
#define CMPSS_TRIP_FILTER   (0x0008U)
 Filter output drives CTRIP. More...
 
#define CMPSS_TRIP_LATCH   (0x000CU)
 Latched filter output drives CTRIP. More...
 
#define CMPSS_STS_HI_FILTOUT   (0x0001U)
 High digital filter output. More...
 
#define CMPSS_STS_HI_LATCHFILTOUT   (0x0002U)
 Latched value of high digital filter output. More...
 
#define CMPSS_STS_LO_FILTOUT   (0x0100U)
 Low digital filter output. More...
 
#define CMPSS_STS_LO_LATCHFILTOUT   (0x0200U)
 Latched value of low digital filter output. More...
 
#define CMPSS_DACVAL_SYSCLK   (0x0000U)
 DAC value updated from SYSCLK. More...
 
#define CMPSS_DACVAL_PWMSYNC   (0x0080U)
 DAC value updated from PWMSYNC. More...
 
#define CMPSS_DACREF_VDDA   (0x0000U)
 VDDA is the voltage reference. More...
 
#define CMPSS_DACREF_VDAC   (0x0020U)
 VDAC is the voltage reference. More...
 
#define CMPSS_DACSRC_SHDW   (0x0000U)
 DAC value updated from shadow register. More...
 
#define CMPSS_DACSRC_RAMP   (0x0001U)
 DAC value is updated from the ramp register. More...
 

Functions

static void CMPSS_enableModule (uint32_t base)
 
static void CMPSS_disableModule (uint32_t base)
 
static void CMPSS_configHighComparator (uint32_t base, uint16_t config)
 
static void CMPSS_configLowComparator (uint32_t base, uint16_t config)
 
static void CMPSS_configOutputsHigh (uint32_t base, uint16_t config)
 
static void CMPSS_configOutputsLow (uint32_t base, uint16_t config)
 
static uint16_t CMPSS_getStatus (uint32_t base)
 
static void CMPSS_configDAC (uint32_t base, uint16_t config)
 
static void CMPSS_setDACValueHigh (uint32_t base, uint16_t value)
 
static void CMPSS_setDACValueLow (uint32_t base, uint16_t value)
 
static void CMPSS_initFilterHigh (uint32_t base)
 
static void CMPSS_initFilterLow (uint32_t base)
 
static uint16_t CMPSS_getDACValueHigh (uint32_t base)
 
static uint16_t CMPSS_getDACValueLow (uint32_t base)
 
static void CMPSS_clearFilterLatchHigh (uint32_t base)
 
static void CMPSS_clearFilterLatchLow (uint32_t base)
 
static void CMPSS_setMaxRampValue (uint32_t base, uint16_t value)
 
static uint16_t CMPSS_getMaxRampValue (uint32_t base)
 
static void CMPSS_setRampDecValue (uint32_t base, uint16_t value)
 
static uint16_t CMPSS_getRampDecValue (uint32_t base)
 
static void CMPSS_setRampDelayValue (uint32_t base, uint16_t value)
 
static uint16_t CMPSS_getRampDelayValue (uint32_t base)
 
static void CMPSS_configBlanking (uint32_t base, uint16_t pwmBlankSrc)
 
static void CMPSS_enableBlanking (uint32_t base)
 
static void CMPSS_disableBlanking (uint32_t base)
 
static void CMPSS_enableDEmode (uint32_t base)
 
static void CMPSS_disableDEmode (uint32_t base)
 
static void CMPSS_selectDEACTIVESource (uint32_t base, uint8_t deactivesel)
 
static void CMPSS_configHighDACShadowValue2 (uint32_t base, uint16_t dacval)
 
static void CMPSS_configLowDACShadowValue2 (uint32_t base, uint16_t dacval)
 
static void CMPSS_setComparatorHighHysteresis (uint32_t base, uint16_t value)
 
static void CMPSS_setComparatorLowHysteresis (uint32_t base, uint16_t value)
 
void CMPSS_configFilterHigh (uint32_t base, uint16_t samplePrescale, uint16_t sampleWindow, uint16_t threshold)
 
void CMPSS_configFilterLow (uint32_t base, uint16_t samplePrescale, uint16_t sampleWindow, uint16_t threshold)
 
void CMPSS_configLatchOnPWMSYNC (uint32_t base, bool highEnable, bool lowEnable)
 
void CMPSS_configRamp (uint32_t base, uint16_t maxRampVal, uint16_t decrementVal, uint16_t delayVal, uint16_t pwmSyncSrc, bool useRampValShdw)