c6dofimu11 2.0.0.0
|
Functions | |
void | c6dofimu11_cfg_setup (c6dofimu11_cfg_t *cfg) |
Config Object Initialization function. | |
C6DOFIMU11_RETVAL | c6dofimu11_init (c6dofimu11_t *ctx, c6dofimu11_cfg_t *cfg) |
Initialization function. | |
void | c6dofimu11_default_cfg (c6dofimu11_t *ctx) |
Click Default Configuration function. | |
void | c6dofimu11_generic_write (c6dofimu11_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | c6dofimu11_generic_read (c6dofimu11_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | c6dofimu11_write_byte (c6dofimu11_t *ctx, uint8_t reg_address, uint8_t write_data) |
This function write byte. | |
uint8_t | c6dofimu11_read_byte (c6dofimu11_t *ctx, uint8_t reg_address) |
This function read byte. | |
void | c6dofimu11_write_multiple_bytes (c6dofimu11_t *ctx, uint8_t reg_address, uint8_t *p_write_data, uint8_t n_bytes) |
This function write multiple bytes. | |
void | c6dofimu11_read_multiple_bytes (c6dofimu11_t *ctx, uint8_t reg_address, uint8_t *p_read_data, uint8_t n_bytes) |
This function read multiple bytes. | |
uint8_t | c6dofimu11_check_id (c6dofimu11_t *ctx) |
This function check id. | |
void | c6dofimu11_disable_sensor (c6dofimu11_t *ctx) |
Disable sensor. | |
void | c6dofimu11_enable_sensor (c6dofimu11_t *ctx, uint8_t en_accel, uint8_t en_mag, uint8_t en_temp) |
Enable sensor. | |
void | c6dofimu11_config_accel (c6dofimu11_t *ctx, uint8_t data_rate, uint8_t data_range, uint8_t data_resolution) |
Configuration accel. | |
void | c6dofimu11_config_mag (c6dofimu11_t *ctx, uint8_t data_rate, uint8_t data_resolution) |
Configuration map. | |
int16_t | c6dofimu11_get_axis (c6dofimu11_t *ctx, uint8_t reg_add_lsb) |
Get axis. | |
void | c6dofimu11_get_accel_data (c6dofimu11_t *ctx, int16_t *accel_x, int16_t *accel_y, int16_t *accel_z) |
Get accel data. | |
void | c6dofimu11_get_mag_data (c6dofimu11_t *ctx, int16_t *mag_x, int16_t *mag_y, int16_t *mag_z) |
Get map data. | |
void | c6dofimu11_read_accel (c6dofimu11_t *ctx, c6dofimu11_accel_t *accel_data) |
Read accel. | |
void | c6dofimu11_read_mag (c6dofimu11_t *ctx, c6dofimu11_mag_t *mag_data) |
Read mag. | |
void | c6dofimu11_enable_temperature_data (c6dofimu11_t *ctx) |
Enable temperature data. | |
float | c6dofimu11_get_temperature (c6dofimu11_t *ctx) |
Get temperature. | |
uint8_t | c6dofimu11_get_interrupt (c6dofimu11_t *ctx) |
Get interrupt. | |
void c6dofimu11_cfg_setup | ( | c6dofimu11_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t c6dofimu11_check_id | ( | c6dofimu11_t * | ctx | ) |
This function check id.
ctx | Click object. |
@description This function chek id.
void c6dofimu11_config_accel | ( | c6dofimu11_t * | ctx, |
uint8_t | data_rate, | ||
uint8_t | data_range, | ||
uint8_t | data_resolution ) |
Configuration accel.
ctx | Click object. |
data_rate | Data rate. |
data_range | Data range. |
data_resolution | Data resolution |
@description This function configuration accel.
void c6dofimu11_config_mag | ( | c6dofimu11_t * | ctx, |
uint8_t | data_rate, | ||
uint8_t | data_resolution ) |
Configuration map.
ctx | Click object. |
data_range | Data range. |
data_resolution | Data resolution |
@description This function configuration map.
void c6dofimu11_default_cfg | ( | c6dofimu11_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for 6DofImu11 click.
void c6dofimu11_disable_sensor | ( | c6dofimu11_t * | ctx | ) |
Disable sensor.
ctx | Click object. |
@description This function disable sensor.
void c6dofimu11_enable_sensor | ( | c6dofimu11_t * | ctx, |
uint8_t | en_accel, | ||
uint8_t | en_mag, | ||
uint8_t | en_temp ) |
Enable sensor.
ctx | Click object. |
en_accel | En accel. |
en_mag | En mag. |
en_temp | En temp. |
@description This function enable sensor.
void c6dofimu11_enable_temperature_data | ( | c6dofimu11_t * | ctx | ) |
Enable temperature data.
ctx | Click object. |
@description This function enable temperature data.
void c6dofimu11_generic_read | ( | c6dofimu11_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 c6dofimu11_generic_write | ( | c6dofimu11_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 c6dofimu11_get_accel_data | ( | c6dofimu11_t * | ctx, |
int16_t * | accel_x, | ||
int16_t * | accel_y, | ||
int16_t * | accel_z ) |
Get accel data.
ctx | Click object. |
accel_x | Accel x. |
accel_y | Accel y. |
accel_z | Accel z. |
@description This function get accel data.
int16_t c6dofimu11_get_axis | ( | c6dofimu11_t * | ctx, |
uint8_t | reg_add_lsb ) |
Get axis.
ctx | Click object. |
reg_add_lsb | Registar add lsb. |
@description This function get axis.
uint8_t c6dofimu11_get_interrupt | ( | c6dofimu11_t * | ctx | ) |
Get interrupt.
ctx | Click object. |
@description This function get interrupt.
void c6dofimu11_get_mag_data | ( | c6dofimu11_t * | ctx, |
int16_t * | mag_x, | ||
int16_t * | mag_y, | ||
int16_t * | mag_z ) |
Get map data.
ctx | Click object. |
mag_x | Mag x. |
mag_y | Mag y. |
mag_z | Mag z. |
@description This function get map data.
float c6dofimu11_get_temperature | ( | c6dofimu11_t * | ctx | ) |
Get temperature.
ctx | Click object. |
@description This function get temperature.
C6DOFIMU11_RETVAL c6dofimu11_init | ( | c6dofimu11_t * | ctx, |
c6dofimu11_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.
void c6dofimu11_read_accel | ( | c6dofimu11_t * | ctx, |
c6dofimu11_accel_t * | accel_data ) |
Read accel.
ctx | Click object. |
accel_data | Accel data. |
@description This function read accel.
uint8_t c6dofimu11_read_byte | ( | c6dofimu11_t * | ctx, |
uint8_t | reg_address ) |
This function read byte.
ctx | Click object. |
reg | Register address. |
@description This function reads data from the desired register.
void c6dofimu11_read_mag | ( | c6dofimu11_t * | ctx, |
c6dofimu11_mag_t * | mag_data ) |
Read mag.
ctx | Click object. |
mag_data | Mag data. |
@description This function read.
void c6dofimu11_read_multiple_bytes | ( | c6dofimu11_t * | ctx, |
uint8_t | reg_address, | ||
uint8_t * | p_read_data, | ||
uint8_t | n_bytes ) |
This function read multiple bytes.
ctx | Click object. |
reg | Register address. |
p_read_data | Read data. |
n_bytes | Number of the bytes to be read |
@description This function reads multiple data from the desired register.
void c6dofimu11_write_byte | ( | c6dofimu11_t * | ctx, |
uint8_t | reg_address, | ||
uint8_t | write_data ) |
This function write byte.
ctx | Click object. |
reg | Register address. |
write_data | Write data |
@description This function write data from the desired register.
void c6dofimu11_write_multiple_bytes | ( | c6dofimu11_t * | ctx, |
uint8_t | reg_address, | ||
uint8_t * | p_write_data, | ||
uint8_t | n_bytes ) |
This function write multiple bytes.
ctx | Click object. |
reg | Register address. |
p_write_data | Write data. |
n_bytes | Number of the bytes to be read. |
@description This function write multiple bytes from the desired register.