4.34. Port Expander Module

4.34.1. Module Files

4.34.1.1. Driver

  • src/app/driver/pex/pex.c

  • src/app/driver/pex/pex.h

4.34.1.2. Configuration

  • src/app/driver/config/pex_cfg.c

  • src/app/driver/config/pex_cfg.h

4.34.1.3. Unit Test

  • tests/unit/app/driver/pex/test_pex.c

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