gyro 2.0.0.0
|
This file contains API for Gyro 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 | gyro_t |
Click ctx object definition. More... | |
struct | gyro_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | gyro_cfg_setup (gyro_cfg_t *cfg) |
Config Object Initialization function. | |
GYRO_RETVAL | gyro_init (gyro_t *ctx, gyro_cfg_t *cfg) |
Initialization function. | |
void | gyro_default_cfg (gyro_t *ctx) |
Click Default Configuration function. | |
void | gyro_write_data (gyro_t *ctx, uint8_t address, uint8_t write_command) |
Generic write data function. | |
uint8_t | gyro_read_data (gyro_t *ctx, uint8_t address) |
Generic read data function. | |
int16_t | gyro_get_axis (gyro_t *ctx, uint8_t adr_reg_low) |
Function get low and high register data. | |
void | gyro_read_gyro (gyro_t *ctx, int16_t *gyro_x, int16_t *gyro_y, int16_t *gyro_z) |
Function read axis. | |
This file contains API for Gyro Click driver.