gyro3 2.0.0.0
|
This file contains API for Gyro 3 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 | gyro3_s |
Click ctx object definition. More... | |
struct | gyro3_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef uint8_t | gyro3_select_t |
Communication type. | |
typedef void(* | gyro3_master_io_t) (struct gyro3_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct gyro3_s | gyro3_t |
Click ctx object definition. | |
Functions | |
void | gyro3_cfg_setup (gyro3_cfg_t *cfg) |
Config Object Initialization function. | |
GYRO3_RETVAL | gyro3_init (gyro3_t *ctx, gyro3_cfg_t *cfg) |
Initialization function. | |
void | gyro3_default_cfg (gyro3_t *ctx) |
Click Default Configuration function. | |
void | gyro3_generic_write (gyro3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | gyro3_generic_read (gyro3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | gyro3_int_get (gyro3_t *ctx) |
Get INT pin state. | |
uint8_t | gyro3_di2_get (gyro3_t *ctx) |
Get di2 (AN) pin state. | |
void | gyro3_read (gyro3_t *ctx, uint8_t register_address, uint8_t *read_buffer, uint8_t n_bytes) |
Reading register(s) | |
void | gyro3_write (gyro3_t *ctx, uint8_t register_address, uint8_t value) |
Write byte to regiter. | |
void | gyro3_get_temp (gyro3_t *ctx, uint8_t *temperature_value) |
Read value from temperature register. | |
void | gyro3_get_axes (gyro3_t *ctx, float *x_axis, float *y_axis, float *z_axis, uint8_t measurement_range) |
Get XYZ axes dps values. | |
void | gyro3_get_status (gyro3_t *ctx, uint8_t *status_register) |
Getting status register content. | |
void | gyro3_get_fifo_data_level (gyro3_t *ctx, uint8_t *fifo_data_level) |
Get FIFO data level. | |
void | gyro3_set_int1_thresholds (gyro3_t *ctx, int16_t x_threshold, int16_t y_threshold, int16_t z_threshold) |
Setting values for interrupt thresholds. | |
uint8_t | gyro3_set_int1_duration (gyro3_t *ctx, uint8_t wait_enable_bit, uint8_t duration_value) |
Setting interrupt duration time on INT1 pin. | |
This file contains API for Gyro 3 Click driver.