c6dofimu 2.0.0.0
|
Functions | |
void | c6dofimu_cfg_setup (c6dofimu_cfg_t *cfg) |
Config Object Initialization function. | |
C6DOFIMU_RETVAL | c6dofimu_init (c6dofimu_t *ctx, c6dofimu_cfg_t *cfg) |
Initialization function. | |
void | c6dofimu_default_cfg (c6dofimu_t *ctx) |
Click Default Configuration function. | |
void | c6dofimu_generic_write (c6dofimu_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | c6dofimu_generic_read (c6dofimu_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | c6dofimu_read_axis_data (c6dofimu_t *ctx, uint8_t read_mode) |
Read axis data function. | |
float | c6dofimu_read_temperature (c6dofimu_t *ctx) |
Read temperature data function. | |
uint8_t | c6dofimu_digital_read_int (c6dofimu_t *ctx) |
Digital read interrupt function. | |
void c6dofimu_cfg_setup | ( | c6dofimu_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void c6dofimu_default_cfg | ( | c6dofimu_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for 6DOF IMU click.
uint8_t c6dofimu_digital_read_int | ( | c6dofimu_t * | ctx | ) |
Digital read interrupt function.
ctx | Click object. |
@description This function reads the digital signal from the INT pin.
void c6dofimu_generic_read | ( | c6dofimu_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 c6dofimu_generic_write | ( | c6dofimu_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.
C6DOFIMU_RETVAL c6dofimu_init | ( | c6dofimu_t * | ctx, |
c6dofimu_cfg_t * | cfg ) |
Initialization function.
c6dofimu | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void c6dofimu_read_axis_data | ( | c6dofimu_t * | ctx, |
uint8_t | read_mode ) |
Read axis data function.
ctx | Click object. |
read_mode | Read mode: { Accelerometer | Gyroscope }. |
@description This function reads axis data for the gyroscope or the accelerometer from predefined data register addresses.
float c6dofimu_read_temperature | ( | c6dofimu_t * | ctx | ) |
Read temperature data function.
ctx | Click object. |
@description This function reads temperature data from predefined data registers.