magneto5 2.0.0.0
|
This file contains API for Magneto 5 Click driver. More...
#include "drv_digital_out.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | magneto5_t |
Click ctx object definition. More... | |
struct | magneto5_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | magneto5_cfg_setup (magneto5_cfg_t *cfg) |
Config Object Initialization function. | |
MAGNETO5_RETVAL | magneto5_init (magneto5_t *ctx, magneto5_cfg_t *cfg) |
Initialization function. | |
void | magneto5_default_cfg (magneto5_t *ctx) |
Click Default Configuration function. | |
void | magneto5_generic_write (magneto5_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | magneto5_generic_read (magneto5_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | magneto5_set_status_reg (magneto5_t *ctx) |
Functions reads status register. | |
uint8_t | magneto5_get_product_id (magneto5_t *ctx) |
Functions reads product ID from register. | |
void | magneto5_get_axis_data (magneto5_t *ctx, int16_t *axis_buffer, uint8_t max_resolution) |
Functions reads axis data. | |
float | magneto5_get_axis_value (magneto5_t *ctx, uint8_t axis, uint8_t max_resolution) |
Functions reads axis data value. | |
void | magneto5_config_register_0 (magneto5_t *ctx, uint8_t config_data) |
Functions sets configuration register 0. | |
void | magneto5_config_register_1 (magneto5_t *ctx, uint8_t config_data) |
Functions sets configuration register 1. | |
void | magneto5_reset (magneto5_t *ctx) |
Functions for reset data. | |
This file contains API for Magneto 5 Click driver.