accel12 2.0.0.0
|
This file contains API for Accel 12 Click driver. More...
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | accel12_t |
Click ctx object definition. More... | |
struct | accel12_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | accel12_cfg_setup (accel12_cfg_t *cfg) |
Config Object Initialization function. | |
ACCEL12_RETVAL | accel12_init (accel12_t *ctx, accel12_cfg_t *cfg) |
Initialization function. | |
void | accel12_default_cfg (accel12_t *ctx) |
Click Default Configuration function. | |
void | accel12_generic_write (accel12_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | accel12_generic_read (accel12_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | accel12_configuration (accel12_t *ctx, uint8_t reg, uint8_t data_in) |
Functions for configuration one register. | |
int16_t | accel12_get_one_axis (accel12_t *ctx, uint8_t axis) |
Functions for read one Accel axis data. | |
void | accel12_get_axis_data (accel12_t *ctx, int16_t *x_axis, int16_t *y_axis, int16_t *z_axis) |
Functions for read Accel axis data. | |
uint8_t | accel12_get_tap_detection (accel12_t *ctx) |
TAP detection. | |
uint8_t | accel12_get_interrupt_state (accel12_t *ctx) |
Functions for read INT pin state. | |
This file contains API for Accel 12 Click driver.