libgpiod Switch

Requirements

Write a class LibGPIODSwitch that uses jjj link internally.

This class is going to be used to implement switches that software might want to use in real life.

Implementation

Attention

This task has a dependency on (DONE) Switch Interface.

  • Write a class LibGPIODSwitch that has methods

    • (Constructor). Configures the GPIO.

      • jjj initialization

      • Configure for output

    • void set_state(bool);

Testing

Write a test program in bin/ that you use interactively/manually. Much like SysFS GPIO Switch.

Future (Not Part Of This Development Cycle)

Dependencies

cluster_fh2021 WS2023/24: Group Project - Tasks fh2021_switch_interface (DONE) Switch Interface fh2021_libgpiod_switch libgpiod Switch fh2021_libgpiod_switch->fh2021_switch_interface