lem 2.0.0.0
|
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. | |
void lem_cfg_setup | ( | lem_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
int16_t lem_data_read | ( | lem_t * | ctx | ) |
Data read function.
ctx | Click object. |
Function is used to read data from output register.
float lem_get_current | ( | lem_t * | ctx, |
float | coef ) |
Get current in milliamperes function.
ctx | Click object. |
coef | Calculation coefficient. |
Function is used to read current in amperes or milliamperes.
LEM_RETVAL lem_init | ( | lem_t * | ctx, |
lem_cfg_t * | cfg ) |
Initialization function.
lem | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.