35 lines
958 B
C++
35 lines
958 B
C++
#ifndef REQUESTS_H
|
|
#define REQUESTS_H
|
|
|
|
#include <avr/wdt.h>
|
|
#include "global_vars.h"
|
|
#include "boardinfo.h"
|
|
|
|
constexpr static uint8_t RQ_DISC = 0;
|
|
constexpr static uint8_t RQ_TEST = 1;
|
|
constexpr static uint8_t RQ_INFO = 2;
|
|
constexpr static uint8_t RQ_INT = 3;
|
|
constexpr static uint8_t RQ_BA0 = 5;
|
|
constexpr static uint8_t RQ_BA1 = 6;
|
|
constexpr static uint8_t RQ_BE0 = 7;
|
|
constexpr static uint8_t RQ_BE1 = 8;
|
|
constexpr static uint8_t RQ_AA0 = 9;
|
|
constexpr static uint8_t RQ_AA1 = 10;
|
|
constexpr static uint8_t RQ_ADC = 11;
|
|
constexpr static uint8_t RQ_ADC_DAC_STROKE = 12;
|
|
|
|
void rqTestConnection(void);
|
|
void rqBoardInfo(void);
|
|
void rqTestIntConv(void);
|
|
void rqTestLongConv(void);
|
|
void rqDigitalWrite0(void);
|
|
void rqDigitalWrite1(void);
|
|
void rqDigitalRead0(void);
|
|
void rqDigitalRead1(void);
|
|
void rqAnalogWrite0(void);
|
|
void rqAnalogWrite1(void);
|
|
void rqAnalogRead(void);
|
|
void rqAdcDacStroke(void);
|
|
|
|
#endif // REQUESTS_H
|