accel10 2.0.0.0
|
This file contains API for Accel 10 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 | accel10_s |
Click ctx object definition. More... | |
struct | accel10_cfg_t |
Click configuration structure definition. More... | |
struct | accel10_data_t |
Accel data structure definition. More... | |
Typedefs | |
typedef uint8_t | accel10_select_t |
Communication type. | |
typedef void(* | accel10_master_io_t) (struct accel10_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct accel10_s | accel10_t |
Click ctx object definition. | |
Functions | |
void | accel10_cfg_setup (accel10_cfg_t *cfg) |
Config Object Initialization function. | |
ACCEL10_RETVAL | accel10_init (accel10_t *ctx, accel10_cfg_t *cfg) |
Initialization function. | |
void | accel10_default_cfg (accel10_t *ctx) |
Click Default Configuration function. | |
void | accel10_generic_write (accel10_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | accel10_generic_read (accel10_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
ACCEL10_RETVAL | accel10_check_id (accel10_t *ctx) |
Check ID function. | |
uint8_t | accel10_check_data_ready (accel10_t *ctx) |
Check data ready function. | |
void | accel10_soft_reset (accel10_t *ctx) |
Soft reset function. | |
void | accel10_get_data (accel10_t *ctx, accel10_data_t *p_accel_data) |
Read Accel data function. | |
int8_t | accel10_read_temperature (accel10_t *ctx) |
Read temperature function. | |
uint8_t | accel10_check_it1 (accel10_t *ctx) |
Get interrupt 1 ststus function. | |
uint8_t | accel10_check_it2 (accel10_t *ctx) |
Get interrupt 2 ststus function. | |
This file contains API for Accel 10 Click driver.