# stmicroelectronics/lsm6dso16is-pid architecture

> Architecture diagram of the GitHub repository stmicroelectronics/lsm6dso16is-pid, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/stmicroelectronics/lsm6dso16is-pid
- Repository: https://github.com/stmicroelectronics/lsm6dso16is-pid

## Overview

This repository is a platform-independent C driver for the LSM6DSO16IS inertial sensor. An application initializes the driver context with platform bus callbacks, then calls driver APIs to configure the device and retrieve or manage sensor functions; the driver performs register transactions through those callbacks. The API also covers interrupts, sensor-hub operations, and ISPU configuration and memory access. The implementation excerpt is partial, so the graph focuses on the documented integration boundary and the visible implementation-to-header dependency rather than asserting internal call paths for unsampled features.

Main entry points: [`lsm6dso16is_reg.c`](https://github.com/stmicroelectronics/lsm6dso16is-pid/blob/master/lsm6dso16is_reg.c) (Driver API), [`lsm6dso16is_reg.h`](https://github.com/stmicroelectronics/lsm6dso16is-pid/blob/master/lsm6dso16is_reg.h) (Register and API definitions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_integration["Application integration"]
end

subgraph group_driver["Sensor driver"]
  node_driver_api["Driver API<br/>[lsm6dso16is_reg.c]"]
  node_register_contract["Register and API definitions<br/>[lsm6dso16is_reg.h]"]
end

node_application(("Application"))
node_bus["Platform bus callbacks"]
node_sensor["LSM6DSO16IS sensor"]

node_application -->|"calls"| node_driver_api
node_application -->|"provides callbacks"| node_bus
node_driver_api -->|"uses callbacks"| node_bus
node_driver_api -->|"reads and configures"| node_sensor
node_driver_api -->|"includes"| node_register_contract

click node_driver_api "https://github.com/stmicroelectronics/lsm6dso16is-pid/blob/master/lsm6dso16is_reg.c"
click node_register_contract "https://github.com/stmicroelectronics/lsm6dso16is-pid/blob/master/lsm6dso16is_reg.h"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_driver_api,node_register_contract toneAmber
class node_application,node_bus,node_sensor toneIndigo
```

## Components

### Sensor driver

- [Driver API](https://github.com/stmicroelectronics/lsm6dso16is-pid/blob/master/lsm6dso16is_reg.c): `lsm6dso16is_reg.c`
- [Register and API definitions](https://github.com/stmicroelectronics/lsm6dso16is-pid/blob/master/lsm6dso16is_reg.h): `lsm6dso16is_reg.h`

### Other components

- **Application**
- **Platform bus callbacks**
- **LSM6DSO16IS sensor**

## Connections

- Application → Driver API: calls (evidence: `README.md`)
- Application → Platform bus callbacks: provides callbacks (evidence: `README.md`)
- Driver API → Platform bus callbacks: uses callbacks (evidence: `README.md`)
- Driver API → LSM6DSO16IS sensor: reads and configures (evidence: `README.md`)
- Driver API → Register and API definitions: includes (evidence: `lsm6dso16is_reg.c`)
