accel11 2.0.0.0
|
This file contains API for Accel 11 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 | accel11_s |
Click ctx object definition. More... | |
struct | accel11_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef uint8_t | accel11_select_t |
Communication type. | |
typedef void(* | accel11_master_io_t) (struct accel11_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct accel11_s | accel11_t |
Click ctx object definition. | |
Functions | |
void | accel11_cfg_setup (accel11_cfg_t *cfg) |
Config Object Initialization function. | |
ACCEL11_RETVAL | accel11_init (accel11_t *ctx, accel11_cfg_t *cfg) |
Initialization function. | |
void | accel11_default_cfg (accel11_t *ctx) |
Click Default Configuration function. | |
void | accel11_generic_write (accel11_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | accel11_generic_read (accel11_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | accel11_write_byte (accel11_t *ctx, uint8_t addr, uint8_t data_in) |
Functions for write one byte in register. | |
uint8_t | accel11_read_byte (accel11_t *ctx, uint8_t addr) |
Functions for read byte from register. | |
uint8_t | accel11_test_comunication (accel11_t *ctx) |
Test comunication function. | |
void | accel11_software_reset (accel11_t *ctx) |
Software reset function. | |
int16_t | accel11_get_axis_data (accel11_t *ctx, uint8_t axis) |
Accel Axis data function. | |
void | accel11_power_on_procedure (accel11_t *ctx) |
Function for power on chip. | |
int8_t | accel11_get_temperature (accel11_t *ctx) |
Function get temperature. | |
This file contains API for Accel 11 Click driver.