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

Files | Classes | Enumerations | Functions
Icm426xx driver transport

Low-level Icm426xx register access. More...

## Files
file | Icm426xxTransport.h
| Low-level Icm426xx register access.

## Classes
struct | inv_icm426xx_serif
| base sensor serial interface More...
struct | inv_icm426xx_transport
| transport interface More...

## Enumerations
enum | ICM426XX_SERIAL_IF_TYPE_t
| enumeration of serial interfaces available on icm426xx

## Functions
int | inv_icm426xx_init_transport (struct inv_icm426xx *s)
| Init cache variable. More...
int | inv_icm426xx_read_reg (struct inv_icm426xx *s, uint8_t reg, uint32_t len, uint8_t *buf)
| Reads data from a register on Icm426xx. More...
int | inv_icm426xx_write_reg (struct inv_icm426xx *s, uint8_t reg, uint32_t len, const uint8_t *buf)
| Writes data to a register on Icm426xx. More...

## Detailed Description

Low-level Icm426xx register access.

## Function Documentation

## ◆ inv_icm426xx_init_transport()

int inv_icm426xx_init_transport | ( | struct inv_icm426xx * | s | ) |

Init cache variable.

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

## ◆ inv_icm426xx_read_reg()

int inv_icm426xx_read_reg | ( | struct inv_icm426xx * | s,
|  | uint8_t | reg,
|  | uint32_t | len,
|  | uint8_t * | buf
| ) |  |

Reads data from a register on Icm426xx.

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_icm426xx_write_reg()

int inv_icm426xx_write_reg | ( | struct inv_icm426xx * | s,
|  | uint8_t | reg,
|  | uint32_t | len,
|  | const uint8_t * | buf
| ) |  |

Writes data to a register on Icm426xx.

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