#pragma once #include "config.h" #include #include struct ButtonConfig; struct CpldInfo { std::string registerName; uint32_t i2cAddress; uint32_t i2cBus; int cpldMappedFd; // io fd mapped with the cpld }; int configCpld(ButtonConfig& buttonCfg);