28#ifndef HALLCURRENT10_H
29#define HALLCURRENT10_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_i2c_master.h"
74#define HALLCURRENT10_SET_DEV_ADDR 0x4D
92#define HALLCURRENT10_MAP_MIKROBUS( cfg, mikrobus ) \
93 cfg.scl = MIKROBUS( mikrobus, MIKROBUS_SCL ); \
94 cfg.sda = MIKROBUS( mikrobus, MIKROBUS_SDA )
err_t hallcurrent10_default_cfg(hallcurrent10_t *ctx)
Hall Current 10 default configuration function.
err_t hallcurrent10_read_adc(hallcurrent10_t *ctx, uint16_t *read_adc)
Hall Current 10 I2C ADC reading function.
void hallcurrent10_cfg_setup(hallcurrent10_cfg_t *cfg)
Hall Current 10 configuration object setup function.
err_t hallcurrent10_get_adc_voltage(hallcurrent10_t *ctx, float *adc_vtg)
Hall Current 10 get ADC voltage function.
err_t hallcurrent10_get_current(hallcurrent10_t *ctx, float *current)
Hall Current 10 get current function.
err_t hallcurrent10_init(hallcurrent10_t *ctx, hallcurrent10_cfg_t *cfg)
Hall Current 10 initialization function.
hallcurrent10_return_value_t
Hall Current 10 Click return value data.
Definition hallcurrent10.h:132
@ HALLCURRENT10_OK
Definition hallcurrent10.h:133
@ HALLCURRENT10_ERROR
Definition hallcurrent10.h:134
Hall Current 10 Click configuration object.
Definition hallcurrent10.h:118
uint32_t i2c_speed
Definition hallcurrent10.h:122
pin_name_t scl
Definition hallcurrent10.h:119
pin_name_t sda
Definition hallcurrent10.h:120
uint8_t i2c_address
Definition hallcurrent10.h:123
Hall Current 10 Click context object.
Definition hallcurrent10.h:104
i2c_master_t i2c
Definition hallcurrent10.h:106
uint8_t slave_address
Definition hallcurrent10.h:109