Delphine CC Chiu | ccd7db0 | 2023-02-09 14:48:53 +0800 | [diff] [blame] | 1 | |
2 | #pragma once | ||||
Delphine CC Chiu | 15c60e2 | 2024-04-12 13:01:32 -0500 | [diff] [blame] | 3 | #include "config.hpp" |
Delphine CC Chiu | ccd7db0 | 2023-02-09 14:48:53 +0800 | [diff] [blame] | 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); |