accel13 2.0.0.0
|
This file contains API for Accel 13 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 | accel13_s |
Click ctx object definition. More... | |
struct | accel13_cfg_t |
Click configuration structure definition. More... | |
struct | accel13_axis_t |
Accel axis data structure. More... | |
struct | accel13_status_t |
Structure for collecting status data, read from the STATUS registers. More... | |
struct | accel13_wake_up_t |
Structure for collecting status data, read from the WAKE-UP SRC register. More... | |
struct | accel13_tap_t |
Structure for collecting status data, read from the TAP SRC register. More... | |
struct | accel13_6d_t |
Structure for collecting status data, read from the 6D SRC register. More... | |
struct | accel13_user_offset_t |
Structure for collecting data, read from the USER OFFSET registers. More... | |
Typedefs | |
typedef uint8_t | accel13_select_t |
Communication type. | |
typedef void(* | accel13_master_io_t) (struct accel13_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct accel13_s | accel13_t |
Click ctx object definition. | |
Functions | |
void | accel13_cfg_setup (accel13_cfg_t *cfg) |
Config Object Initialization function. | |
ACCEL13_RETVAL | accel13_init (accel13_t *ctx, accel13_cfg_t *cfg) |
Initialization function. | |
void | accel13_default_cfg (accel13_t *ctx) |
Click Default Configuration function. | |
void | accel13_generic_write_bytes (accel13_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | accel13_generic_write_single_byte (accel13_t *ctx, uint8_t reg, uint8_t data_in) |
Single byte write function. | |
void | accel13_generic_read_bytes (accel13_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic 8bit read function. | |
int16_t | accel13_generic_read_word (accel13_t *ctx, uint8_t reg) |
16bit read function. | |
float | accel13_get_temperature (accel13_t *ctx) |
Temperature functions. | |
void | accel13_get_axis_data (accel13_t *ctx, accel13_axis_t *axis) |
Read function for Accel axis data. | |
void | accel13_get_status (accel13_t *ctx, accel13_status_t *status) |
Read functions for Status data. | |
void | accel13_get_wake_up_status (accel13_t *ctx, accel13_wake_up_t *wu_status) |
Read function for Wake-up status data. | |
void | accel13_get_tap_status (accel13_t *ctx, accel13_tap_t *tap_status) |
Read function for Tap status data. | |
void | accel13_get_6d_status (accel13_t *ctx, accel13_6d_t *sixd_status) |
Read function for 6D status data. | |
void | accel13_get_user_offset (accel13_t *ctx, accel13_user_offset_t *axis) |
Read function for User offset data. | |
void | accel13_set_user_offset (accel13_t *ctx, accel13_user_offset_t *axis) |
Set function for User offset data. | |
uint8_t | accel13_get_interrupt (accel13_t *ctx, uint8_t int_num) |
Interrupt functions. | |
This file contains API for Accel 13 Click driver.