accel5 2.0.0.0
|
This file contains API for Accel 5 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 | accel5_t |
Click ctx object definition. More... | |
struct | accel5_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | accel5_cfg_setup (accel5_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | accel5_init (accel5_t *ctx, accel5_cfg_t *cfg) |
Initialization function. | |
err_t | accel5_generic_write (accel5_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
err_t | accel5_generic_read (accel5_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | accel5_default_cfg (accel5_t *ctx, uint8_t mode, uint8_t range) |
Click Default Configuration function.. | |
void | accel5_write_byte (accel5_t *ctx, uint8_t reg, uint8_t reg_data) |
Functions for write one byte in register. | |
uint8_t | accel5_read_byte (accel5_t *ctx, uint8_t reg) |
Functions for read byte from register. | |
uint16_t | accel5_read_data (accel5_t *ctx, uint8_t reg) |
Functions for read data from register. | |
int16_t | accel5_get_axis (accel5_t *ctx, uint8_t axis) |
Functions for read axis data. | |
uint32_t | accel5_sensor_time (accel5_t *ctx) |
Functions for initialize the chip. | |
float | accel5_get_temperature (accel5_t *ctx) |
Functions for read temperature. | |
void | accel5_soft_reset (accel5_t *ctx) |
Functions for software reset. | |
This file contains API for Accel 5 Click driver.