gyro2 2.0.0.0
|
This file contains API for Gyro 2 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 | ctrl_reg_t |
struct | gyro2_s |
Click ctx object definition. More... | |
struct | gyro2_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef void(* | gyro2_master_io_t) (struct gyro2_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct gyro2_s | gyro2_t |
Click ctx object definition. | |
Functions | |
void | gyro2_cfg_setup (gyro2_cfg_t *cfg) |
Config Object Initialization function. | |
GYRO2_RETVAL | gyro2_init (gyro2_t *ctx, gyro2_cfg_t *cfg) |
Initialization function. | |
uint8_t | gyro2_default_cfg (gyro2_t *ctx) |
Click Default Configuration function. | |
void | gyro2_generic_write (gyro2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | gyro2_generic_read (gyro2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | gyro2_scs_set (gyro2_t *ctx, uint8_t val) |
Set cs pin function. | |
void | gyro2_rst_set (gyro2_t *ctx, uint8_t val) |
Set rst pin function. | |
void | gyro2_cs_set (gyro2_t *ctx, uint8_t val) |
Comm interface function. | |
void | gyro2_rdy_set (gyro2_t *ctx, uint8_t val) |
Set ready pin function. | |
uint8_t | gyro2_rdy_get (gyro2_t *ctx) |
Get ready pin function. | |
uint8_t | gyro2_int_get (gyro2_t *ctx) |
Get int pin function. | |
void | gyro2_hw_reset (gyro2_t *ctx) |
Hardware reset function. | |
uint8_t | gyro2_get_id (gyro2_t *ctx) |
ID return function. | |
void | gyro2_get_axisraw (gyro2_t *ctx, int16_t *axis_data) |
Axis read function. | |
void | gyro2_calc_axis (int16_t *axis_data) |
Calc axis funtion. | |
uint8_t | gyro2_read_temperature (gyro2_t *ctx) |
Temperature read function. | |
void | gyro2_sw_reset (gyro2_t *ctx) |
Soft reset function. | |
void | gyro2_set_dr (gyro2_t *ctx, uint8_t rate) |
Data rate function. | |
void | gyro2_set_opmode (gyro2_t *ctx, uint8_t opmode) |
void | gyro2_interrupt_cfg (gyro2_t *ctx, uint8_t int_route, uint8_t int_en, uint8_t polarity_outdrvsetting) |
Interrupt cfg function. | |
void | gyro2_interrupt_event_generation (gyro2_t *ctx, uint8_t cfg) |
Int event generation function. | |
void | gyro2_sensitivity (gyro2_t *ctx, uint8_t s_setting) |
Sensitivity function. | |
void | gyro2_fr_setup (gyro2_t *ctx, uint8_t low_pass, uint8_t hi_pass, uint8_t scale_set) |
Filter and scale of measurement functio. | |
This file contains API for Gyro 2 Click driver.