accel6 2.0.0.0
|
This file contains API for Accel 6 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | accel6_s |
Click ctx object definition. More... | |
struct | accel6_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef uint8_t | accel6_select_t |
Communication type. | |
typedef void(* | accel6_master_io_t) (struct accel6_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct accel6_s | accel6_t |
Click ctx object definition. | |
Functions | |
void | accel6_cfg_setup (accel6_cfg_t *cfg) |
Config Object Initialization function. | |
ACCEL6_RETVAL | accel6_init (accel6_t *ctx, accel6_cfg_t *cfg) |
Initialization function. | |
void | accel6_generic_write (accel6_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | accel6_generic_read (accel6_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | accel6_soft_reset (accel6_t *ctx) |
Functions for software reset. | |
void | accel6_default_cfg (accel6_t *ctx, uint8_t range_data, uint8_t bw_data, uint8_t lpw_data) |
Click Default Configuration function. | |
void | accel6_data_offset (accel6_t *ctx, uint8_t set_offset, float *offset_data) |
Functions for set offset. | |
uint8_t | accel6_get_tap_status (accel6_t *ctx) |
Functions for detect tap on the x/y/z axis. | |
uint8_t | accel6_get_slope_status (accel6_t *ctx) |
Functions for detect slope on the x/y/z axis. | |
void | accel6_get_orient (accel6_t *ctx, uint8_t *z_orient, uint8_t *xy_orient) |
Functions for read orient. | |
float | accel6_get_axis (accel6_t *ctx, uint8_t axis) |
Functions for read axis data. | |
float | accel6_get_temperature (accel6_t *ctx) |
Functions for read temperature. | |
This file contains API for Accel 6 Click driver.