|
magneto7 2.2.0
|
This file contains API for Magneto 7 Click driver. More...
#include "drv_digital_in.h"#include "drv_i2c_master.h"Go to the source code of this file.
Data Structures | |
| struct | magneto7_t |
| Click ctx object definition. More... | |
| struct | magneto7_cfg_t |
| Click configuration structure definition. More... | |
Functions | |
| void | magneto7_cfg_setup (magneto7_cfg_t *cfg) |
| Config Object Initialization function. | |
| MAGNETO7_RETVAL | magneto7_init (magneto7_t *ctx, magneto7_cfg_t *cfg) |
| Initialization function. | |
| uint8_t | magneto7_default_cfg (magneto7_t *ctx) |
| Click Default Configuration function. | |
| void | magneto7_generic_write (magneto7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
| Generic write function. | |
| void | magneto7_generic_read (magneto7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
| Generic read function. | |
| uint8_t | magneto7_int_get (magneto7_t *ctx) |
| Getting INT pin state function. | |
| uint8_t | magneto7_get_register (magneto7_t *ctx, uint8_t register_address, uint8_t *data_buffer, uint8_t n_data) |
| Getting register value(s) function. | |
| uint8_t | magneto7_set_register (magneto7_t *ctx, uint8_t register_address, uint8_t *data_buffer, uint8_t n_data) |
| Setting register value(s) function. | |
| uint8_t | magneto7_set_offset (magneto7_t *ctx, uint8_t offset_axis, uint8_t offset_value) |
| Setting offset values function. | |
| void | magneto7_get_temperature (magneto7_t *ctx, uint16_t *device_temperature) |
| Getting raw device temperature value function. | |
| void | magneto7_get_data (magneto7_t *ctx, int16_t *x_axis, int16_t *y_axis, int16_t *z_axis) |
| Getting data function. | |
| void | magneto7_get_fine_data (magneto7_t *ctx, uint16_t *x_axis, uint16_t *y_axis, uint16_t *z_axis) |
| Getting fine data function. | |
| float | magneto7_convert_to_ut (magneto7_t *ctx, int16_t raw_data, uint8_t sensor_resolution) |
| Getting fine data function. | |
| void | magneto7_get_gain_para (magneto7_t *ctx, uint16_t *x_axis, uint16_t *y_axis, uint16_t *z_axis) |
| Getting gain data function. | |
This file contains API for Magneto 7 Click driver.