comparator 2.0.0.0
comparator.h File Reference

This file contains API for Comparator Click driver. More...

#include "drv_digital_in.h"

Go to the source code of this file.

Data Structures

struct  comparator_t
 Click ctx object definition. More...
 
struct  comparator_cfg_t
 Click configuration structure definition. More...
 

Macros

#define COMPARATOR_MAP_MIKROBUS(cfg, mikrobus)
 
#define COMPARATOR_RETVAL   uint8_t
 
#define COMPARATOR_OK   0x00
 
#define COMPARATOR_INIT_ERROR   0xFF
 
#define COMPARATOR_STATE_LOW   0x00
 
#define COMPARATOR_STATE_HIGH   0x01
 

Functions

void comparator_cfg_setup (comparator_cfg_t *cfg)
 Config Object Initialization function.
 
COMPARATOR_RETVAL comparator_init (comparator_t *ctx, comparator_cfg_t *cfg)
 Initialization function.
 
uint8_t comparator_check_output_one (comparator_t *ctx)
 Check state of the o1 pin function.
 
uint8_t comparator_check_output_two (comparator_t *ctx)
 Check state of the o2 pin function.
 

Detailed Description

This file contains API for Comparator Click driver.