jancumps / pico_scpi_usbtmc_labtool

LabVIEW compatible instrument on a Raspberry Pico
https://github.com/jancumps/pico_scpi_usbtmc_labtool/wiki
MIT License
12 stars 16 forks source link

refactor register handling API to use a single function for each SCPI callback #53

Closed jancumps closed 11 months ago

jancumps commented 11 months ago

Each custom register handler has its own almost similar code body.
Can I simplify this into one function for writing, one for reading registers?

Avoids duplicate logic (and duplicate code lines, although that's not the driver)