lem 2.0.0.0
|
This file contains API for LEM Click driver. More...
#include "drv_digital_out.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | lem_t |
Click ctx object definition. More... | |
struct | lem_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | LEM_MAP_MIKROBUS(cfg, mikrobus) |
#define | LEM_RETVAL uint8_t |
#define | LEM_OK 0x00 |
#define | LEM_INIT_ERROR 0xFF |
#define | LEM_USEFULL_DATA 0xFFF |
#define | LEM_CALC_COEF 2266 |
#define | LEM_AMP_COEF 0.0103 |
#define | LEM_MILIAMP_COEF 10.3 |
Functions | |
void | lem_cfg_setup (lem_cfg_t *cfg) |
Config Object Initialization function. | |
LEM_RETVAL | lem_init (lem_t *ctx, lem_cfg_t *cfg) |
Initialization function. | |
int16_t | lem_data_read (lem_t *ctx) |
Data read function. | |
float | lem_get_current (lem_t *ctx, float coef) |
Get current in milliamperes function. | |
This file contains API for LEM Click driver.