This set of functions is specific to Comparator mode. More...
Functions | |
| void | Cy_CTB_CompSetInterruptEdgeType (CTBM_Type *base, cy_en_ctb_opamp_sel_t compNum, cy_en_ctb_comp_edge_t edge) |
| Configures the type of an edge that will trigger a comparator interrupt. More... | |
| uint32_t | Cy_CTB_CompGetStatus (const CTBM_Type *base, cy_en_ctb_opamp_sel_t compNum) |
| Returns the comparator output status. More... | |
This set of functions is specific to Comparator mode.
| void Cy_CTB_CompSetInterruptEdgeType | ( | CTBM_Type * | base, |
| cy_en_ctb_opamp_sel_t | compNum, | ||
| cy_en_ctb_comp_edge_t | edge | ||
| ) |
Configures the type of an edge that will trigger a comparator interrupt.
| base | The pointer to structure-describing registers. |
| compNum | CY_CTB_OPAMP_0, CY_CTB_OPAMP_1, or CY_CTB_OPAMP_BOTH |
| edge | The type of the edge that will trigger an interrupt. Select a value from cy_en_ctb_comp_edge_t. |
| uint32_t Cy_CTB_CompGetStatus | ( | const CTBM_Type * | base, |
| cy_en_ctb_opamp_sel_t | compNum | ||
| ) |
Returns the comparator output status.
When the positive input voltage is greater than the negative input voltage, the comparator status is high. Otherwise, the status is low.
| base | The pointer to structure-describing registers. |
| compNum | CY_CTB_OPAMP_0 or CY_CTB_OPAMP_1. CY_CTB_OPAMP_NONE and CY_CTB_OPAMP_BOTH are invalid options. |