4.31. Port Expander Module

4.31.1. Module Files

4.31.1.1. Driver

4.31.1.2. Configuration

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

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

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