A registered peripheral model runs in the engine: the firmware talks to it over the real bus and gets device-accurate responses.
Declarative I²C kit — core/configs/devices/cap1188.yaml. Latched status bits and MAIN_CONTROL.INT behave as on silicon (a still-held pad re-asserts INT after the write-0). NOT modelled: the ALERT pad (nothing drives a pin), the noise detector, multiple-touch blocking, the guard channel, the LED drivers, recalibration and standby. Touch strength is a fixed 50%-of-full-scale threshold, not the analogue calibration loop.
Simulated device model
Built from the datasheet. Implemented from the part’s register documentation and exercised by automated tests. Nothing physical was ever placed next to it.
I²C · default address 41
[object Object]
| Pin | Type | Role |
|---|---|---|
VCC | power_in | — |
GND | power_in | — |
SDA | open_drain | i2c_sda |
SCL | open_drain | i2c_scl |
Modelled from Microchip CAP1188 datasheet.