gyro6 2.0.0.0
|
This file contains API for Gyro 6 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | gyro6_s |
Gyro 6 Click context object. More... | |
struct | gyro6_cfg_t |
Gyro 6 Click configuration object. More... | |
Typedefs | |
typedef err_t(* | gyro6_master_io_t) (struct gyro6_s *, uint8_t, uint8_t *, uint8_t) |
Gyro 6 Click driver interface. | |
typedef struct gyro6_s | gyro6_t |
Gyro 6 Click context object. | |
Enumerations | |
enum | gyro6_drv_t { GYRO6_DRV_SEL_SPI , GYRO6_DRV_SEL_I2C } |
Gyro 6 Click driver selector. More... | |
enum | gyro6_return_value_t { GYRO6_OK = 0 , GYRO6_ERROR = -1 } |
Gyro 6 Click return value data. More... | |
Functions | |
void | gyro6_cfg_setup (gyro6_cfg_t *cfg) |
Gyro 6 configuration object setup function. | |
void | gyro6_drv_interface_selection (gyro6_cfg_t *cfg, gyro6_drv_t drv_sel) |
Gyro 6 driver interface setup function. | |
err_t | gyro6_init (gyro6_t *ctx, gyro6_cfg_t *cfg) |
Gyro 6 initialization function. | |
err_t | gyro6_default_cfg (gyro6_t *ctx) |
Gyro 6 default configuration function. | |
err_t | gyro6_generic_write (gyro6_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Gyro 6 data writing function. | |
err_t | gyro6_generic_read (gyro6_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Gyro 6 data reading function. | |
err_t | gyro6_write_register (gyro6_t *ctx, uint8_t reg, uint8_t data_in) |
Gyro 6 write register function. | |
err_t | gyro6_read_register (gyro6_t *ctx, uint8_t reg, uint8_t *data_out) |
Gyro 6 read register function. | |
uint8_t | gyro6_get_int_pin (gyro6_t *ctx) |
Gyro 6 get INT pin function. | |
void | gyro6_set_pwm_pin (gyro6_t *ctx, uint8_t state) |
Gyro 6 set PWM pin function. | |
err_t | gyro6_check_communication (gyro6_t *ctx) |
Gyro 6 check communication function. | |
err_t | gyro6_read_die_temperature (gyro6_t *ctx, float *temperature) |
Gyro 6 read DIE temperature function. | |
err_t | gyro6_get_axis (gyro6_t *ctx, float *x_axis, float *y_axis, float *z_axis) |
Gyro 6 get axis function. | |
err_t | gyro6_set_low_power_mode (gyro6_t *ctx, uint8_t sample_rate, uint8_t average) |
Gyro 6 set low power mode function. | |
This file contains API for Gyro 6 Click Driver.
typedef err_t(* gyro6_master_io_t) (struct gyro6_s *, uint8_t, uint8_t *, uint8_t) |
Gyro 6 Click driver interface.
Definition of driver interface of Gyro 6 Click driver. Driver serial interface.
Gyro 6 Click context object.
Context object definition of Gyro 6 Click driver.
enum gyro6_drv_t |
enum gyro6_return_value_t |