| eMD IIM4265x Driver API 1.0.0

Files | Functions
Ixm42xxx selftest

Low-level function to run selftest on a Ixm42xxx device. More...

## Files
file | Ixm42xxxSelfTest.h

## Functions
int | inv_ixm42xxx_run_selftest (struct inv_ixm42xxx *s, int *result)
| Perform hardware self-test for Accel and Gyro. More...
int | inv_ixm42xxx_get_st_bias (struct inv_ixm42xxx *s, int st_bias[6])
| Retrieve bias collected by self-test. More...
int | inv_ixm42xxx_set_st_bias (struct inv_ixm42xxx *s, const int st_bias[6])
| Apply bias. More...

## Detailed Description

Low-level function to run selftest on a Ixm42xxx device.

## Function Documentation

## ◆ inv_ixm42xxx_get_st_bias()

int inv_ixm42xxx_get_st_bias | ( | struct inv_ixm42xxx * | s,
|  | int | st_bias[6]
| ) |  |

Retrieve bias collected by self-test.

Parameters

  [out] | st_bias | bias scaled by 2^16, accel is gee and gyro is dps. The buffer will be filled as below. Gyro LN mode X,Y,Z Accel LN mode X,Y,Z

Returns
  0 if success, error code if failure

Definition at line 134 of file Ixm42xxxSelfTest.c.

## ◆ inv_ixm42xxx_run_selftest()

int inv_ixm42xxx_run_selftest | ( | struct inv_ixm42xxx * | s,
|  | int * | result
| ) |  |

Perform hardware self-test for Accel and Gyro.

Parameters

  [in] | result | containing ACCEL_SUCCESS<<1 | GYRO_SUCCESS so 3

Returns
  0 if success, error code if failure

Definition at line 101 of file Ixm42xxxSelfTest.c.

## ◆ inv_ixm42xxx_set_st_bias()

int inv_ixm42xxx_set_st_bias | ( | struct inv_ixm42xxx * | s,
|  | const int | st_bias[6]
| ) |  |

Apply bias.

Parameters

  [in] | st_bias | bias scaled by 2^16, accel is gee and gyro is dps. The buffer must be filled as below. Gyro LN mode X,Y,Z Accel LN mode X,Y,Z

Returns
  0 if success, error code if failure

Definition at line 157 of file Ixm42xxxSelfTest.c.