c6dofimu10 2.0.0.0
|
Functions | |
void | c6dofimu10_cfg_setup (c6dofimu10_cfg_t *cfg) |
Config Object Initialization function. | |
c6DOFIMU10_RETVAL | c6dofimu10_init (c6dofimu10_t *ctx, c6dofimu10_cfg_t *cfg) |
Initialization function. | |
void | c6dofimu10_default_cfg (c6dofimu10_t *ctx) |
Click Default Configuration function. | |
void | c6dofimu10_generic_write (c6dofimu10_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | c6dofimu10_generic_read (c6dofimu10_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | c6dofimu10_measurement_cfg (c6dofimu10_t *ctx, c6dofimu10_cfg_t *cfg) |
Measurement config. | |
void | c6dofimu10_get_accel_axis (c6dofimu10_t *ctx, c6dofimu10_axis_t *axis) |
Accelerometer axis data. | |
void | c6dofimu10_get_mag_axis (c6dofimu10_t *ctx, c6dofimu10_axis_t *axis) |
Magnetometer axis data. | |
float | c6dofimu10_get_temperature (c6dofimu10_t *ctx, uint8_t temp_format) |
Temperature data. | |
uint8_t | c6dofimu10_communication_test (c6dofimu10_t *ctx) |
Communication test. | |
void | c6dofimu10_get_motion (c6dofimu10_t *ctx, uint8_t sensor_reg, c6dofimu10_motion_t *motion_obj) |
Get motion interrupt status. | |
uint8_t | c6dofimu10_get_interrupt (c6dofimu10_t *ctx, uint8_t int_pin) |
Get interrupt pin status. | |
void c6dofimu10_cfg_setup | ( | c6dofimu10_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t c6dofimu10_communication_test | ( | c6dofimu10_t * | ctx | ) |
Communication test.
ctx | Click object. |
@description This function test communication.
- C6DOFIMU10_DEVICE_OK - C6DOFIMU10_DEVICE_ERROR
void c6dofimu10_default_cfg | ( | c6dofimu10_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for c6DofImu10 click.
void c6dofimu10_generic_read | ( | c6dofimu10_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf. |
len | Number of the bytes to be read. |
@description This function reads data from the desired register.
void c6dofimu10_generic_write | ( | c6dofimu10_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write 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 writes data to the desired register.
void c6dofimu10_get_accel_axis | ( | c6dofimu10_t * | ctx, |
c6dofimu10_axis_t * | axis ) |
Accelerometer axis data.
ctx | Click object. |
axis | Measurement config structure. |
@description This function gets accelerometer axis data.
- X axis data - Y axis data - Z axis data
uint8_t c6dofimu10_get_interrupt | ( | c6dofimu10_t * | ctx, |
uint8_t | int_pin ) |
Get interrupt pin status.
ctx | Click object. |
int_pin | Sensor register. |
@description This function gets interrupt.
- C6DOFIMU10_GP1_INT_PIN - PWM pin - C6DOFIMU10_GP2_INT_PIN - RST pin
void c6dofimu10_get_mag_axis | ( | c6dofimu10_t * | ctx, |
c6dofimu10_axis_t * | axis ) |
Magnetometer axis data.
ctx | Click object. |
axis | Measurement config structure. |
@description This function gets magnetometer axis data.
- X axis data - Y axis data - Z axis data
void c6dofimu10_get_motion | ( | c6dofimu10_t * | ctx, |
uint8_t | sensor_reg, | ||
c6dofimu10_motion_t * | motion_obj ) |
Get motion interrupt status.
ctx | Click object. |
sensor_reg | Sensor register. |
motion_obj | Motion status object. |
@description This function gets motion.
- INS3 - Interrupt Source Register 3 - INS2 - Interrupt Source Register 2
float c6dofimu10_get_temperature | ( | c6dofimu10_t * | ctx, |
uint8_t | temp_format ) |
Temperature data.
ctx | Click object. |
temp_format | Temperature data format. |
@description This function gets temperature data.
- C6DOFIMU10_TEMP_FORMAT_FARENHAJT - C6DOFIMU10_TEMP_FORMAT_KELVIN - C6DOFIMU10_TEMP_FORMAT_CELSIUS
c6DOFIMU10_RETVAL c6dofimu10_init | ( | c6dofimu10_t * | ctx, |
c6dofimu10_cfg_t * | cfg ) |
Initialization function.
c6dofimu10 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void c6dofimu10_measurement_cfg | ( | c6dofimu10_t * | ctx, |
c6dofimu10_cfg_t * | cfg ) |
Measurement config.
ctx | Click object. |
cfg | Measurement config structure. |
@description This function sets measurement config.