c9dof2 2.0.0.0
|
Functions | |
void | c9dof2_cfg_setup (c9dof2_cfg_t *cfg) |
Config Object Initialization function. | |
C9DOF2_RETVAL | c9dof2_init (c9dof2_t *ctx, c9dof2_cfg_t *cfg) |
Initialization function. | |
void | c9dof2_write_byte (c9dof2_t *ctx, uint8_t reg, uint8_t wr_data) |
Write Byte function. | |
void | c9dof2_write_data (c9dof2_t *ctx, uint8_t reg, int16_t wr_data) |
Write Data function. | |
uint8_t | c9dof2_read_byte (c9dof2_t *ctx, uint8_t reg) |
Read Byte function. | |
int16_t | c9dof2_read_data (c9dof2_t *ctx, uint8_t reg) |
Read Data function. | |
void | c9dof2_dev_rst (c9dof2_t *ctx) |
Device Reset function. | |
void | c9dof2_power (c9dof2_t *ctx, uint8_t on_off) |
Power up function. | |
void | c9dof2_def_settings (c9dof2_t *ctx) |
Default settings function. | |
void | c9dof2_read_gyroscope (c9dof2_t *ctx, int16_t *gyro_x, int16_t *gyro_y, int16_t *gyro_z) |
Read gyroscope data function. | |
void | c9dof2_angular_rate (c9dof2_t *ctx, float *x_ang_rte, float *y_ang_rte, float *z_ang_rte) |
Read Angular Rate function. | |
void | c9dof2_read_accelerometer (c9dof2_t *ctx, int16_t *accel_x, int16_t *accel_y, int16_t *accel_z) |
Read accelerometer data function. | |
void | c9dof2_acceleration_rate (c9dof2_t *ctx, float *x_accel_rte, float *y_accel_rte, float *z_accel_rte) |
Read acceleration Rate function. | |
float | c9dof2_read_temperature (c9dof2_t *ctx, float temp_offs) |
Read temperture function. | |
uint8_t | c9dof2_check_int (c9dof2_t *ctx) |
Check Interrupt state function. | |
void | c9dof2_snc_pin (c9dof2_t *ctx, uint8_t state) |
FSYNC Pin State function. | |
void c9dof2_acceleration_rate | ( | c9dof2_t * | ctx, |
float * | x_accel_rte, | ||
float * | y_accel_rte, | ||
float * | z_accel_rte ) |
Read acceleration Rate function.
ctx | Click object. |
x_accel_rte | float X-axis acceleration rate |
y_accel_rte | float Y-axis acceleration rate |
z_accel_rte | float Z-axis acceleration rate |
@description Function is used to calculate acceleration rate.
void c9dof2_angular_rate | ( | c9dof2_t * | ctx, |
float * | x_ang_rte, | ||
float * | y_ang_rte, | ||
float * | z_ang_rte ) |
Read Angular Rate function.
ctx | Click object. |
x_ang_rte | float X-axis angular rate |
y_ang_rte | float Y-axis angular rate |
z_ang_rte | float Z-axis angular rate |
@description Function is used to calculate angular rate.
void c9dof2_cfg_setup | ( | c9dof2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t c9dof2_check_int | ( | c9dof2_t * | ctx | ) |
Check Interrupt state function.
ctx | Click object. |
- 0 : Interrupt has not occured - 1 : Interrupt has occured
@description Function is used to check if an interrupt has occured.
void c9dof2_def_settings | ( | c9dof2_t * | ctx | ) |
Default settings function.
ctx | Click object. |
@description Function is used to apply the default settings to the device.
void c9dof2_dev_rst | ( | c9dof2_t * | ctx | ) |
Device Reset function.
ctx | Click object. |
@description Function is used to perform soft reset.
C9DOF2_RETVAL c9dof2_init | ( | c9dof2_t * | ctx, |
c9dof2_cfg_t * | cfg ) |
Initialization function.
c9dof2 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void c9dof2_power | ( | c9dof2_t * | ctx, |
uint8_t | on_off ) |
Power up function.
ctx | Click object. |
on_off | Value defines power state of the device |
@description Turns the device on or off.
void c9dof2_read_accelerometer | ( | c9dof2_t * | ctx, |
int16_t * | accel_x, | ||
int16_t * | accel_y, | ||
int16_t * | accel_z ) |
Read accelerometer data function.
ctx | Click object. |
accel_x | 16-bit accelerometer X-axis data |
accel_y | 16-bit accelerometer Y-axis data |
accel_z | 16-bit accelerometer Z-axis data |
@description Function is used to read accelerometer data.
uint8_t c9dof2_read_byte | ( | c9dof2_t * | ctx, |
uint8_t | reg ) |
Read Byte function.
ctx | Click object. |
reg | 8-bit register address |
@descritpion Reads one byte from register defined by 8-bit register address
int16_t c9dof2_read_data | ( | c9dof2_t * | ctx, |
uint8_t | reg ) |
Read Data function.
ctx | Click object. |
reg | 8-bit register address |
@description Reads two byte from registers defined by 8-bit register address
void c9dof2_read_gyroscope | ( | c9dof2_t * | ctx, |
int16_t * | gyro_x, | ||
int16_t * | gyro_y, | ||
int16_t * | gyro_z ) |
Read gyroscope data function.
ctx | Click object. |
gyro_x | 16-bit gyroscope X-axis data |
gyro_y | 16-bit gyroscope Y-axis data |
gyro_z | 16-bit gyroscope Z-axis data |
@description Function is used to read gyroscope data.
float c9dof2_read_temperature | ( | c9dof2_t * | ctx, |
float | temp_offs ) |
Read temperture function.
ctx | Click object. |
temp_offs | temperature offset. |
@description Function is used to read temperture in degree Centigrade.
void c9dof2_snc_pin | ( | c9dof2_t * | ctx, |
uint8_t | state ) |
FSYNC Pin State function.
ctx | Click object. |
state | value that defines the state of the FSYNC pin. |
@description Function is used to define the device to change the state of the pin.
void c9dof2_write_byte | ( | c9dof2_t * | ctx, |
uint8_t | reg, | ||
uint8_t | wr_data ) |
Write Byte function.
ctx | Click object. |
reg | 8-bit register address |
wr_data | 8-bit write data |
@description Writes one byte into register defined by 8-bit register address
void c9dof2_write_data | ( | c9dof2_t * | ctx, |
uint8_t | reg, | ||
int16_t | wr_data ) |
Write Data function.
ctx | Click object. |
reg | 8-bit register address |
wr_data | 16-bit write data |
@description Writes two bytes into registers defined by 8-bit register address