4.30. Port Expander Module

4.30.1. Module Files

4.30.1.1. Driver

4.30.1.2. Configuration

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

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

4.30.1.3. Unit Test

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

4.30.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.