Macros | |
#define | ADC_PINBASE 65 |
#define | ANALOG_OUT_PIN 1 |
#define | ARRAY_SIZE(x) (sizeof((x)) / sizeof((x)[0])) |
#define | DOUT_PINBASE 100 |
#define | MAX_INPUT 13 |
#define | MAX_OUTPUT 8 |
Functions | |
void | finalizeHardware () |
Resource clearing. More... | |
void | initializeHardware () |
Initialization procedures. More... | |
int | mcp_adcRead (int chan) |
int | mcp_adcSetup (int i2cAddress) |
void * | readAdcThread (void *args) |
void | sleep_ms (int milliseconds) |
void | updateBuffersIn () |
Update internal buffers. More... | |
void | updateBuffersOut () |
Update output buffers. More... | |
Variables | |
int | adc_fd |
unsigned int | adcBuffer [2] |
std::mutex | adcBufferLock |
const int | inputPinMask [MAX_INPUT] = { 7, 7, 0, 2, 4, 3, 5, 14, 11, 10, 13, 6, 12 } |
void finalizeHardware | ( | ) |
void initializeHardware | ( | ) |
void updateBuffersIn | ( | ) |
void updateBuffersOut | ( | ) |