c6dofimu9
2.0.0.0
|
Functions | |
void | c6dofimu9_cfg_setup (c6dofimu9_cfg_t *cfg) |
Config Object Initialization function. More... | |
C6DOFIMU9_RETVAL | c6dofimu9_init (c6dofimu9_t *ctx, c6dofimu9_cfg_t *cfg) |
Initialization function. More... | |
void | c6dofimu9_default_cfg (c6dofimu9_t *ctx) |
Click Default Configuration function. More... | |
void | c6dofimu9_generic_write (c6dofimu9_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. More... | |
void | c6dofimu9_generic_read (c6dofimu9_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. More... | |
uint8_t | c6dofimu9_check_interrupt (c6dofimu9_t *ctx) |
Check interrupt state function. More... | |
void | c6dofimu9_set_config (c6dofimu9_t *ctx, uint8_t config_data) |
Set configuration function. More... | |
void | c6dofimu9_set_gyro_config (c6dofimu9_t *ctx, uint8_t gyro_config_data) |
Set Gyro configuration function. More... | |
void | c6dofimu9_set_gyro_measurement_range (c6dofimu9_t *ctx, uint16_t gyro_full_scale_range) |
Set Gyro measurement range configuration function. More... | |
void | c6dofimu9_set_accel_config (c6dofimu9_t *ctx, uint16_t accel_config_data) |
Set Accel configuration function. More... | |
void | c6dofimu9_set_accel_measurement_range (c6dofimu9_t *ctx, uint8_t accel_full_scale_range) |
Set Accel measurement range configuration function. More... | |
void | c6dofimu9_set_accel_avg_filter_mode (c6dofimu9_t *ctx, uint8_t accel_avg_samples) |
Set Accel averaging filter settings for Low Power mode function. More... | |
void | c6dofimu9_set_gyro_config_lp_mode (c6dofimu9_t *ctx, uint8_t gyro_averages) |
Generic read function. More... | |
uint8_t | c6dofimu9_get_accel_wake_on_motion_trsh (c6dofimu9_t *ctx) |
Get Accel wake-on motion threshold function. More... | |
void | c6dofimu9_enable_fifo (c6dofimu9_t *ctx, uint8_t en_fifo_data) |
Enable FIFO configuration function. More... | |
void | c6dofimu9_enable_accel_interrupt (c6dofimu9_t *ctx) |
Enable Accel interrupt function. More... | |
void | c6dofimu9_enable_gyro_interrupt (c6dofimu9_t *ctx) |
Enable Gyro interrupt function. More... | |
void | c6dofimu9_enable_data_ready_interrupt (c6dofimu9_t *ctx) |
Enable data ready interrupt function. More... | |
uint8_t | c6dofimu9_get_interrupt_status (c6dofimu9_t *ctx) |
Get interrupt status function. More... | |
void | c6dofimu9_reset_accel_signal (c6dofimu9_t *ctx) |
Reset Accel signal path function. More... | |
void | c6dofimu9_reset_gyro_signal (c6dofimu9_t *ctx) |
Reset Gyro signal path function. More... | |
void | c6dofimu9_enable_accel_wake_on_motion (c6dofimu9_t *ctx) |
Enable the Wake-on-Motion detection function. More... | |
void | c6dofimu9_reset_default (c6dofimu9_t *ctx) |
Reset the internal registers and restores the default settings function. More... | |
void | c6dofimu9_set_sleep_mode (c6dofimu9_t *ctx) |
Set the device to sleep mode function. More... | |
void | c6dofimu9_set_standby_mode (c6dofimu9_t *ctx) |
Set the device to standby mode function. More... | |
uint8_t | c6dofimu9_get_device_id (c6dofimu9_t *ctx) |
Get device ID function. More... | |
int16_t | c6dofimu9_get_axis (c6dofimu9_t *ctx, uint8_t addr_reg_msb, uint8_t addr_reg_lsb) |
Get axis data function. More... | |
void | c6dofimu9_get_accel_data (c6dofimu9_t *ctx, int16_t *p_accel_x, int16_t *p_accel_y, int16_t *p_accel_z) |
Read Accel X-axis, Y-axis and Z-axis axis function. More... | |
void | c6dofimu9_get_gyro_data (c6dofimu9_t *ctx, int16_t *p_gyro_x, int16_t *p_gyro_y, int16_t *p_gyro_z) |
Read Gyro X-axis, Y-axis and Z-axis axis function. More... | |
void c6dofimu9_cfg_setup | ( | c6dofimu9_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t c6dofimu9_check_interrupt | ( | c6dofimu9_t * | ctx | ) |
Check interrupt state function.
ctx | Click object. |
void c6dofimu9_default_cfg | ( | c6dofimu9_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for 6DOF IMU 9 click.
void c6dofimu9_enable_accel_interrupt | ( | c6dofimu9_t * | ctx | ) |
Enable Accel interrupt function.
ctx | Click object. |
@description Function enable Accel interrupt of IAM-20680 High Performance Automotive 6-Axis MotionTracking Device on 6DOF IMU 9 Click board.
void c6dofimu9_enable_accel_wake_on_motion | ( | c6dofimu9_t * | ctx | ) |
Enable the Wake-on-Motion detection function.
ctx | Click object. |
@description Function enable the Wake-on-Motion detection of IAM-20680 High Performance Automotive 6-Axis MotionTracking Device on 6DOF IMU 9 Click board.
void c6dofimu9_enable_data_ready_interrupt | ( | c6dofimu9_t * | ctx | ) |
Enable data ready interrupt function.
ctx | Click object. |
@description Function enable data ready interrupt of IAM-20680 High Performance Automotive 6-Axis MotionTracking Device on 6DOF IMU 9 Click board.
void c6dofimu9_enable_fifo | ( | c6dofimu9_t * | ctx, |
uint8_t | en_fifo_data | ||
) |
Enable FIFO configuration function.
ctx | Click object. |
en_fifo_data |
void c6dofimu9_enable_gyro_interrupt | ( | c6dofimu9_t * | ctx | ) |
Enable Gyro interrupt function.
ctx | Click object. |
@description Function enable Gyro interrupt of IAM-20680 High Performance Automotive 6-Axis MotionTracking Device on 6DOF IMU 9 Click board.
void c6dofimu9_generic_read | ( | c6dofimu9_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 c6dofimu9_generic_write | ( | c6dofimu9_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 c6dofimu9_get_accel_data | ( | c6dofimu9_t * | ctx, |
int16_t * | p_accel_x, | ||
int16_t * | p_accel_y, | ||
int16_t * | p_accel_z | ||
) |
Read Accel X-axis, Y-axis and Z-axis axis function.
ctx | Click object. |
p_accel_x | pointer to memory location where Accel X-axis data be stored |
p_accel_y | pointer to memory location where Accel Y-axis data be stored |
p_accel_z | pointer to memory location where Accel Z-axis data be stored |
@description Function reads 16-bit ( signed ) Accel X-axis, Y-axis data and Z-axis data from the targeted starts from C6DOFIMU9_REG_ACCEL_XOUT_H to the C6DOFIMU9_REG_ACCEL_ZOUT_L register address of IAM-20680 High Performance Automotive 6-Axis MotionTracking Device on 6DOF IMU 9 Click board.
uint8_t c6dofimu9_get_accel_wake_on_motion_trsh | ( | c6dofimu9_t * | ctx | ) |
Get Accel wake-on motion threshold function.
ctx | Click object. |
@description Function get Accel wake-on motion threshold data from the targeted C6DOFIMU9_REG_ACCEL_WOM_THR register address of IAM-20680 High Performance Automotive 6-Axis MotionTracking Device on 6DOF IMU 9 Click board.
int16_t c6dofimu9_get_axis | ( | c6dofimu9_t * | ctx, |
uint8_t | addr_reg_msb, | ||
uint8_t | addr_reg_lsb | ||
) |
Get axis data function.
ctx | Click object. |
addr_reg_msb | least significant bit register address |
addr_reg_lsb | most significant bit register address |
@description Function get axis data by read data from the two targeted register address of IAM-20680 High Performance Automotive 6-Axis MotionTracking Device on 6DOF IMU 9 Click board.
uint8_t c6dofimu9_get_device_id | ( | c6dofimu9_t * | ctx | ) |
Get device ID function.
ctx | Click object. |
void c6dofimu9_get_gyro_data | ( | c6dofimu9_t * | ctx, |
int16_t * | p_gyro_x, | ||
int16_t * | p_gyro_y, | ||
int16_t * | p_gyro_z | ||
) |
Read Gyro X-axis, Y-axis and Z-axis axis function.
ctx | Click object. |
p_gyro_x | pointer to memory location where Accel X-axis data be stored |
p_gyro_y | pointer to memory location where Accel Y-axis data be stored |
p_gyro_z | pointer to memory location where Accel Z-axis data be stored |
@description Function reads 16-bit ( signed ) Gyro X-axis, Y-axis data and Z-axis data from the targeted starts from C6DOFIMU9_REG_GYRO_XOUT_H to the C6DOFIMU9_REG_GYRO_ZOUT_L register address of IAM-20680 High Performance Automotive 6-Axis MotionTracking Device on 6DOF IMU 9 Click board.
uint8_t c6dofimu9_get_interrupt_status | ( | c6dofimu9_t * | ctx | ) |
Get interrupt status function.
ctx | Click object. |
@description Function Get interrupt status of the targeted C6DOFIMU9_REG_INT_STATUS register address of IAM-20680 High Performance Automotive 6-Axis MotionTracking Device on 6DOF IMU 9 Click board.
C6DOFIMU9_RETVAL c6dofimu9_init | ( | c6dofimu9_t * | ctx, |
c6dofimu9_cfg_t * | cfg | ||
) |
Initialization function.
c6dofimu9 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void c6dofimu9_reset_accel_signal | ( | c6dofimu9_t * | ctx | ) |
Reset Accel signal path function.
ctx | Click object. |
@description Function reset Accel signal path of IAM-20680 High Performance Automotive 6-Axis MotionTracking Device on 6DOF IMU 9 Click board.
void c6dofimu9_reset_default | ( | c6dofimu9_t * | ctx | ) |
Reset the internal registers and restores the default settings function.
ctx | Click object. |
@description Function reset the internal registers and restores the default settings of IAM-20680 High Performance Automotive 6-Axis MotionTracking Device on 6DOF IMU 9 Click board.
void c6dofimu9_reset_gyro_signal | ( | c6dofimu9_t * | ctx | ) |
Reset Gyro signal path function.
ctx | Click object. |
@description Function reset Gyro signal path of IAM-20680 High Performance Automotive 6-Axis MotionTracking Device on 6DOF IMU 9 Click board.
void c6dofimu9_set_accel_avg_filter_mode | ( | c6dofimu9_t * | ctx, |
uint8_t | accel_avg_samples | ||
) |
Set Accel averaging filter settings for Low Power mode function.
ctx | Click object. |
accel_avg_samples | Register address. |
void c6dofimu9_set_accel_config | ( | c6dofimu9_t * | ctx, |
uint16_t | accel_config_data | ||
) |
Set Accel configuration function.
ctx | Click object. |
accel_config_data |
@description Function set Accel configuration data to the targeted C6DOFIMU9_REG_ACCEL_CONFIG and C6DOFIMU9_REG_ACCEL_CONFIG_2 register address of IAM-20680 High Performance Automotive 6-Axis MotionTracking Device on 6DOF IMU 9 Click board.
void c6dofimu9_set_accel_measurement_range | ( | c6dofimu9_t * | ctx, |
uint8_t | accel_full_scale_range | ||
) |
Set Accel measurement range configuration function.
ctx | Click object. |
accel_full_scale_range |
void c6dofimu9_set_config | ( | c6dofimu9_t * | ctx, |
uint8_t | config_data | ||
) |
Set configuration function.
ctx | Click object. |
config_data | Register address. |
@description Function set configuration data to the targeted C6DOFIMU9_REG_CONFIG register address of IAM-20680 High Performance Automotive 6-Axis MotionTracking Device on 6DOF IMU 9 Click board.
void c6dofimu9_set_gyro_config | ( | c6dofimu9_t * | ctx, |
uint8_t | gyro_config_data | ||
) |
Set Gyro configuration function.
ctx | Click object. |
gyro_config_data |
@description Function set Gyro configuration data to the targeted C6DOFIMU9_REG_GYRO_CONFIG register address of IAM-20680 High Performance Automotive 6-Axis MotionTracking Device on 6DOF IMU 9 Click board.
void c6dofimu9_set_gyro_config_lp_mode | ( | c6dofimu9_t * | ctx, |
uint8_t | gyro_averages | ||
) |
Generic read function.
ctx | Click object. |
gyro_averages | Register address. |
@description Function set Gyro Low-Power mode configuration data to the targeted C6DOFIMU9_REG_LP_MODE_CFG register address of IAM-20680 High Performance Automotive 6-Axis MotionTracking Device on 6DOF IMU 9 Click board.
void c6dofimu9_set_gyro_measurement_range | ( | c6dofimu9_t * | ctx, |
uint16_t | gyro_full_scale_range | ||
) |
Set Gyro measurement range configuration function.
ctx | Click object. |
gyro_full_scale_range |
@description Function set Gyro configuration data to the targeted C6DOFIMU9_REG_GYRO_CONFIG register address of IAM-20680 High Performance Automotive 6-Axis MotionTracking Device on 6DOF IMU 9 Click board.
void c6dofimu9_set_sleep_mode | ( | c6dofimu9_t * | ctx | ) |
Set the device to sleep mode function.
ctx | Click object. |
@description Function set the device to sleep mode of IAM-20680 High Performance Automotive 6-Axis MotionTracking Device on 6DOF IMU 9 Click board.
void c6dofimu9_set_standby_mode | ( | c6dofimu9_t * | ctx | ) |
Set the device to standby mode function.
ctx | Click object. |
@description Function set the device to standby mode of IAM-20680 High Performance Automotive 6-Axis MotionTracking Device on 6DOF IMU 9 Click board.