gyro5 2.0.0.0
|
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. | |
void gyro5_cfg_setup | ( | gyro5_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void gyro5_default_cfg | ( | gyro5_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Gyro 5 click.
void gyro5_generic_read | ( | gyro5_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function reads data from the desired register.
void gyro5_generic_write | ( | gyro5_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function writes data to the desired register.
void gyro5_get_axes | ( | gyro5_t * | ctx, |
float * | x_axis, | ||
float * | y_axis, | ||
float * | z_axis ) |
Getting gyroscope axes values.
ctx | Click object. |
x_axis | pointer to memory location where float x axis value be stored |
y_axis | pointer to memory location where float y axis value be stored |
z_axis | pointer to memory location where float z axis value be stored |
@description This function reads axes measurement registers. This function converts raw axes measurement data to get gyroscope data in [deg/s]
uint8_t gyro5_get_int | ( | gyro5_t * | ctx | ) |
Getting INT pin state.
ctx | Click object. |
@description This function returns INT pin state
void gyro5_get_temperature | ( | gyro5_t * | ctx, |
float * | temperature ) |
Getting temperature value.
ctx | Click object. |
temperature | pointer to memory location where float temperature data be stored |
@description This function reads temperature measurement registers. This function converts raw temperature data to get die temperature in [deg C]
GYRO5_RETVAL gyro5_init | ( | gyro5_t * | ctx, |
gyro5_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t gyro5_int_status | ( | gyro5_t * | ctx, |
uint8_t | int_type ) |
Getting interrupt status.
ctx | Click object. |
int_type | uint8_t interrupt_type - interrupt type (data ready, fsync or fifo overflow) |
@description This function returns state of specified interrupt bit
void gyro5_sleep | ( | gyro5_t * | ctx, |
uint8_t | en_sleep ) |
Set sleep mode.
ctx | Click object. |
en_sleep |
|
@description This function set sleep mode