Open C++ drivers for the chips on embedded boards, one repository per chip, each one small enough to read and strict enough to trust. You give a driver a few functions that move bytes on your bus; it handles the chip, on any MCU.
The drivers are part of Kokeb Labs. They are built from one template, checked by the same CI, reviewed independently and held to one engineering standard.
23 public drivers. 22 of 23 are at a release candidate, the rest at a full release. Language standard today: C++20. Hardware level: 23 at H0. Safety class: 4 passive, 9 sensing, 10 actuating.
Every driver takes the same road from a request to a release. Nothing skips a step, and the claim a release makes about real hardware is stated as exactly as its evidence allows.
Each request is tracked on the Driver pipeline board of driver-requests,
where its stage (requested, triaged, datasheet acquired, in design, building, in review, released) is always visible.
A driver is first tested against a model of the chip written from the datasheet. That proves the code does what its author understood, not what the chip does, so the level is stated per driver and never raised on opinion.
- H0, host model only. It passes the host tests, the fuzzer and the gates against a model of the chip. It has never run on the chip. Every new driver starts here.
- H1, bench exercised. A defined rig with the real chip ran the driver's example, and the logs and the rig description are kept.
- H2, hardware verified. A hardware engineer reviewed the rig against the datasheet and signed off.
A release candidate (vX.Y.Z-rc.N) is a complete, checked driver that is published so it can be tried and
validated. It is promoted to a full release when nothing fails, or replaced by the next candidate with the fixes.
Each driver's README says plainly which level it is at.
| No surprises | Header-only; no heap, exceptions, RTTI or virtual calls. Every call returns a result you must check |
| Hardware-agnostic | No MCU headers. The bus is a port class you write once; examples for ESP32 (ESP-IDF) and the host |
| MISRA C++:2023 checked | Every pull request runs the MISRA checks; each deviation is recorded with its reason |
| Independent safety review | Reviewed apart from the author's own checks: datasheet conformance, fault handling, safe outputs |
| Tested and fuzzed | Host tests against a protocol model of the chip; a fuzzer corrupts the chip's replies |
| Honest about hardware | One validation level (H0, H1 or H2) per driver, with the evidence for it |
| Documented | Datasheet-backed docs with chip pinout, block and wiring diagrams, an API reference and stated limits |
| MIT licensed | Use it in open or closed products. Names, namespaces and macros follow the chip, never a brand |
The drivers are C++20 today and are meant to move up over time. The standard is not hard-wired into the organization: each driver's build files state the one it needs, and the catalogue below reads it from there, so it always shows what the driver says now.
Grouped by function. Every cell below is generated from the driver's own repository (its description, driver.yml,
build files and latest release) by tools/gen_profile.py, never edited by hand.
| Driver | Chip or device | Bus | Standard | Latest release | Hardware | Safety class |
|---|---|---|---|---|---|---|
driver-ads7952 |
TI ADS7950/51/52/53 12-bit 4/8/12/16-channel SPI ADCs | SPI | C++20 | v0.1.0-rc.1 (release candidate) |
H0 host model | Sensing |
driver-ads9324 |
TI ADS9324 16-channel, 16-bit, 1 MSPS simultaneous-sampling SAR ADC with integrated PGA and SPI interface | SPI | C++20 | v0.1.0-rc.1 (release candidate) |
H0 host model | Sensing |
| Driver | Chip or device | Bus | Standard | Latest release | Hardware | Safety class |
|---|---|---|---|---|---|---|
driver-as5047u |
ams OSRAM AS5047U 14-bit magnetic rotary position sensor (SPI) | SPI | C++20 | v0.1.0-rc.1 (release candidate) |
H0 host model | Sensing |
driver-bno08x |
Hillcrest Labs / CEVA BNO08x family of 9-axis orientation sensors over SHTP, with I2C, SPI and UART-RVC transports | I2C, SPI, UART | C++20 | v0.1.0-rc.1 (release candidate) |
H0 host model | Sensing |
| Driver | Chip or device | Bus | Standard | Latest release | Hardware | Safety class |
|---|---|---|---|---|---|---|
driver-tmc5160 |
Trinamic TMC5160 and TMC5160A stepper motor controller and driver with SPI and UART interfaces | SPI, UART | C++20 | v0.1.0-rc.1 (release candidate) |
H0 host model | Actuating |
driver-tmc9660 |
TMC9660 servo controller and gate driver (bootloader, parameter mode and register mode over SPI or UART) | SPI, UART | C++20 | v0.1.0-rc.1 (release candidate) |
H0 host model | Actuating |
driver-dynamixel |
ROBOTIS DYNAMIXEL servos, protocols 1.0 and 2.0, over a half-duplex UART | UART | C++20 | v0.1.0-rc.1 (release candidate) |
H0 host model | Actuating |
| Driver | Chip or device | Bus | Standard | Latest release | Hardware | Safety class |
|---|---|---|---|---|---|---|
driver-canopen-client |
CANopen client driver: NMT master, SDO, heartbeat, EMCY, PDO and a CiA 402 drive state machine over a CAN frame port | CANopen | C++20 | v0.1.0-rc.1 (release candidate) |
H0 host model | Actuating |
| Driver | Chip or device | Bus | Standard | Latest release | Hardware | Safety class |
|---|---|---|---|---|---|---|
driver-se05x |
NXP EdgeLock SE05x secure elements (SE050, SE051, SE052) over I2C with T=1: keys, signatures, ECDH, attestation, secure storage, certificates and SCP03, with an easy hardware root-of-trust facade | I2C | C++20 | none yet |
H0 host model | Passive |
| Driver | Chip or device | Bus | Standard | Latest release | Hardware | Safety class |
|---|---|---|---|---|---|---|
driver-max22200 |
Analog Devices MAX22200 octal solenoid and motor driver (SPI) | SPI | C++20 | v0.1.0-rc.1 (release candidate) |
H0 host model | Actuating |
driver-tle92466ed |
Infineon TLE92466ED six-channel low-side solenoid driver (SPI) | SPI | C++20 | v0.1.0-rc.1 (release candidate) |
H0 host model | Actuating |
driver-pf1550 |
NXP PF1550 power management IC: single-cell Li-ion linear charger, three buck regulators and three LDOs, on I2C | I2C | C++20 | v0.1.0-rc.1 (release candidate) |
H0 host model | Actuating |
| Driver | Chip or device | Bus | Standard | Latest release | Hardware | Safety class |
|---|---|---|---|---|---|---|
driver-pcal9555 |
NXP PCA9555 and PCAL9555A 16-bit I2C GPIO expanders | I2C | C++20 | v0.1.0-rc.1 (release candidate) |
H0 host model | Actuating |
driver-pca9685 |
NXP PCA9685 16-channel 12-bit PWM controller (I2C) | I2C | C++20 | v0.1.0-rc.1 (release candidate) |
H0 host model | Actuating |
driver-ws2812-rmt |
single-wire addressable RGB and RGBW LEDs (WS2812, SK6812 and compatible) over a timed bit stream, with an ESP32 RMT port | PIO (ESP32 only) | C++20 | v0.1.0-rc.1 (release candidate) |
H0 host model | Passive |
| Driver | Chip or device | Bus | Standard | Latest release | Hardware | Safety class |
|---|---|---|---|---|---|---|
driver-at25040b |
Microchip AT25010B/020B/040B SPI serial EEPROMs | SPI | C++20 | v0.1.0-rc.1 (release candidate) |
H0 host model | Passive |
| Driver | Chip or device | Bus | Standard | Latest release | Hardware | Safety class |
|---|---|---|---|---|---|---|
driver-isf15acp4 |
NKK SmartDisplay OLED pushbuttons and displays (ISF15ACP4, ISC15ANP4, ISC01P) over SPI | SPI | C++20 | v0.1.0-rc.1 (release candidate) |
H0 host model | Passive |
| Driver | Chip or device | Bus | Standard | Latest release | Hardware | Safety class |
|---|---|---|---|---|---|---|
driver-bmp581 |
Bosch BMP581 barometric pressure and temperature sensor (I2C, SPI) | I2C, SPI | C++20 | v0.1.0-rc.1 (release candidate) |
H0 host model | Sensing |
driver-mcp9700 |
Microchip MCP9700, MCP9700A, MCP9701 and MCP9701A analog temperature sensors (ADC) | ADC | C++20 | v0.1.0-rc.1 (release candidate) |
H0 host model | Sensing |
driver-ntc-thermistor |
NTC thermistors on an ADC, any part: B-parameter, Steinhart-Hart and lookup tables | ADC | C++20 | v0.1.0-rc.1 (release candidate) |
H0 host model | Sensing |
driver-sfm-flow-meter |
Sensirion SFM family of I2C mass flow meters (SFM3000 to SFM6000D) | I2C | C++20 | v0.1.0-rc.1 (release candidate) |
H0 host model | Sensing |
driver-alicat-basis2 |
Alicat BASIS 2 gas mass flow meters and controllers (B and BC series) over serial, with the ASCII protocol and Modbus RTU | UART, Modbus | C++20 | v0.1.0-rc.1 (release candidate) |
H0 host model | Actuating |
driver-fdo2 |
PyroScience FDO2 optical oxygen sensor modules on UART | UART | C++20 | v0.1.0-rc.1 (release candidate) |
H0 host model | Sensing |
Ports for common MCU families and a shared core that joins drivers to them are coming; they are not public yet. Until then, a driver needs only the small port class you write for your bus.
Need a chip that is not listed? Open a form in driver-requests:
- Request a driver for a chip that has none. One chip per request, with a link to the datasheet on the vendor's own website.
- Request a port or target for an MCU family, SDK or RTOS.
- Report a datasheet erratum when a chip does not do what its datasheet says.
Add a thumbs-up to a request you want; that is the vote. Simpler chips with complete public documents go first.
Read the contributing guide. For a bug in
a driver, use that driver's repository. If you can test on real hardware, say so on the request or the driver: a run
on a bench rig is what moves a driver from H0 to H1. Every commit is signed off (git commit -s).
driver-requests |
Ask for a driver, a port or a datasheet fix; follow it on the Driver pipeline board |
driver-template |
Start a new driver: one command gives code, host tests, an ESP32 example, docs and CI |
ci-tools |
The reusable workflows and the documentation tooling every driver uses |
| Handbook | Every rule for C++, CMake, docs, CI and reviews, with the check that verifies it |
| Kokeb Labs portal | Projects, how we build, roadmap and contributing |
Questions and ideas go to Discussions. Report vulnerabilities privately as the security policy describes, never in a public issue.