hallcurrent2 2.0.0.0
|
This file contains API for Hall Current 2 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | hallcurrent2_t |
Click ctx object definition. More... | |
struct | hallcurrent2_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | HALLCURRENT2_MAP_MIKROBUS(cfg, mikrobus) |
#define | HALLCURRENT2_RETVAL uint8_t |
#define | HALLCURRENT2_OK 0x00 |
#define | HALLCURRENT2_INIT_ERROR 0xFF |
Functions | |
void | hallcurrent2_cfg_setup (hallcurrent2_cfg_t *cfg) |
Config Object Initialization function. | |
HALLCURRENT2_RETVAL | hallcurrent2_init (hallcurrent2_t *ctx, hallcurrent2_cfg_t *cfg) |
Initialization function. | |
uint16_t | hallcurrent2_generic_read (hallcurrent2_t *ctx) |
Generic read function. | |
void | hallcurrent2_reset (hallcurrent2_t *ctx) |
Functions for reset chip. | |
int16_t | hallcurrent2_get_current (hallcurrent2_t *ctx) |
Reads current in mV. | |
This file contains API for Hall Current 2 Click driver.