accel7 2.0.0.0
|
This file contains API for Accel 7 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | accel7_t |
Click ctx object definition. More... | |
struct | accel7_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | accel7_cfg_setup (accel7_cfg_t *cfg) |
Config Object Initialization function. | |
ACCEL7_RETVAL | accel7_init (accel7_t *ctx, accel7_cfg_t *cfg) |
Initialization function. | |
void | accel7_default_cfg (accel7_t *ctx, uint8_t resolution, uint8_t range) |
Click Default Configuration function. | |
void | accel7_generic_write (accel7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | accel7_generic_read (accel7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | accel7_write_byte (accel7_t *ctx, uint8_t reg, uint8_t input_data) |
Write byte function. | |
uint8_t | accel7_read_byte (accel7_t *ctx, uint8_t reg) |
Read byte function. | |
int16_t | accel7_get_axis (accel7_t *ctx, uint8_t axis) |
Get axi function. | |
void | accel7_res_range_cfg (accel7_t *ctx, uint8_t *resolution, uint8_t *range) |
Resolution/range configuration function. | |
uint8_t | accel7_get_interrupt_state (accel7_t *ctx) |
Get interrupt state function. | |
This file contains API for Accel 7 Click driver.