42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_out.h"
53#include "drv_digital_in.h"
54#include "drv_i2c_master.h"
66#define FORCE3_MAP_MIKROBUS( cfg, mikrobus ) \
67 cfg.scl = MIKROBUS( mikrobus, MIKROBUS_SCL ); \
68 cfg.sda = MIKROBUS( mikrobus, MIKROBUS_SDA )
75#define FORCE3_RETVAL uint8_t
78#define FORCE3_INIT_ERROR 0xFF
85#define FORCE3_DEVICE_SLAVE_ADDR 0x4D
#define FORCE3_RETVAL
Definition force3.h:75
void force3_generic_write(force3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
Generic write function.
uint16_t force3_read_raw_data(force3_t *ctx)
Read 12bit raw data.
FORCE3_RETVAL force3_init(force3_t *ctx, force3_cfg_t *cfg)
Initialization function.
void force3_generic_read(force3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
Generic read function.
void force3_cfg_setup(force3_cfg_t *cfg)
Config Object Initialization function.
Click configuration structure definition.
Definition force3.h:114
uint32_t i2c_speed
Definition force3.h:122
pin_name_t scl
Definition force3.h:117
pin_name_t sda
Definition force3.h:118
uint8_t i2c_address
Definition force3.h:123
Click ctx object definition.
Definition force3.h:99
i2c_master_t i2c
Definition force3.h:102
uint8_t slave_address
Definition force3.h:106