c6dofimu17
2.0.0.0
|
API for configuring and manipulating 6DOF IMU 17 Click driver. More...
Modules | |
6DOF IMU 17 Registers List | |
List of registers of 6DOF IMU 17 Click driver. | |
6DOF IMU 17 Registers Settings | |
Settings for registers of 6DOF IMU 17 Click driver. | |
6DOF IMU 17 MikroBUS Map | |
MikroBUS pin mapping of 6DOF IMU 17 Click driver. | |
Functions | |
void | c6dofimu17_cfg_setup (c6dofimu17_cfg_t *cfg) |
6DOF IMU 17 configuration object setup function. More... | |
void | c6dofimu17_drv_interface_selection (c6dofimu17_cfg_t *cfg, c6dofimu17_drv_t drv_sel) |
6DOF IMU 17 driver interface setup function. More... | |
err_t | c6dofimu17_init (c6dofimu17_t *ctx, c6dofimu17_cfg_t *cfg) |
6DOF IMU 17 initialization function. More... | |
err_t | c6dofimu17_default_cfg (c6dofimu17_t *ctx) |
6DOF IMU 17 default configuration function. More... | |
err_t | c6dofimu17_generic_write (c6dofimu17_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
6DOF IMU 17 data writing function. More... | |
err_t | c6dofimu17_generic_read (c6dofimu17_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
6DOF IMU 17 data reading function. More... | |
err_t | c6dofimu17_bank_selection (c6dofimu17_t *ctx, uint8_t bank_sel) |
6DOF IMU 17 bank selection function. More... | |
uint8_t | c6dofimu17_get_interrupt (c6dofimu17_t *ctx) |
6DOF IMU 17 get interrupt function. More... | |
err_t | c6dofimu17_get_device_id (c6dofimu17_t *ctx, uint8_t *device_id) |
6DOF IMU 17 get device ID function. More... | |
err_t | c6dofimu17_temperature_enable (c6dofimu17_t *ctx) |
6DOF IMU 17 temperature enable function. More... | |
err_t | c6dofimu17_gyroscope_enable (c6dofimu17_t *ctx) |
6DOF IMU 17 gyroscope enable function. More... | |
err_t | c6dofimu17_accelerometer_enable (c6dofimu17_t *ctx) |
6DOF IMU 17 accelerometer enable function. More... | |
err_t | c6dofimu17_set_config_gyroscope (c6dofimu17_t *ctx, c6dofimu17_gyro_cfg_t gyro_cfg) |
6DOF IMU 17 set config gyroscope function. More... | |
err_t | c6dofimu17_get_config_gyroscope (c6dofimu17_t *ctx, c6dofimu17_gyro_cfg_t *gyro_cfg) |
6DOF IMU 17 get config gyroscope function. More... | |
err_t | c6dofimu17_set_config_accelerometer (c6dofimu17_t *ctx, c6dofimu17_accel_cfg_t accel_cfg) |
6DOF IMU 17 set config accelerometer function. More... | |
err_t | c6dofimu17_get_config_accelerometer (c6dofimu17_t *ctx, c6dofimu17_accel_cfg_t *accel_cfg) |
6DOF IMU 17 get config accelerometer function. More... | |
err_t | c6dofimu17_soft_reset (c6dofimu17_t *ctx) |
6DOF IMU 17 soft reset function. More... | |
err_t | c6dofimu17_get_accel_data (c6dofimu17_t *ctx, c6dofimu17_axis_t *accel_data) |
6DOF IMU 17 get accel data function. More... | |
err_t | c6dofimu17_get_gyro_data (c6dofimu17_t *ctx, c6dofimu17_axis_t *gyro_data) |
6DOF IMU 17 get gyroscope data function. More... | |
err_t | c6dofimu17_get_temperature (c6dofimu17_t *ctx, float *temperature) |
6DOF IMU 17 get temperature data function. More... | |
API for configuring and manipulating 6DOF IMU 17 Click driver.
err_t c6dofimu17_accelerometer_enable | ( | c6dofimu17_t * | ctx | ) |
6DOF IMU 17 accelerometer enable function.
This function enable accelerometer data of the IIM-42652 High-performance 6-Axis SmartIndustrial™ MotionTracking MEMS Device on the 6DOF IMU 17 click board™.
[in] | ctx | : Click context object. See c6dofimu17_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t c6dofimu17_bank_selection | ( | c6dofimu17_t * | ctx, |
uint8_t | bank_sel | ||
) |
6DOF IMU 17 bank selection function.
This function accessible from all register bank of the IIM-42652 High-performance 6-Axis SmartIndustrial™ MotionTracking MEMS Device on the 6DOF IMU 17 click board™.
[in] | ctx | : Click context object. See c6dofimu17_t object definition for detailed explanation. |
[in] | bank_sel | :
|
0
- Success, -1
- Error.void c6dofimu17_cfg_setup | ( | c6dofimu17_cfg_t * | cfg | ) |
6DOF IMU 17 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See c6dofimu17_cfg_t object definition for detailed explanation. |
err_t c6dofimu17_default_cfg | ( | c6dofimu17_t * | ctx | ) |
6DOF IMU 17 default configuration function.
This function executes a default configuration of 6DOF IMU 17 click board.
[in] | ctx | : Click context object. See c6dofimu17_t object definition for detailed explanation. |
0
- Success, -1
- Error.void c6dofimu17_drv_interface_selection | ( | c6dofimu17_cfg_t * | cfg, |
c6dofimu17_drv_t | drv_sel | ||
) |
6DOF IMU 17 driver interface setup function.
This function sets a serial driver interface which will be used further in the click driver.
[out] | cfg | : Click configuration structure. See c6dofimu17_cfg_t object definition for detailed explanation. |
[in] | drv_sel | : Driver interface selection. See c6dofimu17_drv_t object definition for detailed explanation. |
err_t c6dofimu17_generic_read | ( | c6dofimu17_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_out, | ||
uint8_t | len | ||
) |
6DOF IMU 17 data reading function.
This function reads a desired number of data bytes starting from the selected register.
[in] | ctx | : Click context object. See c6dofimu17_t object definition for detailed explanation. |
[in] | reg | : Start register address. |
[out] | data_out | : Output read data. |
[in] | len | : Number of bytes to be read. |
0
- Success, -1
- Error.err_t c6dofimu17_generic_write | ( | c6dofimu17_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_in, | ||
uint8_t | len | ||
) |
6DOF IMU 17 data writing function.
This function writes a desired number of data bytes starting from the selected register.
[in] | ctx | : Click context object. See c6dofimu17_t object definition for detailed explanation. |
[in] | reg | : Start register address. |
[in] | data_in | : Data to be written. |
[in] | len | : Number of bytes to be written. |
0
- Success, -1
- Error.err_t c6dofimu17_get_accel_data | ( | c6dofimu17_t * | ctx, |
c6dofimu17_axis_t * | accel_data | ||
) |
6DOF IMU 17 get accel data function.
This function get accelerometer data of the IIM-42652 High-performance 6-Axis SmartIndustrial™ MotionTracking MEMS Device on the 6DOF IMU 17 click board™.
[in] | ctx | : Click context object. See c6dofimu17_t object definition for detailed explanation. |
[out] | accel_data | : An object that contains X , Y and Z axis data. |
0
- Success, -1
- Error.err_t c6dofimu17_get_config_accelerometer | ( | c6dofimu17_t * | ctx, |
c6dofimu17_accel_cfg_t * | accel_cfg | ||
) |
6DOF IMU 17 get config accelerometer function.
This function get accelerometer configuration of the IIM-42652 High-performance 6-Axis SmartIndustrial™ MotionTracking MEMS Device on the 6DOF IMU 17 click board™.
[in] | ctx | : Click context object. See c6dofimu17_t object definition for detailed explanation. |
[out] | accel_cfg | : Gyro configuration structure object. |
0
- Success, -1
- Error.err_t c6dofimu17_get_config_gyroscope | ( | c6dofimu17_t * | ctx, |
c6dofimu17_gyro_cfg_t * | gyro_cfg | ||
) |
6DOF IMU 17 get config gyroscope function.
This function get gyroscope configuration of the IIM-42652 High-performance 6-Axis SmartIndustrial™ MotionTracking MEMS Device on the 6DOF IMU 17 click board™.
[in] | ctx | : Click context object. See c6dofimu17_t object definition for detailed explanation. |
[out] | gyro_cfg | : Gyro configuration structure object. |
0
- Success, -1
- Error.err_t c6dofimu17_get_device_id | ( | c6dofimu17_t * | ctx, |
uint8_t * | device_id | ||
) |
6DOF IMU 17 get device ID function.
This function get device ID of the IIM-42652 High-performance 6-Axis SmartIndustrial™ MotionTracking MEMS Device on the 6DOF IMU 17 click board™.
[in] | ctx | : Click context object. See c6dofimu17_t object definition for detailed explanation. |
[out] | device_id | : device ID |
0
- Success, -1
- Error.err_t c6dofimu17_get_gyro_data | ( | c6dofimu17_t * | ctx, |
c6dofimu17_axis_t * | gyro_data | ||
) |
6DOF IMU 17 get gyroscope data function.
This function get gyroscope data of the IIM-42652 High-performance 6-Axis SmartIndustrial™ MotionTracking MEMS Device on the 6DOF IMU 17 click board™.
[in] | ctx | : Click context object. See c6dofimu17_t object definition for detailed explanation. |
[out] | gyro_data | : Gyroscope configuration structure object. |
0
- Success, -1
- Error.uint8_t c6dofimu17_get_interrupt | ( | c6dofimu17_t * | ctx | ) |
6DOF IMU 17 get interrupt function.
This function get states of the INT pin of the IIM-42652 High-performance 6-Axis SmartIndustrial™ MotionTracking MEMS Device on the 6DOF IMU 17 click board™.
[in] | ctx | : Click context object. See c6dofimu17_t object definition for detailed explanation. |
err_t c6dofimu17_get_temperature | ( | c6dofimu17_t * | ctx, |
float * | temperature | ||
) |
6DOF IMU 17 get temperature data function.
This function get temperature data of the IIM-42652 High-performance 6-Axis SmartIndustrial™ MotionTracking MEMS Device on the 6DOF IMU 17 click board™.
[in] | ctx | : Click context object. See c6dofimu17_t object definition for detailed explanation. |
[out] | temperature | : Temperature in degrees Celsius |
0
- Success, -1
- Error.err_t c6dofimu17_gyroscope_enable | ( | c6dofimu17_t * | ctx | ) |
6DOF IMU 17 gyroscope enable function.
This function enable gyroscope data of the IIM-42652 High-performance 6-Axis SmartIndustrial™ MotionTracking MEMS Device on the 6DOF IMU 17 click board™.
[in] | ctx | : Click context object. See c6dofimu17_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t c6dofimu17_init | ( | c6dofimu17_t * | ctx, |
c6dofimu17_cfg_t * | cfg | ||
) |
6DOF IMU 17 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See c6dofimu17_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See c6dofimu17_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t c6dofimu17_set_config_accelerometer | ( | c6dofimu17_t * | ctx, |
c6dofimu17_accel_cfg_t | accel_cfg | ||
) |
6DOF IMU 17 set config accelerometer function.
This function set accelerometer configuration of the IIM-42652 High-performance 6-Axis SmartIndustrial™ MotionTracking MEMS Device on the 6DOF IMU 17 click board™.
[in] | ctx | : Click context object. See c6dofimu17_t object definition for detailed explanation. |
[in] | accel_cfg | : Gyro configuration structure object. |
0
- Success, -1
- Error.err_t c6dofimu17_set_config_gyroscope | ( | c6dofimu17_t * | ctx, |
c6dofimu17_gyro_cfg_t | gyro_cfg | ||
) |
6DOF IMU 17 set config gyroscope function.
This function set gyroscope configuration of the IIM-42652 High-performance 6-Axis SmartIndustrial™ MotionTracking MEMS Device on the 6DOF IMU 17 click board™.
[in] | ctx | : Click context object. See c6dofimu17_t object definition for detailed explanation. |
[in] | gyro_cfg | : Gyro configuration structure object. |
0
- Success, -1
- Error.err_t c6dofimu17_soft_reset | ( | c6dofimu17_t * | ctx | ) |
6DOF IMU 17 soft reset function.
This function performs a software reset
of the IIM-42652 High-performance 6-Axis SmartIndustrial™ MotionTracking MEMS Device on the 6DOF IMU 17 click board™.
[in] | ctx | : Click context object. See c6dofimu17_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t c6dofimu17_temperature_enable | ( | c6dofimu17_t * | ctx | ) |
6DOF IMU 17 temperature enable function.
This function enable temperature data of the IIM-42652 High-performance 6-Axis SmartIndustrial™ MotionTracking MEMS Device on the 6DOF IMU 17 click board™.
[in] | ctx | : Click context object. See c6dofimu17_t object definition for detailed explanation. |
0
- Success, -1
- Error.