magaccel 2.1.0.0
|
This file contains API for MagAccel 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 | magaccel_t |
MagAccel Click context object. More... | |
struct | magaccel_cfg_t |
MagAccel Click configuration object. More... | |
struct | magaccel_axes_t |
MagAccel Click axes data. More... | |
Enumerations | |
enum | magaccel_return_value_t { MAGACCEL_OK = 0 , MAGACCEL_ERROR = -1 } |
MagAccel Click return value data. More... | |
Functions | |
void | magaccel_cfg_setup (magaccel_cfg_t *cfg) |
MagAccel configuration object setup function. | |
err_t | magaccel_init (magaccel_t *ctx, magaccel_cfg_t *cfg) |
MagAccel initialization function. | |
err_t | magaccel_default_cfg (magaccel_t *ctx) |
MagAccel default configuration function. | |
err_t | magaccel_generic_write (magaccel_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
MagAccel I2C writing function. | |
err_t | magaccel_generic_read (magaccel_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
MagAccel I2C reading function. | |
err_t | magaccel_get_device_id (magaccel_t *ctx, uint8_t *device_id) |
MagAccel get device ID function. | |
err_t | magaccel_get_status (magaccel_t *ctx, uint8_t *status) |
MagAccel get status function. | |
err_t | magaccel_sw_reset (magaccel_t *ctx) |
MagAccel soft reset function. | |
err_t | magaccel_set_op_mode (magaccel_t *ctx, uint8_t op_mode) |
MagAccel set operating mode function. | |
err_t | magaccel_set_fsr (magaccel_t *ctx, uint8_t fsr) |
MagAccel set FSR function. | |
err_t | magaccel_en_data_ready (magaccel_t *ctx) |
MagAccel enable data ready function. | |
err_t | magaccel_get_axes_data (magaccel_t *ctx, magaccel_axes_t *axes) |
MagAccel get the accel sensor axes function. | |
uint8_t | magaccel_check_data_ready (magaccel_t *ctx) |
MagAccel get data ready function. | |
uint8_t | magaccel_check_mag_field (magaccel_t *ctx) |
MagAccel checks the magnetic field function. | |
This file contains API for MagAccel Click Driver.