1 2 #pragma once 3 #include "config.h" 4 5 #include <cstdint> 6 #include <string> 7 8 struct ButtonConfig; 9 10 struct CpldInfo 11 { 12 std::string registerName; 13 uint32_t i2cAddress; 14 uint32_t i2cBus; 15 int cpldMappedFd; // io fd mapped with the cpld 16 }; 17 18 int configCpld(ButtonConfig& buttonCfg); 19