magneto11 2.0.0.0
|
This file contains API for Magneto 11 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | magneto11_t |
Magneto 11 Click context object. More... | |
struct | magneto11_cfg_t |
Magneto 11 Click configuration object. More... | |
Enumerations | |
enum | magneto11_return_value_t { MAGNETO11_OK = 0 , MAGNETO11_ERROR = -1 } |
Magneto 11 Click return value data. More... | |
Functions | |
void | magneto11_cfg_setup (magneto11_cfg_t *cfg) |
Magneto 11 configuration object setup function. | |
err_t | magneto11_init (magneto11_t *ctx, magneto11_cfg_t *cfg) |
Magneto 11 initialization function. | |
err_t | magneto11_default_cfg (magneto11_t *ctx) |
Magneto 11 default configuration function. | |
err_t | magneto11_generic_write (magneto11_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
Magneto 11 I2C writing function. | |
err_t | magneto11_generic_read (magneto11_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
Magneto 11 I2C reading function. | |
err_t | magneto11_get_magnetic_field (magneto11_t *ctx, float *mag_field) |
Magneto 11 get magnetic field function. | |
err_t | magneto11_get_offset (magneto11_t *ctx, uint16_t *offset) |
Magneto 11 get offset function. | |
err_t | magneto11_set_config (magneto11_t *ctx, uint8_t config) |
Magneto 11 set config function. | |
err_t | magneto11_set_sensitivity (magneto11_t *ctx, uint8_t sensitivity) |
Magneto 11 set sensitivity function. | |
This file contains API for Magneto 11 Click Driver.