accel 2.0.0.0
|
This file contains API for Accel Click driver. More...
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | accel_s |
Click ctx object definition. More... | |
struct | accel_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef uint8_t | accel_select_t |
Communication type. | |
typedef void(* | accel_master_io_t) (struct accel_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct accel_s | accel_t |
Click ctx object definition. | |
Functions | |
void | accel_cfg_setup (accel_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | accel_init (accel_t *ctx, accel_cfg_t *cfg) |
Initialization function. | |
void | accel_default_cfg (accel_t *ctx) |
Click Default Configuration function. | |
void | accel_generic_write (accel_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | accel_generic_read (accel_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
int16_t | accel_read_x_axis (accel_t *ctx) |
Function raw read X axis. | |
int16_t | accel_read_y_axis (accel_t *ctx) |
Function raw read Y axis. | |
int16_t | accel_read_z_axis (accel_t *ctx) |
Function raw read Z axis. | |
uint8_t | accel_check_int_pin (accel_t *ctx) |
INT Pin Get function. | |
This file contains API for Accel Click driver.