c6dofimu15 2.0.0.0
|
Functions | |
void | c6dofimu15_cfg_setup (c6dofimu15_cfg_t *cfg) |
Config Object Initialization function. | |
C6DOFIMU15_RETVAL | c6dofimu15_init (c6dofimu15_t *ctx, c6dofimu15_cfg_t *cfg) |
Initialization function. | |
void | c6dofimu15_default_cfg (c6dofimu15_t *ctx) |
Click Default Configuration function. | |
void | c6dofimu15_generic_write (c6dofimu15_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | c6dofimu15_generic_read (c6dofimu15_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | c6dofimu15_check_int_pin (c6dofimu15_t *ctx) |
Check Interrupt state function. | |
int16_t | c6dofimu15_read_gyro_x (c6dofimu15_t *ctx) |
Read Gyroscope X-axis data function. | |
int16_t | c6dofimu15_read_gyro_y (c6dofimu15_t *ctx) |
Read Gyroscope Y-axis data function. | |
int16_t | c6dofimu15_read_gyro_z (c6dofimu15_t *ctx) |
Read Gyroscope Z-axis data function. | |
void | c6dofimu15_read_gyroscope (c6dofimu15_t *ctx, int16_t *gyro_x, int16_t *gyro_y, int16_t *gyro_z) |
Read gyroscope data function. | |
void | c6dofimu15_angular_rate (c6dofimu15_t *ctx, float *x_ang_rte, float *y_ang_rte, float *z_ang_rte) |
Read Angular Rate function. | |
int16_t | c6dofimu15_read_accel_x (c6dofimu15_t *ctx) |
Read Accelerometer X-axis data function. | |
int16_t | c6dofimu15_read_accel_y (c6dofimu15_t *ctx) |
Read Accelerometer Y-axis data function. | |
int16_t | c6dofimu15_read_accel_z (c6dofimu15_t *ctx) |
Read Accelerometer Z-axis data function. | |
void | c6dofimu15_read_accelerometer (c6dofimu15_t *ctx, int16_t *accel_x, int16_t *accel_y, int16_t *accel_z) |
Read accelerometer data function. | |
void | c6dofimu15_acceleration_rate (c6dofimu15_t *ctx, float *x_acel_rte, float *y_acel_rte, float *z_acel_rte) |
Read Acceleration Rate function. | |
float | c6dofimu15_read_temp_out (c6dofimu15_t *ctx) |
Read temperture function. | |
void | c6dofimu15_i2c_disable (c6dofimu15_t *ctx, uint8_t com_sel) |
Disable I2C block function. | |
void | c6dofimu15_device_conf_set (c6dofimu15_t *ctx, uint8_t dev_cfg) |
Enable the proper device configuration function. | |
void | c6dofimu15_auto_inc_set (c6dofimu15_t *ctx, uint8_t inc_set) |
Enable register address incrementation function. | |
void | c6dofimu15_sw_rst (c6dofimu15_t *ctx, uint8_t rst_en) |
Perform software reset function. | |
void | c6dofimu15_block_data_update_set (c6dofimu15_t *ctx, uint8_t blk_set) |
Block Data Update function. | |
void | c6dofimu15_fifo_mode_set (c6dofimu15_t *ctx, uint8_t fifo_set) |
Set FIFO Mode function. | |
void | c6dofimu15_accel_data_rate (c6dofimu15_t *ctx, uint8_t data_rate) |
Accelerometer data rate selection function. | |
void | c6dofimu15_accel_full_scale (c6dofimu15_t *ctx, uint8_t fs_sel) |
Accelerometer full-scale selection function. | |
void | c6dofimu15_gyro_data_rate (c6dofimu15_t *ctx, uint8_t data_rate) |
Gyroscope data rate selection function. | |
void | c6dofimu15_gyro_full_scale (c6dofimu15_t *ctx, uint8_t fs_sel) |
Gyroscope full-scale selection function. | |
uint8_t | c6dofimu15_accel_data_rdy (c6dofimu15_t *ctx) |
Accelerometer new data available function. | |
uint8_t | c6dofimu15_gyro_data_rdy (c6dofimu15_t *ctx) |
Gyroscope new data available function. | |
uint8_t | c6dofimu15_temp_data_rdy (c6dofimu15_t *ctx) |
Temperature new data available function. | |
uint8_t | c6dofimu15_who_im_i (c6dofimu15_t *ctx) |
Who Am I function. | |
void c6dofimu15_accel_data_rate | ( | c6dofimu15_t * | ctx, |
uint8_t | data_rate ) |
Accelerometer data rate selection function.
ctx | Click object. |
data_rate | desired accelerometer output data rate |
@description Function is used to set desired output data rate.
uint8_t c6dofimu15_accel_data_rdy | ( | c6dofimu15_t * | ctx | ) |
Accelerometer new data available function.
ctx | Click object. |
@description Function gets the accelerometer new data available flag.
void c6dofimu15_accel_full_scale | ( | c6dofimu15_t * | ctx, |
uint8_t | fs_sel ) |
Accelerometer full-scale selection function.
ctx | Click object. |
data_rate | desired accelerometer full-scale range |
@description Function is used to set desired full-scale range.
void c6dofimu15_acceleration_rate | ( | c6dofimu15_t * | ctx, |
float * | x_acel_rte, | ||
float * | y_acel_rte, | ||
float * | z_acel_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 in milligravities.
void c6dofimu15_angular_rate | ( | c6dofimu15_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 in milidegrees per second.
void c6dofimu15_auto_inc_set | ( | c6dofimu15_t * | ctx, |
uint8_t | inc_set ) |
Enable register address incrementation function.
ctx | Click object. |
inc_set | value enables or disables the property. |
@description Function is used to enable or disable automatical register address incrementation during a multiple byte access with a serial interface.
void c6dofimu15_block_data_update_set | ( | c6dofimu15_t * | ctx, |
uint8_t | blk_set ) |
Block Data Update function.
ctx | Click object. |
blk_set | value enables or disables the property. |
@description Function is used to enable or disable block data update.
void c6dofimu15_cfg_setup | ( | c6dofimu15_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t c6dofimu15_check_int_pin | ( | c6dofimu15_t * | ctx | ) |
Check Interrupt state function.
ctx | Click object. |
@description Function is used to check if an interrupt has occured.
void c6dofimu15_default_cfg | ( | c6dofimu15_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for 6DOF-IMU-15 click.
void c6dofimu15_device_conf_set | ( | c6dofimu15_t * | ctx, |
uint8_t | dev_cfg ) |
Enable the proper device configuration function.
ctx | Click object. |
dev_cfg | value enables or disables the property. |
@description Function enables the proper device configuration.
void c6dofimu15_fifo_mode_set | ( | c6dofimu15_t * | ctx, |
uint8_t | fifo_set ) |
Set FIFO Mode function.
ctx | Click object. |
fifo_set | desired FIFO mode |
@description Function is used to set FIFO mode.
void c6dofimu15_generic_read | ( | c6dofimu15_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 c6dofimu15_generic_write | ( | c6dofimu15_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 c6dofimu15_gyro_data_rate | ( | c6dofimu15_t * | ctx, |
uint8_t | data_rate ) |
Gyroscope data rate selection function.
ctx | Click object. |
data_rate | desired gyroscope output data rate |
@description Function is used to set desired output data rate.
uint8_t c6dofimu15_gyro_data_rdy | ( | c6dofimu15_t * | ctx | ) |
Gyroscope new data available function.
ctx | Click object. |
@description Function gets the gyroscope new data available flag.
void c6dofimu15_gyro_full_scale | ( | c6dofimu15_t * | ctx, |
uint8_t | fs_sel ) |
Gyroscope full-scale selection function.
ctx | Click object. |
data_rate | desired gyroscope full-scale range |
@description Function is used to set desired full-scale range.
void c6dofimu15_i2c_disable | ( | c6dofimu15_t * | ctx, |
uint8_t | com_sel ) |
Disable I2C block function.
ctx | Click object. |
com_sel | value enables or disables the property. |
@description Function is used to enable or disable I2C block.
C6DOFIMU15_RETVAL c6dofimu15_init | ( | c6dofimu15_t * | ctx, |
c6dofimu15_cfg_t * | cfg ) |
Initialization function.
c6dofimu15 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
int16_t c6dofimu15_read_accel_x | ( | c6dofimu15_t * | ctx | ) |
Read Accelerometer X-axis data function.
ctx | Click object. |
@description Function is used to read accelerometer X-axis data.
int16_t c6dofimu15_read_accel_y | ( | c6dofimu15_t * | ctx | ) |
Read Accelerometer Y-axis data function.
ctx | Click object. |
@description Function is used to read accelerometer Y-axis data.
int16_t c6dofimu15_read_accel_z | ( | c6dofimu15_t * | ctx | ) |
Read Accelerometer Z-axis data function.
ctx | Click object. |
@description Function is used to read accelerometer Z-axis data.
void c6dofimu15_read_accelerometer | ( | c6dofimu15_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 c6dofimu15_read_gyro_x | ( | c6dofimu15_t * | ctx | ) |
Read Gyroscope X-axis data function.
ctx | Click object. |
@description Function is used to read gyroscope X-axis data.
int16_t c6dofimu15_read_gyro_y | ( | c6dofimu15_t * | ctx | ) |
Read Gyroscope Y-axis data function.
ctx | Click object. |
@description Function is used to read gyroscope Y-axis data.
int16_t c6dofimu15_read_gyro_z | ( | c6dofimu15_t * | ctx | ) |
Read Gyroscope Z-axis data function.
ctx | Click object. |
@description Function is used to read gyroscope Z-axis data.
void c6dofimu15_read_gyroscope | ( | c6dofimu15_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 c6dofimu15_read_temp_out | ( | c6dofimu15_t * | ctx | ) |
Read temperture function.
ctx | Click object. |
@description Function is used to read temperture in degree Centigrade.
void c6dofimu15_sw_rst | ( | c6dofimu15_t * | ctx, |
uint8_t | rst_en ) |
Perform software reset function.
ctx | Click object. |
rst_en | value enables or disables the property. |
@description Function is used to perform software reset.
uint8_t c6dofimu15_temp_data_rdy | ( | c6dofimu15_t * | ctx | ) |
Temperature new data available function.
ctx | Click object. |
@description Function gets the temperature new data available flag.
uint8_t c6dofimu15_who_im_i | ( | c6dofimu15_t * | ctx | ) |
Who Am I function.
ctx | Click object. |
@description Function gets the fixed value that identifies the device.