Skip to main content

Chip Catalogue

The SDK ships 80 chip drivers under chips/<part>/, described by 84 manifests under metadata/chips/. Each driver is independent, opt-in, and named after the chip's natural manufacturer name (no alp_ prefix — that's reserved for SDK-level abstractions). The four manifests without a driver are declared driver_status: none: the AEN on-module Ethernet PHY dp83825 (reached through Zephyr's Ethernet MAC glue and raw MDIO, not an SDK driver) and the camera sensors imx296, imx335 and ov5647, whose streaming lives entirely in Zephyr video drivers. The manifest/driver parity is CI-enforced against a reasoned allowlist, so a manifest can't quietly imply code that doesn't exist.

The Tier-0 drivers (on-module silicon for AEN / V2N / V2N-M1, plus the EVK board-side parts) carry the [ABI-STABLE] annotation and ride the SDK's normal ABI guarantees. The drivers added in the §D ecosystem expansion are marked [ABI-EXPERIMENTAL].

Most chip drivers are still not silicon-validated

Most manifests still declare verification.hil_silicon: untested — treat their lifecycle sequences, register values, and timing numbers as paper-correct until the v1.0 verification sweep lands. As of v0.17.0 a handful carry a bench record, each scoped exactly as its manifest states:

Manifesthil_siliconWhat the bench record covers
gd32g553verifiedThe V2N GD32 bridge soak and functional suite. The first-silicon soak was partial; verified rests on the later, clean run.
dp83825verifiedLink + DHCP on real E8 silicon (examples/aen/aen-ethernet-link) — the PHY hardware path, not an SDK driver (none exists).
ov9281verifiedAll three GREY8 modes (640×400, 1280×720, 1280×800) streaming on E1M-AEN803 through the Zephyr video driver — not the SDK's chip-ID stub, which stays driver_status: stub. A re-bench after a later shared capture-driver change is pending.
imx296partialI2C identity, CSI-2 streaming, raw capture, ISP path, auto-exposure and MJPEG streaming; colour calibration and fast-trigger mode are not benched.
imx335partial2×2-binned 1296×972 RAW10 capture, ISP path, auto-exposure and MJPEG streaming; colour calibration, sensor-side frame rate, auto-exposure in varied lighting and the full-resolution mode are open.
ov5647partialCSI-2 streaming and a verified RAW10 640×480 frame; RAW8 is unverified.
eeprom_24c128partialeeprom_24c128_init(), _read() and _read_identity() on E1M-AEN803; eeprom_24c128_write() is untested.
optiga_trust_mpartialProbe, UID read and raw OpenApplication + GetDataObject(0xE0C2) on E1M-V2M103; key and crypto commands are not exercised.
murata_lbee5hy2fypartialWi-Fi scan, WPA2-SAE association, DHCP and TCP throughput, and Bluetooth hci0 up on E1M-V2M103; RF range on that unit is still under investigation.

Everything else has host-side smoke coverage only: null_arg_guard-style contract tests that prove a driver rejects NULL arguments, refuses calls on an uninitialised context, and bounds-checks its tables. Those are argument-validation contract tests, not simulated bus transactions — they say nothing about whether the part works.

Driver status vocabulary​

Every manifest carries a driver_status: — the single source of truth for how complete a driver is. A CI gate keeps each C header's @par Driver status: label in lockstep with its manifest, so a header can't misreport what's implemented.

StatusMeaning
completeThe driver's intended surface is implemented
partialA useful subset works; the manifest's inline comment names what's deferred
stubSkeleton only — compiles and validates arguments
plannedManifest exists, no driver code yet
noneCatalogue-only manifest — the part is supported through another layer (e.g. a Zephyr video driver), and no SDK chip driver is intended

As of v0.17.0 the count is 29 complete, 23 partial, 28 stub and 4 none; no manifest is planned any more (the four Murata BOM-candidate radio manifests were removed). The header gate, scripts/check_chip_header_status.py, accepts complete / partial / stub / planned on a header's @par Driver status: tag.

Two honest caveats about that gate: the header status tag is optional (33 headers under include/alp/chips/ carry one — the gate skips the rest), and the JSON schema types driver_status as a free string, so the vocabulary is enforced on headers rather than on the manifests themselves. The status definitions in the table above are this page's editorial reading — the SDK doesn't ship a glossary for them.

Opting in​

Two equivalent ways to enable a chip driver:

# board.yaml — recommended
chips:
- lsm6dso
- ssd1306
# prj.conf — manual
CONFIG_ALP_SDK_CHIP_LSM6DSO=y
CONFIG_ALP_SDK_CHIP_SSD1306=y

The board.yaml path is preferred because it lets the loader cross-check that the SoM actually routes the bus the chip needs.

Driver shape​

Every driver follows the same shape:

#include <alp/chips/<part>.h>

<part>_t ctx;
<part>_init(&ctx, bus, address_or_handle);

// Per-feature getters / setters
<part>_<op>(&ctx, ...);

_init() ACK-probes the chip on its bus. If the chip isn't populated, _init returns ALP_ERR_NOT_READY; well-written firmware handles this gracefully.

Catalogue (selected)​

Sensors​

DriverPartBusUse
lsm6dsoST LSM6DSOI²C / SPI6-axis IMU
bmi323Bosch BMI323I²C / SPI6-axis IMU
icm42670TDK ICM-42670I²C / SPI6-axis IMU
lis2dw12ST LIS2DW12I²C / SPI3-axis accelerometer
bmp581Bosch BMP581I²CBarometric pressure
bme280Bosch BME280I²CT/RH/pressure
tmp112TI TMP112I²CTemperature (on every Alp Lab SoM)
ina236TI INA236I²CCurrent / voltage monitor
ina228TI INA228I²C85 V 20-bit power / energy / charge monitor (new in v0.17.0)

ina228 (driver_status: partial) covers probe + identity check, ADC and shunt-calibration configuration, shunt / bus / die-temperature / current / power / energy / charge reads, accumulator reset and the DIAG_ALRT flags; the alert-limit registers and SHUNT_TEMPCO are not exposed. It exists for the E1M-X EVK's +5 V input-rail monitor (XEVK_I2C_ADDR_INA228_5V, 0x42, on the sensor bus), which Linux owns and whose BSP kernel has no INA228 driver, so the portable driver reads it over i2c-dev — the same position as ina236. On a bus a Zephyr core masters, upstream Zephyr's ti,ina228 sensor driver is the path. On the current E1M-X EVK revision the part's I2C bus pins are swapped in the design data and corrected by a hand rework, so it answers only on carriers with that rework applied — no answer means absent, not a fault.

tmp112 sits at 0x40 on every AEN / V2N / V2M module (ADD0 = GND on the fitted X2SON-5 part), not the 0x48 earlier SDKs declared — the stale 0x48 is why the stock Zephyr CONFIG_TMP112 driver never bound. If your firmware hard-coded 0x48 for the on-module sensor, change it.

Power​

DriverPartNotes
act8760Qorvo ACT88760-120.E1Primary PMIC (V2N family). Datasheet-verified two-slave register map (ADD1: master + Buck1–6; ADD2: Buck7 + LDOs). act8760_rail_get_voltage_mv() / act8760_rail_set_voltage_mv() work on the VSET0 slot only; DVS (VSET1..VSET3) is out of scope. All control writes are guarded — see below.
da9292Renesas DA9292Secondary PMIC (V2N family). Register map verified against datasheet Rev 2.2. Fault pins (INT / TW) land on Renesas pads, not the GD32 — read them with da9292_get_fault_pins() or register-level via BRD_I2C.
tps628640TI TPS628640Optional / DEEPX rail bucks

The pca9451a driver (the i.MX 93 PMIC) was removed in v0.17.0 along with E1M-NX9101 support.

Two V2N-family headers under include/alp/chips/ are not chip drivers: v2n_power_tree.h is a generated per-family power-tree table and pmic_rail_limit.h is a shared rail-guard type the PMIC drivers consume. Neither has a manifest or a chips: entry.

Changed in v0.17.0: V2N PMIC writes are fail-closed

act8760, da9292 and tps628640 now refuse every control write (rail enable, voltage setpoint, and most raw register writes) with ALP_ERR_NOSUPPORT until a per-rail guard table is installed with act8760_set_limits() / da9292_set_limits() / tps628640_set_limits(). The tables are pmic_rail_limit_t entries generated from the SoM power tree into <alp/chips/v2n_power_tree.h>; a setpoint outside its rail's window, or disabling a rail the power tree marks critical, is refused. Reads stay unguarded. The remaining raw act8760_write_reg() / da9292_write_reg() helpers reach only a small allow-list of registers (interrupt masks and event flags, plus the ACT88760's LED current); everything a typed call owns, and anything that could shut the PMIC down, is refused.

API changes that break existing callers: act8760_rail_set_vset() is replaced by act8760_rail_set_voltage_mv() (plus new act8760_rail_get_voltage_mv(), act8760_rail_set_enable() and act8760_rail_get_state()); da9292_v2n_base_init() and da9292_v2n_m1_enable_deepx_rail() are removed (the DEEPX channel is brought up by da9292_ch2_sequence()); and tps628640_write_reg() is removed in favour of the guarded tps628640_set_voltage_mv().

Clocks + RTC​

DriverPartNotes
clk_5l35023bRenesas / IDT 5L35023BClock generator (V2N family)
rv3028c7Micro Crystal RV-3028-C7Battery-backed RTC (every Alp Lab SoM, 0x52 on BRD_I2C)

New in v0.17.0, rv3028c7 adds a one-shot countdown timer (rv3028c7_timer_start() / _stop() / _read(), 1 s up to RV3028C7_TIMER_MAX_SECONDS = 4095 × 60 s, with requests above 4095 s rounded up to whole minutes so a wake is never early), a field-matched alarm (rv3028c7_alarm_arm() / _clear()), a wake-path interrupt service (rv3028c7_wake_service(), reporting RV3028C7_WAKE_TF / _AF / _UF), and rv3028c7_was_cold_start(), which reports whether the power-on-reset flag was set when rv3028c7_init() ran (init always clears it).

Storage + memory​

DriverPartNotes
eeprom_24c128Onsemi N24S128128-byte SoM manifest EEPROM

Connectivity​

DriverPartNotes
cc3501eTI CC3501EWi-Fi 6 + BLE 5.4 coprocessor (AEN family); SDK-embedded bridge firmware over SPI/SDIO — Wi-Fi/BLE, GPIO proxy, OTA-over-bridge
murata_lbee5hy2fyMurata LBEE5HY2FY-922Wi-Fi 6 + BLE 5.4 combo (V2N family)
rtl8211fdiRealtek RTL8211FI-VD-CGGigabit Ethernet PHY (×2 on V2N)
dp83825TI DP8382510/100 RMII Ethernet PHY (AEN family) — driver_status: none; reached through Zephyr's Ethernet MAC glue, no SDK driver

The four planned Murata radio manifests (murata_lbee0zz2kl, murata_lbee5pl2dl, murata_lbes0zz2ll, murata_lbes5pl2el) were removed in v0.17.0. On Linux, the V2N family's murata_lbee5hy2fy radio uses an out-of-tree brcmfmac backport (the in-tree driver has no ID for the module's CYW55513) plus the in-tree hci_uart / btbcm Bluetooth drivers; the SDK chip driver still owns only the module's side-channel enable lines.

Security​

DriverPartNotes
optiga_trust_mInfineon OPTIGA Trust MSecure element, 0x30 on BRD_I2C. Fitted on the V2N / V2M SKUs. Not fitted on E1M-AEN: the E1M-AEN datasheet (DS-AEN-001, hardware R3) has no secure element; the alp-sdk v0.17.0 AEN presets still name the part (assembled: false on E1M-AEN801). Probe, UID and raw APDU — see below.
warning
optiga_trust_m: raw APDU only, no typed crypto yet

As of v0.17.0 the driver runs on Infineon's host library (vendored), which provides the I2C data-link and transport stack. It does: probe the chip, read the Coprocessor UID (optiga_trust_m_read_product_info(), the 27-byte GET_DATA_OBJECT 0xE0C2 object), and run a raw APDU session (optiga_trust_m_send_apdu()). Key, crypto and NVM commands are reachable only by building the APDUs yourself through that raw session.

It does not yet have typed wrappers (CalcSign, GenKeyPair, ECDH, …) or the PSA driver hook that would let <alp/security.h> use the chip transparently. Shielded Connection (link encryption) is off. The library holds one IFX I2C instance, so an image drives one Trust M. Its driver_status is partial.

Co-processors + bridges​

DriverPartNotes
gd32g553GD GD32G553V2N supervisor MCU (8 PWM, 8 ADC, 2 DAC, 4 QEnc, 18 GPIO)
deepx_dxm1DEEPX DX-M1NPU (V2N-M1 only) — bring_up sequencer
gd32_swdbit-bang controllerSWD recovery for the GD32 bridge
pi3dbs12212Diodes PI3DBS12212APCIe mux — routes the lanes to the DEEPX NPU or the external slot (V2N-M1); deepx_dxm1_bring_up() drives it

IO + UI​

DriverPartNotes
tcal9538NXP TCAL95388-bit I/O expander — also drives the register-compatible TCA6408A / PCA9538 (see below)
ssd1306Solomon SSD1306Monochrome 128×64 OLED
ssd1331Solomon SSD1331Small colour OLED
ov5640OmniVision OV56405 MP MIPI CSI camera
cam_mux_pi3wvr626Diodes PI3WVR626Camera input mux — GPIO-driven select shim
tas2563TI TAS2563Class-D speaker amplifier
pdm_micPDM microphone helperFront-end for <alp/audio.h>
button_ledhelperComposite button + LED widget driver

tas2563 on the E1M-X EVK with a V2N-family SoM now also has a Linux ALSA kernel binding (ti,tas2563 codec nodes in the EVK devicetree, bench-verified on E1M-V2M103). There the kernel owns the amplifier's I2C address, so the userspace driver doesn't race it: tas2563_init() returns ALP_ERR_BUSY when the kernel already holds the address. On Zephyr / bare-metal targets (e.g. AEN) the SDK driver remains the sole owner.

tcal9538_init() accepts two strap families: the TCA9538 / TCAL9538 A1A0 range 0x70..0x73 (TCAL9538_I2C_ADDR_BASE), and — as of v0.11.0 — the register-compatible TCA6408A / PCA9538 single-A0 range 0x20..0x21 (TCAL9538_I2C_ADDR_ALT_BASE). The alt part is the E1M EVK's U35 alt-population (TCA6408ARSVR, R112 fitted / R145 DNP); 0x20 is bench-confirmed on the E1M EVK. On the E1M EVK's default population the expander sits on ALP_E1M_I2C0 at 0x72 (A1=1, A0=0). Pass 0 for the address to fall back to TCAL9538_I2C_ADDR_BASE.

The §D ecosystem set​

The drivers added under the chip-and-library ecosystem design. Every entry below ships with header + _init/probe + Kconfig + metadata YAML + NULL-arg ZTEST.

The [UNTESTED] markers below mean no HiL silicon bring-up of the SDK chip driver — true of every entry in this set (the one partial exception, ov9281, is noted in its row). What distinguishes this set is the [ABI-EXPERIMENTAL] annotation: their APIs may still change. Check each driver's driver_status: in metadata/chips/<id>.yaml for how much of its surface is actually implemented — many here are stub.

Camera sensors [UNTESTED]​

DriverPartBus / interfaceNotes
ov2640OmniVision OV2640DVP2 MP general-purpose
ov5645OmniVision OV5645MIPI CSI-25 MP autofocus
ov7670OmniVision OV7670DVPVGA cost-sensitive
ov9281OmniVision OV9281MIPI CSI-21 MP global-shutter mono. The SDK driver is a chip-ID stub; frames stream through a Zephyr video driver, bench-verified on E1M-AEN803 (see the warning at the top)
ar0234onsemi AR0234MIPI CSI-21080p global-shutter
imx219Sony IMX219MIPI CSI-28 MP — RPi Cam v2
imx477Sony IMX477MIPI CSI-212 MP — RPi HQ Camera
gc2145GalaxyCore GC2145DVP2 MP cost-sensitive

Camera sensors streamed by Zephyr video drivers (new in v0.17.0)​

These three manifests are catalogue-only (driver_status: none): there is no SDK chip driver, and frames stream through a Zephyr video driver carried in the SDK tree, driven by <alp/camera.h>. Select one through its camera module with the board.yaml cameras: block.

ManifestPartInterfaceCamera moduleBench status
imx296Sony IMX296LQR-C — 1.58 MP global-shutter colourMIPI CSI-2, 1 laneraspberry_pi_global_shutter_camerapartial
imx335Sony IMX335 — 5 MP colour, rolling shutterMIPI CSI-2, 2 lanesinnomaker_cam_imx335partial
ov5647OmniVision OV5647 — 5 MP raw BayerMIPI CSI-2, 2 lanesraspberry_pi_camera_module_1partial

imx296 and ov5647 use Zephyr drivers authored or backported into the SDK tree; imx335 reuses upstream Zephyr's driver (CONFIG_VIDEO_IMX335) with two SDK patches. For Linux, the sensor manifests carry each part's in-kernel driver facts (compatible, Kconfig symbol, accepted link frequencies, supplies), which the SDK uses to generate the E1M-X EVK camera devicetree fragments — note that OV9281 probes under Linux as ovti,ov9282.

Camera SerDes [UNTESTED]​

DriverPartStandard
ti_ds90ub953_954TI DS90UB953 / 954FPD-Link III
maxim_max9295_9296Maxim MAX9295 / 9296GMSL2

Displays [UNTESTED]​

DriverPartNotes
st7789Sitronix ST7789240×240 / 240×320 SPI TFT
ili9341Ilitek ILI9341240×320 SPI TFT
ili9488Ilitek ILI9488320×480 SPI TFT
ra8875RAiO RA88755–7″ TFT controller w/ resistive touch
sh1106Sino Wealth SH1106128×64 mono OLED — drop-in alt to SSD1306
il3820Solomon IL38204.2″ tri-colour e-paper
gdew0154t8GoodDisplay 1.54″1.54″ e-paper

Outside the chip catalogue: v0.17.0 adds a Zephyr display-bridge driver for the TI SN65DSI83 DSI-to-LVDS bridge, used to drive a Riverdi RVT121HVDFWCA0-B 12.1″ 1280×800 LVDS panel from an E8 AEN module's MIPI-DSI output (E1M EVK display connector, through a maintainer-built adapter board; shield e1m_evk_rvt121hvdfwca0, example examples/aen/aen-lvds-display on the M55-HE). It is not a chips: entry and has no display API of its own: the bridge is programmed once over I2C at init (and re-programmed by an optional health-check/recovery loop, CONFIG_SN65DSI83_RECOVERY), after which it is transparent and the panel is drawn through the SoC's display controller with Zephyr's display API. The driver source still marks itself bench-unverified, so treat it as experimental.

External NPU [UNTESTED]​

DriverPartNotes
hailo_8lHailo-8LM.2 PCIe NPU — host-side bring-up sequence

Industrial sensing [UNTESTED]​

DriverPartClass
bmp390Bosch BMP390Barometric pressure
ms5611TE MS5611Barometric pressure
lps22hbST LPS22HBBarometric pressure
vl53l1xST VL53L1XTime-of-flight distance
vl53l5cxST VL53L5CX8×8 ToF array
a02yyuwDFRobot A02YYUWUltrasonic distance (UART)
tsl2591AMS TSL2591Ambient light (2-channel)
veml7700Vishay VEML7700Ambient light (16-bit)
qmc5883lQST QMC5883L3-axis magnetometer
as5048a_bAMS AS5048 A/BMagnetic rotary encoder (I²C)
mt6701MagnTek MT6701Magnetic rotary encoder (I²C)
hx711Avia HX71124-bit strain-gauge ADC
max31855Maxim MAX31855Thermocouple → signed milli-C
max31865Maxim MAX31865RTD (PT100/PT1000) — 15-bit + fault

Motor / actuator control [UNTESTED]​

DriverPartNotes
drv8833TI DRV8833Dual H-bridge
drv8825TI DRV8825Stepper driver (STEP/DIR)
tmc2209Trinamic TMC2209Stepper w/ UART tuning (CRC-8)
a4988Allegro A4988Stepper driver

Cellular / RF / GNSS [UNTESTED]​

DriverPartClass
quectel_bg95Quectel BG95LTE-M / NB-IoT modem (AT)
quectel_bg77Quectel BG77LTE-M / NB-IoT modem (AT)
ublox_sara_r5u-blox SARA-R5LTE-M modem (AT)
semtech_sx1262Semtech SX1262LoRa radio (opcode)
semtech_sx1276Semtech SX1276LoRa radio (register)
ublox_neo_m9nu-blox NEO-M9NGNSS (UART NMEA)
ublox_max_m10su-blox MAX-M10SGNSS (UART NMEA)
atgm336hZhongkewei ATGM336HGNSS (UART NMEA)
atecc608bMicrochip ATECC608BCrypto co-processor (ATCA)

Audio [UNTESTED]​

DriverPartNotes
ics_43434InvenSense ICS-43434MEMS mic (I²S)
inmp441InvenSense INMP441MEMS mic (I²S, cost-sensitive)
wm8960Cirrus / Wolfson WM8960Stereo codec (I²C config + I²S)
tlv320aic3204TI TLV320AIC3204Premium stereo codec w/ miniDSP
max98357aADI MAX98357A3W class-D mono amp
es8388Everest ES8388Stereo codec (China-domestic)

Browse the full per-driver metadata under metadata/chips/; each .yaml carries verification: status alongside vendor / MPN / bus / Kconfig binding.

For what each driver_status: value means, see Driver status vocabulary above.

Per-SoM populated chips​

Which drivers are populated on each SoM family:

DriverAENV2NV2N-M1 (V2M)Bus · 7-bit address
cc3501e✓SPI
dp83825✓MDIO
murata_lbee5hy2fy✓✓SDIO / UART
rtl8211fdi✓×2✓×2MDIO
gd32g553✓✓BRD_I2C · 0x70
deepx_dxm1✓PCIe
act8760✓✓BRD_I2C · 0x25 + 0x26
da9292✓✓BRD_I2C · 0x1E
clk_5l35023b✓✓BRD_I2C · 0x69
tps628640optional✓ (DEEPX rails) + optionalBRD_I2C · 0x4D (optional); V2M adds 0x44, 0x48, 0x4F
rv3028c7✓✓✓BRD_I2C · 0x52
optiga_trust_m— (not fitted on E1M-AEN)✓✓BRD_I2C · 0x30
tmp112✓✓✓BRD_I2C · 0x40
eeprom_24c128✓✓✓E1M I2C0 · 0x50 (+ 0x58, the same part's identity page)

Addresses are 7-bit — listed because an integrator sharing a bus must avoid them. Note that the identity EEPROM answers on the E1M edge I2C0 bus (0x50 and 0x58), so a carrier device on E1M I2C0 must not use either address. The per-SKU source of truth is the i2c_devices: block in metadata/e1m_modules/<SKU>.yaml.

Each EVK populates its own board-side chip set. The two overlap (e.g. bmp581, bmi323, icm42670, tas2563, ina236, tcal9538) but differ: the E1M EVK carries lsm6dso, the ssd1306 / ssd1331 OLEDs, and an on-board ov5640 + cam_mux, whereas the E1M-X EVK drives MIPI-DSI panels and exposes dedicated CSI camera connectors instead. Declare preset: e1m-evk or e1m-x-evk in board.yaml to pick up that board's set.

Idiomatic usage​

#include <alp/peripheral.h>
#include <alp/chips/lsm6dso.h>

alp_i2c_t *bus = alp_i2c_open(&(alp_i2c_config_t){
.bus_id = 0u,
.bitrate_hz = 400000u,
});

lsm6dso_t imu;
if (lsm6dso_init(&imu, bus, LSM6DSO_I2C_ADDR_LOW) != ALP_OK) {
printk("[lsm6dso] init failed\n");
return;
}

/* ODR and full-scale are set together, in one call per sensor. */
if (lsm6dso_set_accel(&imu, LSM6DSO_ODR_104_HZ, LSM6DSO_ACCEL_FS_2G) != ALP_OK) {
printk("[lsm6dso] set_accel rejected\n");
return;
}

lsm6dso_axes_t a;
while (1) {
lsm6dso_read_accel(&imu, &a);
printk("ax=%d ay=%d az=%d\n", a.x, a.y, a.z);
k_msleep(10);
}

The address is strap-selected: LSM6DSO_I2C_ADDR_LOW is 0x6A (SDO/SA0 tied low), LSM6DSO_I2C_ADDR_HIGH is 0x6B. Gyro is symmetric — lsm6dso_set_gyro() + lsm6dso_read_gyro() into the same lsm6dso_axes_t; lsm6dso_read_temp() yields a raw int16_t.

v0.11.0: IMU config calls validate their enum arguments

bmi323_set_accel / _set_gyro, icm42670_set_accel / _set_gyro, lsm6dso_set_accel / _set_gyro and lis2dw12_set_accel now return ALP_ERR_INVAL when an ODR or full-scale argument is not a declared enum member, and they validate before any bus write.

Previously these masked the argument straight into the register field: where an enum's declared members didn't fill that field, an undeclared value was written to the chip as a reserved hardware encoding and the call still returned ALP_OK. If you passed a computed or cast value rather than a named enumerator, a call that used to "succeed" may now correctly fail — check the return.

icm42670_odr_t is sparse (it declares 0x0, 0x4..0x8, 0xA..0xF), so the reserved encodings inside its range are rejected too. Enums whose declared values already fill their register field (icm42670 / lsm6dso / lis2dw12 full-scale, tmp112_rate_t) are unchanged, as are a4988 / drv8825 / lis2dw12_mode_t, which already validated.

See also​

Questions about this page? Email contact@alplab.ai