PSOC E8XXGP Device Support Library

General Description

API Reference

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

Functions

__STATIC_INLINE bool Cy_AutAnalog_CTB_Comp_Read (uint8_t ctbIdx, uint8_t compIdx)
 Returns the status of the comparator output. More...
 

Function Documentation

◆ Cy_AutAnalog_CTB_Comp_Read()

__STATIC_INLINE bool Cy_AutAnalog_CTB_Comp_Read ( uint8_t  ctbIdx,
uint8_t  compIdx 
)

Returns the status of the comparator output.

Note
This function applies only to the Opamp in Comparator mode.
Parameters
ctbIdxThe index of the CTB subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::ctb
compIdxThe index of the Opamp within the CTB.
Returns
The status of the Opamp output in Comparator mode:
  • false means low;
  • true means high.
Note
Under invalid CTB index, "false" returns in the result.