PSOC E8XXGP Device Support Library

| PSOC E8XXGP Device Support Library

API Reference | Functions
Functions
PDL API Reference » AUTONOMOUS ANALOG (Autonomous Analog Block) » CTB (Continuous Time Block)

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

  ctbIdx | The index of the CTB subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::ctb
  compIdx | The 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.