smartdof2 2.1.0.0
|
This file contains API for Smart DOF 2 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | smartdof2_s |
Smart DOF 2 Click context object. More... | |
struct | smartdof2_cfg_t |
Smart DOF 2 Click configuration object. More... | |
struct | smartdof2_axis_data_t |
Smart DOF 2 Click axis raw data structure object. More... | |
struct | smartdof2_axis_t |
Smart DOF 2 Click sensor axes structure object. More... | |
Typedefs | |
typedef err_t(* | smartdof2_master_io_t) (struct smartdof2_s *, uint8_t, uint8_t *, uint8_t) |
Smart DOF 2 Click driver interface. | |
typedef struct smartdof2_s | smartdof2_t |
Smart DOF 2 Click context object. | |
Enumerations | |
enum | smartdof2_drv_t { SMARTDOF2_DRV_SEL_SPI , SMARTDOF2_DRV_SEL_I2C } |
Smart DOF 2 Click driver selector. More... | |
enum | smartdof2_return_value_t { SMARTDOF2_OK = 0 , SMARTDOF2_ERROR = -1 } |
Smart DOF 2 Click return value data. More... | |
Functions | |
void | smartdof2_cfg_setup (smartdof2_cfg_t *cfg) |
Smart DOF 2 configuration object setup function. | |
void | smartdof2_drv_interface_selection (smartdof2_cfg_t *cfg, smartdof2_drv_t drv_sel) |
Smart DOF 2 driver interface setup function. | |
err_t | smartdof2_init (smartdof2_t *ctx, smartdof2_cfg_t *cfg) |
Smart DOF 2 initialization function. | |
err_t | smartdof2_default_cfg (smartdof2_t *ctx) |
Smart DOF 2 default configuration function. | |
err_t | smartdof2_generic_write (smartdof2_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Smart DOF 2 data writing function. | |
err_t | smartdof2_generic_read (smartdof2_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Smart DOF 2 data reading function. | |
err_t | smartdof2_get_device_id (smartdof2_t *ctx, uint8_t *device_id) |
Smart DOF 2 get device ID function. | |
err_t | smartdof2_enable_auto_increment (smartdof2_t *ctx) |
Smart DOF 2 enable auto increment function. | |
err_t | smartdof2_enable_block_data_update (smartdof2_t *ctx) |
Smart DOF 2 enable block data update function. | |
err_t | smartdof2_set_fifo_mode (smartdof2_t *ctx, uint8_t fifo_mode) |
Smart DOF 2 set FIFO mode function. | |
err_t | smartdof2_set_acc_data_rate (smartdof2_t *ctx, uint8_t data_rate) |
Smart DOF 2 set accel data rate function. | |
err_t | smartdof2_get_acc_full_scale (smartdof2_t *ctx, uint8_t *data_scale) |
Smart DOF 2 get full-scale accel range function. | |
err_t | smartdof2_set_acc_full_scale (smartdof2_t *ctx, uint8_t data_scale) |
Smart DOF 2 set full-scale accel range function. | |
err_t | smartdof2_set_gyro_data_rate (smartdof2_t *ctx, uint8_t data_rate) |
Smart DOF 2 set gyro data rate function. | |
err_t | smartdof2_get_gyro_full_scale (smartdof2_t *ctx, uint8_t *data_scale) |
Smart DOF 2 get full-scale gyro range function. | |
err_t | smartdof2_set_gyro_full_scale (smartdof2_t *ctx, uint8_t data_scale) |
Smart DOF 2 set full-scale gyro range function. | |
err_t | smartdof2_get_acc_axis_data (smartdof2_t *ctx, smartdof2_axis_data_t *acc_axis) |
Smart DOF 2 get accel data function. | |
err_t | smartdof2_get_gyro_axis_data (smartdof2_t *ctx, smartdof2_axis_data_t *gyro_axis) |
Smart DOF 2 get gyro data function. | |
err_t | smartdof2_get_acc_sensitivity (smartdof2_t *ctx, float *sensitivity) |
Smart DOF 2 get accel sensitivity function. | |
err_t | smartdof2_get_gyro_sensitivity (smartdof2_t *ctx, float *sensitivity) |
Smart DOF 2 get gyro sensitivity function. | |
err_t | smartdof2_get_acc_axis (smartdof2_t *ctx, smartdof2_axis_t *acc_axis) |
Smart DOF 2 get accel sensor axes function. | |
err_t | smartdof2_get_gyro_axis (smartdof2_t *ctx, smartdof2_axis_t *gyro_axis) |
Smart DOF 2 get gyro sensor axes function. | |
err_t | smartdof2_get_temperature_raw (smartdof2_t *ctx, int16_t *temp_raw) |
Smart DOF 2 get temperature data function. | |
err_t | smartdof2_get_temperature (smartdof2_t *ctx, float *temperature) |
Smart DOF 2 get temperature function. | |
uint8_t | smartdof2_get_int_pin (smartdof2_t *ctx) |
Smart DOF 2 get interrupt function. | |
This file contains API for Smart DOF 2 Click Driver.
typedef err_t(* smartdof2_master_io_t) (struct smartdof2_s *, uint8_t, uint8_t *, uint8_t) |
Smart DOF 2 Click driver interface.
Definition of driver interface of Smart DOF 2 Click driver. Driver serial interface.
typedef struct smartdof2_s smartdof2_t |
Smart DOF 2 Click context object.
Context object definition of Smart DOF 2 Click driver.
enum smartdof2_drv_t |