c6dofimu12 2.0.0.0
|
Functions | |
void | c6dofimu12_cfg_setup (c6dofimu12_cfg_t *cfg) |
Config Object Initialization function. | |
C6DOFIMU12_RETVAL | c6dofimu12_init (c6dofimu12_t *ctx, c6dofimu12_cfg_t *cfg) |
Initialization function. | |
void | c6dofimu12_default_cfg (c6dofimu12_t *ctx) |
Click Default Configuration function. | |
void | c6dofimu12_generic_write (c6dofimu12_t *ctx, uint8_t reg, uint8_t *data_buf, uint16_t len) |
Generic write function. | |
void | c6dofimu12_generic_read (c6dofimu12_t *ctx, uint8_t reg, uint8_t *data_buf, uint16_t len) |
Generic read function. | |
C6DOFIMU12_RETVAL | c6dofimu12_check_id (c6dofimu12_t *ctx) |
Check ID function. | |
C6DOFIMU12_RETVAL | c6dofimu12_check_init_status (c6dofimu12_t *ctx) |
Check ID function. | |
void | c6dofimu12_get_data (c6dofimu12_t *ctx, c6dofimu12_accel_t *accel_data, c6dofimu12_gyro_t *gyro_data) |
Read Accel and Gyro data function. | |
C6DOFIMU12_RETVAL | c6dofimu12_check_int1 (c6dofimu12_t *ctx) |
Get interrupt 1 status function. | |
C6DOFIMU12_RETVAL | c6dofimu12_check_int2 (c6dofimu12_t *ctx) |
Get interrupt 2 status function. | |
void c6dofimu12_cfg_setup | ( | c6dofimu12_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
C6DOFIMU12_RETVAL c6dofimu12_check_id | ( | c6dofimu12_t * | ctx | ) |
Check ID function.
ctx | Click object. |
@description Function check status initialization of the device of BMI270 6-axis, smart, low-power Inertial Measurement on 6DOF IMU 12 Click board.
C6DOFIMU12_RETVAL c6dofimu12_check_init_status | ( | c6dofimu12_t * | ctx | ) |
Check ID function.
ctx | Click object. |
@description Function check status initialization of the device of BMI270 6-axis, smart, low-power Inertial Measurement on 6DOF IMU 12 Click board.
C6DOFIMU12_RETVAL c6dofimu12_check_int1 | ( | c6dofimu12_t * | ctx | ) |
Get interrupt 1 status function.
ctx | Click object. |
@description Function check interrupt 1 state by return state of the INT pin of 6DOF IMU 12 Click board.
C6DOFIMU12_RETVAL c6dofimu12_check_int2 | ( | c6dofimu12_t * | ctx | ) |
Get interrupt 2 status function.
ctx | Click object. |
@description Function check interrupt 2 state by return state of the INT pin of 6DOF IMU 12 Click board.
void c6dofimu12_default_cfg | ( | c6dofimu12_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for 6DOF IMU 12 click.
void c6dofimu12_generic_read | ( | c6dofimu12_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 c6dofimu12_generic_write | ( | c6dofimu12_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.
void c6dofimu12_get_data | ( | c6dofimu12_t * | ctx, |
c6dofimu12_accel_t * | accel_data, | ||
c6dofimu12_gyro_t * | gyro_data ) |
Read Accel and Gyro data function.
ctx | Click object. |
accel_data | Pointer to memory location where Accel data be stored |
gyro_data | Pointer to memory location where Gyro data be stored |
@description Function reads Accel and Gyro 16-bit ( signed ) X-axis, Y-axis data and Z-axis data from the 12 targeted starts from C6DOFIMU12_REG_ACC_X_LSB_ADDR register address of BMI270 6-axis, smart, low-power Inertial Measurement on 6DOF IMU 12 Click board.
C6DOFIMU12_RETVAL c6dofimu12_init | ( | c6dofimu12_t * | ctx, |
c6dofimu12_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.