| ICM-4268x-V Driver API 1.0.1 ICM-4268x-V Driver API

Files | Functions
Icm426xx selftest

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

## Files
file | Icm426xxSelfTest.h
| Low-level function to run selftest on a Icm426xx device.

## 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

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

## 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

  [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

## ◆ 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] | result | containing ACCEL_SUCCESS<<1 | GYRO_SUCCESS so 3

Returns
  0 if success, error code if failure

## ◆ inv_icm426xx_set_st_bias()

int inv_icm426xx_set_st_bias | ( | struct inv_icm426xx * | 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