gyro5 2.0.0.0
|
This file contains API for Gyro 5 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 | gyro5_s |
Click ctx object definition. More... | |
struct | gyro5_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef uint8_t | gyro5_select_t |
Communication type. | |
typedef void(* | gyro5_master_io_t) (struct gyro5_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct gyro5_s | gyro5_t |
Click ctx object definition. | |
Functions | |
void | gyro5_cfg_setup (gyro5_cfg_t *cfg) |
Config Object Initialization function. | |
GYRO5_RETVAL | gyro5_init (gyro5_t *ctx, gyro5_cfg_t *cfg) |
Initialization function. | |
void | gyro5_default_cfg (gyro5_t *ctx) |
Click Default Configuration function. | |
void | gyro5_generic_write (gyro5_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | gyro5_generic_read (gyro5_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | gyro5_get_int (gyro5_t *ctx) |
Getting INT pin state. | |
uint8_t | gyro5_int_status (gyro5_t *ctx, uint8_t int_type) |
Getting interrupt status. | |
void | gyro5_get_temperature (gyro5_t *ctx, float *temperature) |
Getting temperature value. | |
void | gyro5_get_axes (gyro5_t *ctx, float *x_axis, float *y_axis, float *z_axis) |
Getting gyroscope axes values. | |
void | gyro5_sleep (gyro5_t *ctx, uint8_t en_sleep) |
Set sleep mode. | |
This file contains API for Gyro 5 Click driver.