| ICM40609D eMD Driver 2.0.0 Documentation of the eMD Driver API

- Main Page
- Modules
- Classes
- Files

Files | Classes | Enumerations | Functions
Icm406xx driver transport

Low-level Icm406xx register access. More...

## Files
file | Icm406xxTransport.h
| Low-level Icm406xx register access.

## Classes
struct | inv_icm406xx_serif
| basesensor serial interface More...

## Enumerations
enum | ICM406XX_SERIAL_IF_TYPE_t
| enumeration of serial interfaces available on icm406xx

## Functions
int | inv_icm406xx_read_reg (struct inv_icm406xx *s, uint8_t reg, uint32_t len, uint8_t *buf)
| Reads data from a register on Icm406xx. More...
int | inv_icm406xx_write_reg (struct inv_icm406xx *s, uint8_t reg, uint32_t len, const uint8_t *buf)
| Writes data to a register on Icm406xx. More...

## Detailed Description

Low-level Icm406xx register access.

## Function Documentation

## ◆ inv_icm406xx_read_reg()

int inv_icm406xx_read_reg | ( | struct inv_icm406xx * | s,
|  | uint8_t | reg,
|  | uint32_t | len,
|  | uint8_t * | buf
| ) |  |

Reads data from a register on Icm406xx.

Parameters

  [in] | reg | register address to be read
  [in] | len | number of byte to be read
  [out] | buf | output data from the register

Returns
  0 in case of success, -1 for any error

## ◆ inv_icm406xx_write_reg()

int inv_icm406xx_write_reg | ( | struct inv_icm406xx * | s,
|  | uint8_t | reg,
|  | uint32_t | len,
|  | const uint8_t * | buf
| ) |  |

Writes data to a register on Icm406xx.

Parameters

  [in] | reg | register address to be written
  [in] | len | number of byte to be written
  [in] | buf | input data to write

Returns
  0 in case of success, -1 for any error