hallcurrent3 2.0.0.0
|
Functions | |
void | hallcurrent3_cfg_setup (hallcurrent3_cfg_t *cfg) |
Config Object Initialization function. | |
HALLCURRENT3_RETVAL | hallcurrent3_init (hallcurrent3_t *ctx, hallcurrent3_cfg_t *cfg) |
Initialization function. | |
void | hallcurrent3_generic_read (hallcurrent3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint16_t | hallcurrent3_read_data (hallcurrent3_t *ctx, uint8_t reg) |
Data read function. | |
float | hallcurrent3_get_current (hallcurrent3_t *ctx) |
Get current function. | |
void hallcurrent3_cfg_setup | ( | hallcurrent3_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void hallcurrent3_generic_read | ( | hallcurrent3_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function reads data from the desired register.
float hallcurrent3_get_current | ( | hallcurrent3_t * | ctx | ) |
Get current function.
ctx | Click object. |
@description This function calculates the current value.
HALLCURRENT3_RETVAL hallcurrent3_init | ( | hallcurrent3_t * | ctx, |
hallcurrent3_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint16_t hallcurrent3_read_data | ( | hallcurrent3_t * | ctx, |
uint8_t | reg ) |
Data read function.
ctx | Click object. |
reg | Register address. |
@description This function read two bytes of data from the specified register.