PSOC E8XXGP Device Support Library

| PSOC E8XXGP Device Support Library

API Reference | Functions
Functions
PDL API Reference » AUTONOMOUS ANALOG (Autonomous Analog Block) » PTComp (Programmable Threshold Comparator)

## 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

  ptcompIdx | The index of the PTComp subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::ptcomp
  compIdx | The 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.