4.31. Port Expander Module

4.31.1. Module Files Driver Configuration

  • src/app/driver/config/pex_cfg.c (API, source)

  • src/app/driver/config/pex_cfg.h (API, source) Unit Test

  • tests/unit/app/driver/pex/test_pex.c (API, source)

4.31.2. Detailed Description

The driver addresses the port expander devices through getter and setter functions.

The driver works with the NXP PCA9539 port expander IC, which has 16 GPIOs. It is also compatible with the TI TCA9539.