c10dof 2.0.0.0
|
Functions | |
void | c10dof_cfg_setup (c10dof_cfg_t *cfg) |
Config Object Initialization function. | |
C10DOF_RETVAL | c10dof_init (c10dof_t *ctx, c10dof_cfg_t *cfg) |
Initialization function. | |
void | c10dof_default_cfg (c10dof_t *ctx) |
Click Default Configuration function. | |
void | c10dof_write_byte (c10dof_t *ctx, uint8_t reg, uint8_t data_in, uint8_t slave_addr) |
Generic write function. | |
uint8_t | c10dof_read_byte (c10dof_t *ctx, uint8_t reg, uint8_t slave_addr) |
Generic read function. | |
uint16_t | c10dof_read_data (c10dof_t *ctx, uint8_t msb_reg, uint8_t slave_addr) |
Generic read function. | |
void | c10dof_hw_reset (c10dof_t *ctx) |
Reset function. | |
uint8_t | c10dof_bmp180_chip_ID (c10dof_t *ctx) |
ID function. | |
uint8_t | c10dof_bno055_chip_ID (c10dof_t *ctx) |
ID function. | |
uint8_t | c10dof_get_accel_ID (c10dof_t *ctx) |
ID function. | |
uint8_t | c10dof_get_mag_ID (c10dof_t *ctx) |
ID function. | |
uint8_t | c10dof_get_gyro_ID (c10dof_t *ctx) |
ID function. | |
uint16_t | c10dof_get_soft_ID (c10dof_t *ctx) |
ID function. | |
uint8_t | c10dof_get_page_ID (c10dof_t *ctx) |
ID function. | |
void | c10dof_default_configuration_BMP180 (c10dof_t *ctx) |
Configuration function. | |
void | c10dof_default_configuration_BNO055 (c10dof_t *ctx) |
Configuration function. | |
void | c10dof_set_config_mode (c10dof_t *ctx, uint8_t config_mode) |
Configuration function. | |
void | c10dof_select_page (c10dof_t *ctx, uint8_t page_number) |
Page selection function. | |
void | c10dof_config_accel (c10dof_t *ctx, uint8_t acc_cnfg) |
Accel configuration function. | |
void | c10dof_config_gyro (c10dof_t *ctx, uint8_t gyro_cnfg) |
Gyro configuration function. | |
void | c10dof_config_mag (c10dof_t *ctx, uint8_t mag_cnfg) |
Mag configuration function. | |
void | c10dof_set_sensor_units (c10dof_t *ctx, uint8_t sensor_units) |
Sensor units function. | |
uint8_t | c10dof_get_system_status (c10dof_t *ctx) |
System status code. | |
uint8_t | c10dof_get_system_error (c10dof_t *ctx) |
System error code. | |
void | c10dof_set_mode (c10dof_t *ctx, uint8_t mode_val) |
Mode. | |
void | c10dof_set_normal_mode (c10dof_t *ctx) |
Normal mode. | |
void | c10dof_start_temperature_measure (c10dof_t *ctx) |
Temperature reading start. | |
void | c10dof_start_pressure_measure (c10dof_t *ctx) |
Pressure reading start. | |
int16_t | c10dof_read_raw_temperature (c10dof_t *ctx, uint8_t msb_reg) |
Raw temperature reading. | |
int32_t | c10dof_read_raw_pressure (c10dof_t *ctx, uint8_t msb_addr) |
Raw pressure reading. | |
void | c10dof_get_calib_param (c10dof_t *ctx) |
Read the calibration parameter function. | |
void | c10dof_get_measurements (c10dof_t *ctx, float *temperature, float *pressure) |
Get measurements value - temperature and pressure data function. | |
float | c10dof_get_temperature (c10dof_t *ctx) |
Get temperature value function. | |
float | c10dof_get_pressure (c10dof_t *ctx) |
Get pressure value function. | |
int16_t | c10dof_get_axis (c10dof_t *ctx, uint8_t addr_reg_low) |
Function get axis data of BNO055 register. | |
void | c10dof_read_accel (c10dof_t *ctx, int16_t *accelX, int16_t *accelY, int16_t *accelZ) |
Function read Accel X-axis, Y-axis and Z-axis. | |
void | c10dof_read_mag (c10dof_t *ctx, int16_t *magX, int16_t *magY, int16_t *magZ) |
Function read Magnetometar X-axis, Y-axis and Z-axis. | |
void | c10dof_read_gyro (c10dof_t *ctx, int16_t *gyroX, int16_t *gyroY, int16_t *gyroZ) |
Function read Gyro X-axis, Y-axis and Z-axis axis. | |
uint8_t | c10dof_check_interrupt (c10dof_t *ctx) |
Check the state of interrupt function. | |
uint8_t c10dof_bmp180_chip_ID | ( | c10dof_t * | ctx | ) |
ID function.
ctx | Click object. |
@description This function reads the ID value od the BMP180 chip.
uint8_t c10dof_bno055_chip_ID | ( | c10dof_t * | ctx | ) |
ID function.
ctx | Click object. |
@description This function reads the ID value od the BNO055 chip.
void c10dof_cfg_setup | ( | c10dof_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t c10dof_check_interrupt | ( | c10dof_t * | ctx | ) |
Check the state of interrupt function.
ctx | Click object |
@description Function check the state of interrupt by gets states of INT pin of 10DOF Click board.
void c10dof_config_accel | ( | c10dof_t * | ctx, |
uint8_t | acc_cnfg ) |
Accel configuration function.
ctx | Click object. |
acc_cnfg | Accel configuration register. |
@description Set Accel configuration function.
void c10dof_config_gyro | ( | c10dof_t * | ctx, |
uint8_t | gyro_cnfg ) |
Gyro configuration function.
ctx | Click object. |
gyro_cnfg | Gyro configuration register. |
@description Set Gyro configuration function.
void c10dof_config_mag | ( | c10dof_t * | ctx, |
uint8_t | mag_cnfg ) |
Mag configuration function.
ctx | Click object. |
mag_cnfg | Mag configuration register. |
@description Set Mag configuration function.
void c10dof_default_cfg | ( | c10dof_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for C10Dof click.
void c10dof_default_configuration_BMP180 | ( | c10dof_t * | ctx | ) |
Configuration function.
ctx | Click object. |
@description This function sets default configuration for the BMP180 sensor function.
void c10dof_default_configuration_BNO055 | ( | c10dof_t * | ctx | ) |
Configuration function.
ctx | Click object. |
@description This function sets default configuration for the BNO055 sensor function.
uint8_t c10dof_get_accel_ID | ( | c10dof_t * | ctx | ) |
ID function.
ctx | Click object. |
@description This function reads the Accel ID value od the BNO055 chip.
int16_t c10dof_get_axis | ( | c10dof_t * | ctx, |
uint8_t | addr_reg_low ) |
Function get axis data of BNO055 register.
addr_reg_low | low data register address |
ctx | Click object. |
@description Function get axis data by read two target register address of BNO055 chip on 10DOF Click board.
void c10dof_get_calib_param | ( | c10dof_t * | ctx | ) |
Read the calibration parameter function.
ctx | Click object. |
@description Function get the calibration parameter values from the target register address of BMP180 chip on 10DOF Click board.
uint8_t c10dof_get_gyro_ID | ( | c10dof_t * | ctx | ) |
ID function.
ctx | Click object. |
@description This function reads the Gyro ID value od the BNO055 chip.
uint8_t c10dof_get_mag_ID | ( | c10dof_t * | ctx | ) |
ID function.
ctx | Click object. |
@description This function reads the Mag ID value od the BNO055 chip.
void c10dof_get_measurements | ( | c10dof_t * | ctx, |
float * | temperature, | ||
float * | pressure ) |
Get measurements value - temperature and pressure data function.
temperature | pointer to measurements temperature value |
pressure | pointer to measurements pressure value |
@description Function measurements the temperature and pressure value of BMP180 chip on 10DOF Click board.
uint8_t c10dof_get_page_ID | ( | c10dof_t * | ctx | ) |
ID function.
ctx | Click object. |
@description This function reads the page ID value od the BNO055 chip.
float c10dof_get_pressure | ( | c10dof_t * | ctx | ) |
Get pressure value function.
ctx | Click object. |
@description Function measurements the pressure value of BMP180 chip on 10DOF Click board.
uint16_t c10dof_get_soft_ID | ( | c10dof_t * | ctx | ) |
ID function.
ctx | Click object. |
@description This function reads the software ID value od the BNO055 chip.
uint8_t c10dof_get_system_error | ( | c10dof_t * | ctx | ) |
System error code.
ctx | Click object. |
@description Get the system error code of BNO055 function.
uint8_t c10dof_get_system_status | ( | c10dof_t * | ctx | ) |
System status code.
ctx | Click object. |
@description Get the system status code of BNO055 function.
float c10dof_get_temperature | ( | c10dof_t * | ctx | ) |
Get temperature value function.
ctx | Click object. |
@description Function measurements the temperature value of BMP180 chip on 10DOF Click board.
void c10dof_hw_reset | ( | c10dof_t * | ctx | ) |
Reset function.
ctx | Click object. |
@description This function resets the program.
C10DOF_RETVAL c10dof_init | ( | c10dof_t * | ctx, |
c10dof_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 c10dof_read_accel | ( | c10dof_t * | ctx, |
int16_t * | accelX, | ||
int16_t * | accelY, | ||
int16_t * | accelZ ) |
Function read Accel X-axis, Y-axis and Z-axis.
ctx | Click object. |
accelX | pointer to read Accel X-axis data |
accelY | pointer to read Accel Y-axis data |
accelZ | pointer to read Accel Z-axis data |
@description Function read Accel X-axis, Y-axis and Z-axis axis of BNO055 chip on 10DOF Click board.
uint8_t c10dof_read_byte | ( | c10dof_t * | ctx, |
uint8_t | reg, | ||
uint8_t | slave_addr ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
slave_addr | Address of the chip we're using. |
@description This function reads data from the desired register.
uint16_t c10dof_read_data | ( | c10dof_t * | ctx, |
uint8_t | msb_reg, | ||
uint8_t | slave_addr ) |
Generic read function.
ctx | Click object. |
msb_reg | Register address. |
slave_addr | Address of the chip we're using. |
@description This function reads data from the desired register.
void c10dof_read_gyro | ( | c10dof_t * | ctx, |
int16_t * | gyroX, | ||
int16_t * | gyroY, | ||
int16_t * | gyroZ ) |
Function read Gyro X-axis, Y-axis and Z-axis axis.
ctx | Click object. |
gyroX | pointer to read Gyro X-axis data |
gyroY | pointer to read Gyro Y-axis data |
gyroZ | pointer to read Gyro Z-axis data |
@description Function read Gyro X-axis, Y-axis and Z-axis axis of BNO055 chip on 10DOF Click board.
void c10dof_read_mag | ( | c10dof_t * | ctx, |
int16_t * | magX, | ||
int16_t * | magY, | ||
int16_t * | magZ ) |
Function read Magnetometar X-axis, Y-axis and Z-axis.
ctx | Click object. |
magX | pointer to read Mag X-axis data |
magY | pointer to read Mag Y-axis data |
magZ | pointer to read Mag Z-axis data |
@description Function read Mag X-axis, Y-axis and Z-axis axis of BNO055 chip on 10DOF Click board.
int32_t c10dof_read_raw_pressure | ( | c10dof_t * | ctx, |
uint8_t | msb_addr ) |
Raw pressure reading.
ctx | Click object. |
msb_addr | Register. |
@description Function read the raw temperature data from the three target register address of BMP180 chip on 10DOF Click board.
int16_t c10dof_read_raw_temperature | ( | c10dof_t * | ctx, |
uint8_t | msb_reg ) |
Raw temperature reading.
ctx | Click object. |
msb_reg | Register. |
@description Function read the raw temperature data from the two target register address of BMP180 chip on 10DOF Click board.
void c10dof_select_page | ( | c10dof_t * | ctx, |
uint8_t | page_number ) |
Page selection function.
ctx | Click object. |
page_number | Page number. |
@description Select page number function.
void c10dof_set_config_mode | ( | c10dof_t * | ctx, |
uint8_t | config_mode ) |
Configuration function.
ctx | Click object. |
config_mode | Configuration mode. |
@description Set configuration mode function.
void c10dof_set_mode | ( | c10dof_t * | ctx, |
uint8_t | mode_val ) |
Mode.
ctx | Click object. |
mode_value | Mode value. |
@description Set mode mode function.
void c10dof_set_normal_mode | ( | c10dof_t * | ctx | ) |
Normal mode.
ctx | Click object. |
@description Set normal mode mode function.
void c10dof_set_sensor_units | ( | c10dof_t * | ctx, |
uint8_t | sensor_units ) |
Sensor units function.
ctx | Click object. |
sensor_units | Sensor units. |
@description Configurate sensor units function.
void c10dof_start_pressure_measure | ( | c10dof_t * | ctx | ) |
Pressure reading start.
ctx | Click object. |
@description Begin a pressure reading function.
void c10dof_start_temperature_measure | ( | c10dof_t * | ctx | ) |
Temperature reading start.
ctx | Click object. |
@description Begin a temperature reading function.
void c10dof_write_byte | ( | c10dof_t * | ctx, |
uint8_t | reg, | ||
uint8_t | data_in, | ||
uint8_t | slave_addr ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_in | Data to be written. |
slave_addr | Address of the chip we're using. |
@description This function writes data to the desired register.