c6dofimu7
2.0.0.0
|
Functions | |
void | c6dofimu7_cfg_setup (c6dofimu7_cfg_t *cfg) |
Config Object Initialization function. More... | |
C6DOFIMU7_RETVAL | c6dofimu7_init (c6dofimu7_t *ctx, c6dofimu7_cfg_t *cfg) |
Initialization function. More... | |
void | c6dofimu7_default_cfg (c6dofimu7_t *ctx) |
Click Default Configuration function. More... | |
void | c6dofimu7_generic_write (c6dofimu7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. More... | |
void | c6dofimu7_generic_read (c6dofimu7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. More... | |
int16_t | c6dofimu7_read_word (c6dofimu7_t *ctx, uint8_t address) |
Read word function. More... | |
float | c6dofimu7_get_temp_data (c6dofimu7_t *ctx, float temp_sensitivity, float temp_offset) |
Get temperature data function. More... | |
void | c6dofimu7_get_accel_data (c6dofimu7_t *ctx, c6dofimu7_axis_t *accel, float sensitivity) |
Get accelerometer data function. More... | |
void | c6dofimu7_get_gyro_data (c6dofimu7_t *ctx, c6dofimu7_axis_t *gyro, float sensitivity) |
Get gyroscope data function. More... | |
uint8_t | c6dofimu7_get_pwm_input (c6dofimu7_t *ctx) |
Get PWM input function. More... | |
uint8_t | c6dofimu7_get_int_input (c6dofimu7_t *ctx) |
Get INT input function. More... | |
void c6dofimu7_cfg_setup | ( | c6dofimu7_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes Click configuration structure to init state.
void c6dofimu7_default_cfg | ( | c6dofimu7_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for 6DofImu7 Click.
void c6dofimu7_generic_read | ( | c6dofimu7_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 c6dofimu7_generic_write | ( | c6dofimu7_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 c6dofimu7_get_accel_data | ( | c6dofimu7_t * | ctx, |
c6dofimu7_axis_t * | accel, | ||
float | sensitivity | ||
) |
Get accelerometer data function.
ctx | Click object. |
accel | Accelerometer axis structure. |
sensitivity | Accelerometer sensitivity value. |
@description This function reads accelerometer axis data and configures the accel axis struct.
void c6dofimu7_get_gyro_data | ( | c6dofimu7_t * | ctx, |
c6dofimu7_axis_t * | gyro, | ||
float | sensitivity | ||
) |
Get gyroscope data function.
ctx | Click object. |
gyro | Gyroscope axis structure. |
sensitivity | Gyroscope sensitivity value. |
@description This function reads gyroscope axis data and configures the gyro axis struct.
uint8_t c6dofimu7_get_int_input | ( | c6dofimu7_t * | ctx | ) |
Get INT input function.
ctx | Click object. |
@description This function reads input from the int pin.
uint8_t c6dofimu7_get_pwm_input | ( | c6dofimu7_t * | ctx | ) |
Get PWM input function.
ctx | Click object. |
@description This function reads input from the pwm pin.
float c6dofimu7_get_temp_data | ( | c6dofimu7_t * | ctx, |
float | temp_sensitivity, | ||
float | temp_offset | ||
) |
Get temperature data function.
ctx | Click object. |
temp_sensitivity | Temperature sensitivity value. |
temp_offset | Temperature offset value. |
@description This function reads and returns temperature data.
C6DOFIMU7_RETVAL c6dofimu7_init | ( | c6dofimu7_t * | ctx, |
c6dofimu7_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.
int16_t c6dofimu7_read_word | ( | c6dofimu7_t * | ctx, |
uint8_t | address | ||
) |
Read word function.
ctx | Click object. |
address | Register address. |
@description This function reads 2 bytes of data from the specified address.