28#ifndef HALLCURRENT825A_H
29#define HALLCURRENT825A_H
39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
51#include "drv_analog_in.h"
73#define HALLCURRENT825A_MAP_MIKROBUS( cfg, mikrobus ) \
74 cfg.an = MIKROBUS( mikrobus, MIKROBUS_AN ); \
75 cfg.oc1 = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
76 cfg.oc2 = MIKROBUS( mikrobus, MIKROBUS_INT )
err_t hallcurrent825a_get_voltage(hallcurrent825a_t *ctx, float *avr_voltage)
Hall Current 8 25A read voltage level function.
err_t hallcurrent825a_init(hallcurrent825a_t *ctx, hallcurrent825a_cfg_t *cfg)
Hall Current 8 25A initialization function.
err_t hallcurrent825a_calibration(hallcurrent825a_t *ctx)
Hall Current 8 25A calibration function.
err_t hallcurrent825a_read_pin_volt(hallcurrent825a_t *ctx, float *data_out)
Hall Current 8 25A read AN pin voltage level function.
uint8_t hallcurrent825a_get_odc2(hallcurrent825a_t *ctx)
Hall Current 8 25A get state of OC2 function.
uint8_t hallcurrent825a_get_odc1(hallcurrent825a_t *ctx)
Hall Current 8 25A get state of OC1 function.
err_t hallcurrent825a_read_pin_value(hallcurrent825a_t *ctx, uint16_t *data_out)
Hall Current 8 25A read AN pin value function.
void hallcurrent825a_cfg_setup(hallcurrent825a_cfg_t *cfg)
Hall Current 8 25A configuration object setup function.
err_t hallcurrent825a_get_current(hallcurrent825a_t *ctx, float *current)
Hall Current 8 25A get current level function.
hallcurrent825a_return_value_t
Hall Current 8 25A Click return value data.
Definition hallcurrent825a.h:116
@ HALLCURRENT825A_ERROR
Definition hallcurrent825a.h:118
@ HALLCURRENT825A_OK
Definition hallcurrent825a.h:117
Hall Current 8 25A Click configuration object.
Definition hallcurrent825a.h:101
analog_in_resolution_t resolution
Definition hallcurrent825a.h:106
float vref
Definition hallcurrent825a.h:107
pin_name_t oc2
Definition hallcurrent825a.h:104
pin_name_t oc1
Definition hallcurrent825a.h:103
pin_name_t an
Definition hallcurrent825a.h:102
Hall Current 8 25A Click context object.
Definition hallcurrent825a.h:86
float offset
Definition hallcurrent825a.h:92
digital_in_t oc1
Definition hallcurrent825a.h:87
digital_in_t oc2
Definition hallcurrent825a.h:88
analog_in_t adc
Definition hallcurrent825a.h:90