c6dofimu5 2.0.0.0
|
Functions | |
void | c6dofimu5_cfg_setup (c6dofimu5_cfg_t *cfg) |
Config Object Initialization function. | |
C6DOFIMU5_RETVAL | c6dofimu5_init (c6dofimu5_t *ctx, c6dofimu5_cfg_t *cfg) |
Initialization function. | |
void | c6dofimu5_default_cfg (c6dofimu5_t *ctx) |
Click Default Configuration function. | |
void | c6dofimu5_write_bytes (c6dofimu5_t *ctx, uint8_t reg, uint8_t *wr_data, uint16_t n_bytes) |
Generic write function. | |
void | c6dofimu5_read_bytes (c6dofimu5_t *ctx, uint8_t reg, uint8_t *rd_data, uint16_t n_bytes) |
Generic read function. | |
void | c6dofimu5_power (c6dofimu5_t *ctx, uint8_t on_off) |
Power up function. | |
int16_t | c6dofimu5_read_gyro_x (c6dofimu5_t *ctx) |
Read Gyroscope X-axis data function. | |
int16_t | c6dofimu5_read_gyro_y (c6dofimu5_t *ctx) |
Read Gyroscope Y-axis data function. | |
int16_t | c6dofimu5_read_gyro_z (c6dofimu5_t *ctx) |
Read Gyroscope Z-axis data function. | |
void | c6dofimu5_read_gyroscope (c6dofimu5_t *ctx, int16_t *gyro_x, int16_t *gyro_y, int16_t *gyro_z) |
Read gyroscope data function. | |
void | c6dofimu5_angular_rate (c6dofimu5_t *ctx, float *x_ang_rte, float *y_ang_rte, float *z_ang_rte) |
Read Angular Rate function. | |
int16_t | c6dofimu5_read_accel_x (c6dofimu5_t *ctx) |
Read Accelerometer X-axis data function. | |
int16_t | c6dofimu5_read_accel_y (c6dofimu5_t *ctx) |
Read Accelerometer Y-axis data function. | |
int16_t | c6dofimu5_read_accel_z (c6dofimu5_t *ctx) |
Read Accelerometer Z-axis data function. | |
void | c6dofimu5_read_accelerometer (c6dofimu5_t *ctx, int16_t *accel_x, int16_t *accel_y, int16_t *accel_z) |
Read accelerometer data function. | |
void | c6dofimu5_acceleration_rate (c6dofimu5_t *ctx, float *x_accel_rte, float *y_accel_rte, float *z_accel_rte) |
Read acceleration Rate function. | |
float | c6dofimu5_read_temp_out (c6dofimu5_t *ctx) |
Read temperture function. | |
void | c6dofimu5_baro_read (c6dofimu5_t *ctx, uint16_t cmd, uint8_t *data_out, uint16_t n_bytes) |
Barometer Read function. | |
void | c6dofimu5_baro_write (c6dofimu5_t *ctx, uint8_t *data_in, uint16_t n_bytes) |
Barometer Write function. | |
void | c6dofimu5_baro_settings (c6dofimu5_t *ctx) |
I2C Barometer Settings function. | |
uint8_t | c6dofimu5_baro_id_read (c6dofimu5_t *ctx) |
Barometer ID Readout function. | |
void | c6dofimu5_baro_soft_rst (c6dofimu5_t *ctx) |
Soft Reset Command function. | |
void | c6dofimu5_process_data (c6dofimu5_t *ctx, c6dofimu5_process_data_t *process_d) |
Process data function. | |
void | c6dofimu5_read_raw_data (c6dofimu5_t *ctx, uint32_t *pres, uint16_t *temp) |
Read raw data function. | |
uint8_t | c6dofimu5_check_int_pin (c6dofimu5_t *ctx) |
Check Interrupt state function. | |
void c6dofimu5_acceleration_rate | ( | c6dofimu5_t * | ctx, |
float * | x_accel_rte, | ||
float * | y_accel_rte, | ||
float * | z_accel_rte ) |
Read acceleration Rate function.
ctx | Click object. |
x_accel_rte | float X-axis acceleration rate. |
y_accel_rte | float Y-axis acceleration rate. |
z_accel_rte | float Z-axis acceleration rate. |
@description This function is used to calculate acceleration rate.
void c6dofimu5_angular_rate | ( | c6dofimu5_t * | ctx, |
float * | x_ang_rte, | ||
float * | y_ang_rte, | ||
float * | z_ang_rte ) |
Read Angular Rate function.
ctx | Click object. |
x_ang_rte | float X-axis angular rate. |
y_ang_rte | float Y-axis angular rate. |
z_ang_rte | float Z-axis angular rate. |
@description This function is used to calculate angular rate.
uint8_t c6dofimu5_baro_id_read | ( | c6dofimu5_t * | ctx | ) |
Barometer ID Readout function.
ctx | Click object. |
@description This function is used to read barometer ID number.
void c6dofimu5_baro_read | ( | c6dofimu5_t * | ctx, |
uint16_t | cmd, | ||
uint8_t * | data_out, | ||
uint16_t | n_bytes ) |
Barometer Read function.
ctx | Click object. |
cmd | 16-bit command. |
rd_data | 8-bit read data. |
n_bytes | 16-bit number of bytes. |
@description This function reads response to the command given by user.
void c6dofimu5_baro_settings | ( | c6dofimu5_t * | ctx | ) |
I2C Barometer Settings function.
ctx | Click object. |
@description This function is used to apply barometer settings.
void c6dofimu5_baro_soft_rst | ( | c6dofimu5_t * | ctx | ) |
Soft Reset Command function.
ctx | Click object. |
@description This function is used to perform soft rest.
void c6dofimu5_baro_write | ( | c6dofimu5_t * | ctx, |
uint8_t * | data_in, | ||
uint16_t | n_bytes ) |
Barometer Write function.
ctx | Click object. |
data_in | 8-bit write data. |
n_bytes | 16-bit number of bytes. |
@description This function writes user defined number of bytes.
void c6dofimu5_cfg_setup | ( | c6dofimu5_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t c6dofimu5_check_int_pin | ( | c6dofimu5_t * | ctx | ) |
Check Interrupt state function.
ctx | Click object. |
@description This function is used to check if an interrupt has occured.
void c6dofimu5_default_cfg | ( | c6dofimu5_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for C6DOF IMU 5 click.
C6DOFIMU5_RETVAL c6dofimu5_init | ( | c6dofimu5_t * | ctx, |
c6dofimu5_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.
void c6dofimu5_power | ( | c6dofimu5_t * | ctx, |
uint8_t | on_off ) |
Power up function.
ctx | Click object. |
on_off | Value defines power state of the device. |
@description This function turns the device on or off.
void c6dofimu5_process_data | ( | c6dofimu5_t * | ctx, |
c6dofimu5_process_data_t * | process_d ) |
Process data function.
ctx | Click object. |
process_d | Process data structure. |
@description This function processes raw data in order to get presure(in Pascals) and temperature(in degree Centigrade).
int16_t c6dofimu5_read_accel_x | ( | c6dofimu5_t * | ctx | ) |
Read Accelerometer X-axis data function.
ctx | Click object. |
@description This function is used to read accelerometer X-axis data.
int16_t c6dofimu5_read_accel_y | ( | c6dofimu5_t * | ctx | ) |
Read Accelerometer Y-axis data function.
ctx | Click object. |
@description This function is used to read accelerometer Y-axis data.
int16_t c6dofimu5_read_accel_z | ( | c6dofimu5_t * | ctx | ) |
Read Accelerometer Z-axis data function.
ctx | Click object. |
@description This function is used to read accelerometer Z-axis data.
void c6dofimu5_read_accelerometer | ( | c6dofimu5_t * | ctx, |
int16_t * | accel_x, | ||
int16_t * | accel_y, | ||
int16_t * | accel_z ) |
Read accelerometer data function.
ctx | Click object. |
accel_x | 16-bit accelerometer X-axis data. |
accel_y | 16-bit accelerometer Y-axis data. |
accel_z | 16-bit accelerometer Z-axis data. |
@description This function is used to read accelerometer data.
void c6dofimu5_read_bytes | ( | c6dofimu5_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | rd_data, | ||
uint16_t | n_bytes ) |
Generic read function.
ctx | Click object. |
reg | 8-bit register address. |
rd_data | 8-bit read data. |
n_bytes | 16-bit number of bytes. |
@description This function reads user defined number of bytes from registers defined by 8-bit register address.
int16_t c6dofimu5_read_gyro_x | ( | c6dofimu5_t * | ctx | ) |
Read Gyroscope X-axis data function.
ctx | Click object. |
@description This function is used to read gyroscope X-axis data.
int16_t c6dofimu5_read_gyro_y | ( | c6dofimu5_t * | ctx | ) |
Read Gyroscope Y-axis data function.
ctx | Click object. |
@description This function is used to read gyroscope Y-axis data.
int16_t c6dofimu5_read_gyro_z | ( | c6dofimu5_t * | ctx | ) |
Read Gyroscope Z-axis data function.
ctx | Click object. |
@description This function is used to read gyroscope Z-axis data.
void c6dofimu5_read_gyroscope | ( | c6dofimu5_t * | ctx, |
int16_t * | gyro_x, | ||
int16_t * | gyro_y, | ||
int16_t * | gyro_z ) |
Read gyroscope data function.
ctx | Click object. |
gyro_x | 16-bit gyroscope X-axis data. |
gyro_y | 16-bit gyroscope Y-axis data. |
gyro_z | 16-bit gyroscope Z-axis data. |
@description This function is used to read gyroscope data.
void c6dofimu5_read_raw_data | ( | c6dofimu5_t * | ctx, |
uint32_t * | pres, | ||
uint16_t * | temp ) |
Read raw data function.
ctx | Click object. |
pres | 32-bit raw pressure data. |
temp | 16-bit raw temperature data. |
@description This function is used to get raw temperature and pressure values.
float c6dofimu5_read_temp_out | ( | c6dofimu5_t * | ctx | ) |
Read temperture function.
ctx | Click object. |
@description This function is used to read temperture in degree Centigrade.
void c6dofimu5_write_bytes | ( | c6dofimu5_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | wr_data, | ||
uint16_t | n_bytes ) |
Generic write function.
ctx | Click object. |
reg | 8-bit register address. |
wr_data | 8-bit write data. |
n_bytes | 16-bit number of bytes. |
@description This function writes user defined number of bytes into registers defined by 8-bit register address.