magneto2 2.0.0.0
|
Functions | |
void | magneto2_cfg_setup (magneto2_cfg_t *cfg) |
Config Object Initialization function. | |
MAGNETO2_RETVAL | magneto2_init (magneto2_t *ctx, magneto2_cfg_t *cfg) |
Initialization function. | |
float | magneto2_read_angle (magneto2_t *ctx) |
Generic read angle function. | |
uint16_t | magneto2_read_data (magneto2_t *ctx) |
Generic read two bytes command function. | |
void magneto2_cfg_setup | ( | magneto2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
MAGNETO2_RETVAL magneto2_init | ( | magneto2_t * | ctx, |
magneto2_cfg_t * | cfg ) |
Initialization function.
magneto2 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
float magneto2_read_angle | ( | magneto2_t * | ctx | ) |
Generic read angle function.
magneto2 | Click object. |
@description This function reads 14-bit data value from target register, calculates and converts to float angle value from 0� to 360�.
uint16_t magneto2_read_data | ( | magneto2_t * | ctx | ) |
Generic read two bytes command function.
magneto2 | Click object. |
@description This function takes 14-bit data value from target register.