half comment done
This commit is contained in:
parent
d62ffa3606
commit
039e65e6df
12 changed files with 736 additions and 38 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue