smartdof3 2.1.0.0
|
This file contains API for Smart DOF 3 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 | smartdof3_s |
Smart DOF 3 Click context object. More... | |
struct | smartdof3_cfg_t |
Smart DOF 3 Click configuration object. More... | |
struct | smartdof3_status_t |
Smart DOF 3 Click sensor status structure object. More... | |
struct | smartdof3_axis_data_t |
Smart DOF 3 Click axis raw data structure object. More... | |
struct | smartdof3_axis_t |
Smart DOF 3 Click sensor axes structure object. More... | |
Typedefs | |
typedef err_t(* | smartdof3_master_io_t) (struct smartdof3_s *, uint8_t, uint8_t *, uint8_t) |
Smart DOF 3 Click driver interface. | |
typedef struct smartdof3_s | smartdof3_t |
Smart DOF 3 Click context object. | |
Enumerations | |
enum | smartdof3_drv_t { SMARTDOF3_DRV_SEL_SPI , SMARTDOF3_DRV_SEL_I2C } |
Smart DOF 3 Click driver selector. More... | |
enum | smartdof3_return_value_t { SMARTDOF3_OK = 0 , SMARTDOF3_ERROR = -1 } |
Smart DOF 3 Click return value data. More... | |
Functions | |
void | smartdof3_cfg_setup (smartdof3_cfg_t *cfg) |
Smart DOF 3 configuration object setup function. | |
void | smartdof3_drv_interface_selection (smartdof3_cfg_t *cfg, smartdof3_drv_t drv_sel) |
Smart DOF 3 driver interface setup function. | |
err_t | smartdof3_init (smartdof3_t *ctx, smartdof3_cfg_t *cfg) |
Smart DOF 3 initialization function. | |
err_t | smartdof3_default_cfg (smartdof3_t *ctx) |
Smart DOF 3 default configuration function. | |
err_t | smartdof3_generic_write (smartdof3_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Smart DOF 3 data writing function. | |
err_t | smartdof3_generic_read (smartdof3_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Smart DOF 3 data reading function. | |
err_t | smartdof3_get_device_id (smartdof3_t *ctx, uint8_t *device_id) |
Smart DOF 3 get device ID function. | |
err_t | smartdof3_soft_reset (smartdof3_t *ctx) |
Smart DOF 3 software reset function. | |
err_t | smartdof3_en_auto_incr (smartdof3_t *ctx) |
Smart DOF 3 enable auto-increment function. | |
err_t | smartdof3_en_block_data_upd (smartdof3_t *ctx) |
Smart DOF 3 enable block data update function. | |
err_t | smartdof3_set_op_mode (smartdof3_t *ctx, uint8_t acc_op_mode, uint8_t gyro_op_mode) |
Smart DOF 3 sets the operation mode function. | |
err_t | smartdof3_set_acc_data_rate (smartdof3_t *ctx, uint8_t data_rate) |
Smart DOF 3 sets the accel data rate function. | |
err_t | smartdof3_set_acc_full_scale (smartdof3_t *ctx, uint8_t data_scale) |
Smart DOF 3 sets the accel full-scale range function. | |
err_t | smartdof3_get_acc_full_scale (smartdof3_t *ctx, uint8_t *data_scale) |
Smart DOF 3 get the accel full-scale range function. | |
err_t | smartdof3_get_acc_sensitivity (smartdof3_t *ctx, float *sensitivity) |
Smart DOF 3 get the accel sensitivity function. | |
err_t | smartdof3_set_gyro_data_rate (smartdof3_t *ctx, uint8_t data_rate) |
Smart DOF 3 sets the gyro data rate function. | |
err_t | smartdof3_set_gyro_full_scale (smartdof3_t *ctx, uint8_t data_scale) |
Smart DOF 3 sets the gyro full-scale range function. | |
err_t | smartdof3_get_gyro_full_scale (smartdof3_t *ctx, uint8_t *data_scale) |
Smart DOF 3 get the gyro full-scale range function. | |
err_t | smartdof3_get_status (smartdof3_t *ctx, smartdof3_status_t *status) |
Smart DOF 3 get the status function. | |
err_t | smartdof3_get_gyro_sensitivity (smartdof3_t *ctx, float *sensitivity) |
Smart DOF 3 get the gyro sensitivity function. | |
err_t | smartdof3_get_acc_axis_data (smartdof3_t *ctx, smartdof3_axis_data_t *acc_axis) |
Smart DOF 3 get the accel data function. | |
err_t | smartdof3_get_gyro_axis_data (smartdof3_t *ctx, smartdof3_axis_data_t *gyro_axis) |
Smart DOF 3 get the gyro data function. | |
err_t | smartdof3_get_acc_axis (smartdof3_t *ctx, smartdof3_axis_t *acc_axis) |
Smart DOF 3 get the accel sensor axes function. | |
err_t | smartdof3_get_gyro_axis (smartdof3_t *ctx, smartdof3_axis_t *gyro_axis) |
Smart DOF 3 get the gyro sensor axes function. | |
err_t | smartdof3_enable_temperature (smartdof3_t *ctx) |
Smart DOF 3 enable the temperature function. | |
err_t | smartdof3_get_temperature_raw (smartdof3_t *ctx, int16_t *temp_raw) |
Smart DOF 3 get the temperature data function. | |
err_t | smartdof3_get_temperature (smartdof3_t *ctx, float *temperature) |
Smart DOF 3 get the temperature function. | |
uint8_t | smartdof3_get_in1_pin (smartdof3_t *ctx) |
Smart DOF 3 get interrupt 1 function. | |
uint8_t | smartdof3_get_in2_pin (smartdof3_t *ctx) |
Smart DOF 3 get interrupt 2 function. | |
This file contains API for Smart DOF 3 Click Driver.
typedef err_t(* smartdof3_master_io_t) (struct smartdof3_s *, uint8_t, uint8_t *, uint8_t) |
Smart DOF 3 Click driver interface.
Definition of driver interface of Smart DOF 3 Click driver. Driver serial interface.
typedef struct smartdof3_s smartdof3_t |
Smart DOF 3 Click context object.
Context object definition of Smart DOF 3 Click driver.
enum smartdof3_drv_t |