half comment done

This commit is contained in:
Siwat Sirichai 2024-01-01 01:38:25 +07:00
parent d62ffa3606
commit 039e65e6df
12 changed files with 736 additions and 38 deletions

View file

@ -5,8 +5,10 @@
#include <vector>
#include <map>
// Analog Card
#define CARD_TYPE_ANALOG 0x02
// Analog Card FRAM Address
#define ANALOG_INPUT_BANK_A_ADDRESS 0x48
#define ANALOG_INPUT_BANK_B_ADDRESS 0x49
#define DAC0_ADDRESS 0x60
@ -31,6 +33,7 @@ class AnalogCard : public ExpansionCard {
uint8_t getType();
private:
uint8_t handler_count;
// Map of handler IDs to callback functions
std::map<uint8_t, std::function<void(uint8_t, bool, uint16_t)>> dac_change_callbacks;
bool dac_state[4];
uint16_t dac_value[4];