PSOC E8XXGP Device Support Library

General Description

API Reference

 Initialization Functions
 This set of functions is used to configure the PTComp.
 

Functions

__STATIC_INLINE bool Cy_AutAnalog_PTComp_Read (uint8_t ptcompIdx, uint8_t compIdx)
 Returns the status of the comparator output. More...
 

Function Documentation

◆ Cy_AutAnalog_PTComp_Read()

__STATIC_INLINE bool Cy_AutAnalog_PTComp_Read ( uint8_t  ptcompIdx,
uint8_t  compIdx 
)

Returns the status of the comparator output.

Parameters
ptcompIdxThe index of the PTComp subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::ptcomp
compIdxThe index of the Comp within the PTComp.
Returns
The status of the Comp output:
  • false means low;
  • true means high.
Note
Under invalid PTComp index, "false" returns in the result.