irdistance 2.0.0.0
irdistance.h File Reference

This file contains API for IR distance Click driver. More...

#include "drv_digital_out.h"
#include "drv_analog_in.h"

Go to the source code of this file.

Data Structures

struct  irdistance_t
 Click ctx object definition. More...
 
struct  irdistance_cfg_t
 Click configuration structure definition. More...
 

Macros

#define IRDISTANCE_MAP_MIKROBUS(cfg, mikrobus)
 

Functions

void irdistance_cfg_setup (irdistance_cfg_t *cfg)
 Config Object Initialization function.
 
err_t irdistance_init (irdistance_t *ctx, irdistance_cfg_t *cfg)
 Initialization function.
 
void irdistance_enable_device (irdistance_t *ctx)
 Enable IR sensor function.
 
void irdistance_disable_device (irdistance_t *ctx)
 Disable IR sensor function.
 
err_t irdistance_read_adc (irdistance_t *ctx, uint16_t *data_out)
 Generic read function.
 
err_t irdistance_get_pin_voltage (irdistance_t *ctx, float *data_out)
 Get the voltage output of the sensor function.
 

Detailed Description

This file contains API for IR distance Click driver.