| ICM42605 eMD Driver 2.0.9 Documentation of the eMD Driver API

- Main Page
- Related Pages
- Modules
- Classes
- Files

Files | Functions
Self-test

API to execute self-test procedures. More...

## Files
file | Icm426xxSelfTest.h

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

## Detailed Description

API to execute self-test procedures.

## Function Documentation

## ◆ inv_icm426xx_get_st_bias()

int inv_icm426xx_get_st_bias | ( | struct inv_icm426xx * | s,
|  | int | st_bias[6]
| ) |  |

Retrieve bias collected by self-test.

Parameters

  [in] | s | Pointer to device.
  [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 on success, negative value on error.

## ◆ inv_icm426xx_run_selftest()

int inv_icm426xx_run_selftest | ( | struct inv_icm426xx * | s,
|  | int * | result
| ) |  |

Perform hardware self-test for Accel and Gyro.

Parameters

  [in] | s | Pointer to device.
  [in] | result | Containing ACCEL_SUCCESS<<1 | GYRO_SUCCESS so 3

Returns
  0 on success, negative value on error.

## ◆ inv_icm426xx_set_st_bias()

int inv_icm426xx_set_st_bias | ( | struct inv_icm426xx * | s,
|  | const int | st_bias[6]
| ) |  |

Apply bias.

Parameters

  [in] | s | Pointer to device.
  [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 on success, negative value on error.