gyro9 2.1.0.0
|
This file contains API for Gyro 9 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 | gyro9_s |
Gyro 9 Click context object. More... | |
struct | gyro9_cfg_t |
Gyro 9 Click configuration object. More... | |
struct | gyro9_axis_data_t |
Gyro 9 Click axis raw data structure object. More... | |
struct | gyro9_axis_t |
Gyro 9 Click sensor axes structure object. More... | |
Typedefs | |
typedef err_t(* | gyro9_master_io_t) (struct gyro9_s *, uint8_t, uint8_t *, uint8_t) |
Gyro 9 Click driver interface. | |
typedef struct gyro9_s | gyro9_t |
Gyro 9 Click context object. | |
Enumerations | |
enum | gyro9_drv_t { GYRO9_DRV_SEL_SPI , GYRO9_DRV_SEL_I2C } |
Gyro 9 Click driver selector. More... | |
enum | gyro9_return_value_t { GYRO9_OK = 0 , GYRO9_ERROR = -1 } |
Gyro 9 Click return value data. More... | |
Functions | |
void | gyro9_cfg_setup (gyro9_cfg_t *cfg) |
Gyro 9 configuration object setup function. | |
void | gyro9_drv_interface_selection (gyro9_cfg_t *cfg, gyro9_drv_t drv_sel) |
Gyro 9 driver interface setup function. | |
err_t | gyro9_init (gyro9_t *ctx, gyro9_cfg_t *cfg) |
Gyro 9 initialization function. | |
err_t | gyro9_default_cfg (gyro9_t *ctx) |
Gyro 9 default configuration function. | |
err_t | gyro9_generic_write (gyro9_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Gyro 9 data writing function. | |
err_t | gyro9_generic_read (gyro9_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Gyro 9 data reading function. | |
err_t | gyro9_get_device_id (gyro9_t *ctx, uint8_t *who_am_i) |
Gyro 9 get device ID function. | |
err_t | gyro9_set_output_data_rate (gyro9_t *ctx, uint8_t odr) |
Gyro 9 set output data rate function. | |
err_t | gyro9_set_bandwidth_sel (gyro9_t *ctx, uint8_t bandwidth) |
Gyro 9 set bandwidth function. | |
err_t | gyro9_set_mode_pd (gyro9_t *ctx) |
Gyro 9 set power-down mode function. | |
err_t | gyro9_set_mode_sleep (gyro9_t *ctx) |
Gyro 9 set sleep mode function. | |
err_t | gyro9_set_mode_normal (gyro9_t *ctx) |
Gyro 9 set normal mode function. | |
err_t | gyro9_set_fifo_mode (gyro9_t *ctx, uint8_t fifo_mode) |
Gyro 9 set FIFO mode function. | |
err_t | gyro9_enable_data_ready (gyro9_t *ctx) |
Gyro 9 enable data ready function. | |
err_t | gyro9_get_status (gyro9_t *ctx, uint8_t *status) |
Gyro 9 get status function. | |
err_t | gyro9_get_axis_data (gyro9_t *ctx, gyro9_axis_data_t *gyro_axis) |
Gyro 9 get gyro data function. | |
err_t | gyro9_get_gyro_axis (gyro9_t *ctx, gyro9_axis_t *gyro_axis) |
Gyro 9 get gyro sensor axes function. | |
err_t | gyro9_get_temperature_raw (gyro9_t *ctx, int8_t *temp_raw) |
Gyro 9 get temperature data function. | |
uint8_t | gyro9_get_data_ready (gyro9_t *ctx) |
Gyro 9 get data ready function. | |
uint8_t | gyro9_get_interrupt (gyro9_t *ctx) |
Gyro 9 get interrupt function. | |
This file contains API for Gyro 9 Click Driver.
typedef err_t(* gyro9_master_io_t) (struct gyro9_s *, uint8_t, uint8_t *, uint8_t) |
Gyro 9 Click driver interface.
Definition of driver interface of Gyro 9 Click driver. Driver serial interface.
Gyro 9 Click context object.
Context object definition of Gyro 9 Click driver.
enum gyro9_drv_t |
enum gyro9_return_value_t |