c6dofimu6 2.0.0.0
|
Functions | |
void | c6dofimu6_cfg_setup (c6dofimu6_cfg_t *cfg) |
Config Object Initialization function. | |
C6DOFIMU6_RETVAL | c6dofimu6_init (c6dofimu6_t *ctx, c6dofimu6_cfg_t *cfg) |
Initialization function. | |
void | c6dofimu6_default_cfg (c6dofimu6_t *ctx) |
Click Default Configuration function. | |
void | c6dofimu6_generic_write (c6dofimu6_t *ctx, uint8_t reg, uint8_t *data_buf, uint16_t len) |
Generic write function. | |
void | c6dofimu6_generic_read (c6dofimu6_t *ctx, uint8_t reg, uint8_t *data_buf, uint16_t len) |
Generic read function. | |
void | c6dofimu6_power (c6dofimu6_t *ctx, uint8_t on_off) |
Power up function. | |
int16_t | c6dofimu6_read_gyro_x (c6dofimu6_t *ctx) |
Read Gyroscope X-axis data function. | |
int16_t | c6dofimu6_read_gyro_y (c6dofimu6_t *ctx) |
Read Gyroscope Y-axis data function. | |
int16_t | c6dofimu6_read_gyro_z (c6dofimu6_t *ctx) |
Read Gyroscope Z-axis data function. | |
void | c6dofimu6_read_gyroscope (c6dofimu6_t *ctx, int16_t *gyro_x, int16_t *gyro_y, int16_t *gyro_z) |
Read gyroscope data function. | |
void | c6dofimu6_angular_rate (c6dofimu6_t *ctx, float *x_ang_rte, float *y_ang_rte, float *z_ang_rte) |
Read Angular Rate function. | |
int16_t | c6dofimu6_read_accel_x (c6dofimu6_t *ctx) |
Read Accelerometer X-axis data function. | |
int16_t | c6dofimu6_read_accel_y (c6dofimu6_t *ctx) |
Read Accelerometer Y-axis data function. | |
int16_t | c6dofimu6_read_accel_z (c6dofimu6_t *ctx) |
Read Accelerometer Z-axis data function. | |
void | c6dofimu6_read_accelerometer (c6dofimu6_t *ctx, int16_t *accel_x, int16_t *accel_y, int16_t *accel_z) |
Read accelerometer data function. | |
void | c6dofimu6_acceleration_rate (c6dofimu6_t *ctx, float *x_accel_rte, float *y_accel_rte, float *z_accel_rte) |
Read acceleration Rate function. | |
float | c6dofimu6_read_temp_out (c6dofimu6_t *ctx) |
Read temperture function. | |
uint8_t | c6dofimu6_check_int_pin (c6dofimu6_t *ctx) |
Check Interrupt state function. | |
void c6dofimu6_acceleration_rate | ( | c6dofimu6_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 Function is used to calculate acceleration rate.
void c6dofimu6_angular_rate | ( | c6dofimu6_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 Function is used to calculate angular rate.
void c6dofimu6_cfg_setup | ( | c6dofimu6_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t c6dofimu6_check_int_pin | ( | c6dofimu6_t * | ctx | ) |
Check Interrupt state function.
ctx | Click object. |
@description Function is used to check if an interrupt has occured.
void c6dofimu6_default_cfg | ( | c6dofimu6_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for 6DOF IMU 6 click.
void c6dofimu6_generic_read | ( | c6dofimu6_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint16_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 c6dofimu6_generic_write | ( | c6dofimu6_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint16_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.
C6DOFIMU6_RETVAL c6dofimu6_init | ( | c6dofimu6_t * | ctx, |
c6dofimu6_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 c6dofimu6_power | ( | c6dofimu6_t * | ctx, |
uint8_t | on_off ) |
Power up function.
ctx | Click object. |
on_off | Value defines power state of the device |
@description Turns the device on or off.
int16_t c6dofimu6_read_accel_x | ( | c6dofimu6_t * | ctx | ) |
Read Accelerometer X-axis data function.
ctx | Click object. |
@description Function is used to read accelerometer X-axis data.
int16_t c6dofimu6_read_accel_y | ( | c6dofimu6_t * | ctx | ) |
Read Accelerometer Y-axis data function.
ctx | Click object. |
@description Function is used to read accelerometer Y-axis data.
int16_t c6dofimu6_read_accel_z | ( | c6dofimu6_t * | ctx | ) |
Read Accelerometer Z-axis data function.
ctx | Click object. |
@description Function is used to read accelerometer Z-axis data.
void c6dofimu6_read_accelerometer | ( | c6dofimu6_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 Function is used to read accelerometer data.
int16_t c6dofimu6_read_gyro_x | ( | c6dofimu6_t * | ctx | ) |
Read Gyroscope X-axis data function.
ctx | Click object. |
@description Function is used to read gyroscope X-axis data.
int16_t c6dofimu6_read_gyro_y | ( | c6dofimu6_t * | ctx | ) |
Read Gyroscope Y-axis data function.
ctx | Click object. |
@description Function is used to read gyroscope Y-axis data.
int16_t c6dofimu6_read_gyro_z | ( | c6dofimu6_t * | ctx | ) |
Read Gyroscope Z-axis data function.
ctx | Click object. |
@description Function is used to read gyroscope Z-axis data.
void c6dofimu6_read_gyroscope | ( | c6dofimu6_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 Function is used to read gyroscope data.
float c6dofimu6_read_temp_out | ( | c6dofimu6_t * | ctx | ) |
Read temperture function.
ctx | Click object. |
@description Function is used to read temperture in degree Centigrade.