request names refactored
This commit is contained in:
parent
257b33b77a
commit
193a3254b8
3 changed files with 26 additions and 26 deletions
|
@ -27,35 +27,35 @@ void handleRequest()
|
|||
rqSelfTest();
|
||||
break;
|
||||
|
||||
case RQ_BA0:
|
||||
case RQ_DIGITAL_WRITE_0:
|
||||
rqDigitalWrite0();
|
||||
break;
|
||||
|
||||
case RQ_BA1:
|
||||
case RQ_DIGITAL_WRITE_1:
|
||||
rqDigitalWrite1();
|
||||
break;
|
||||
|
||||
case RQ_BE0:
|
||||
case RQ_DIGITAL_READ_0:
|
||||
rqDigitalRead0();
|
||||
break;
|
||||
|
||||
case RQ_BE1:
|
||||
case RQ_DIGITAL_READ_1:
|
||||
rqDigitalRead1();
|
||||
break;
|
||||
|
||||
case RQ_DSW:
|
||||
case RQ_READ_DIP_SWITCH:
|
||||
rqReadDipSwitch();
|
||||
break;
|
||||
|
||||
case RQ_AA0:
|
||||
case RQ_ANALOG_WRITE_0:
|
||||
rqAnalogWrite0();
|
||||
break;
|
||||
|
||||
case RQ_AA1:
|
||||
case RQ_ANALOG_WRITE_1:
|
||||
rqAnalogWrite1();
|
||||
break;
|
||||
|
||||
case RQ_ADC:
|
||||
case RQ_ANALOG_READ:
|
||||
rqAnalogRead();
|
||||
break;
|
||||
|
||||
|
@ -71,11 +71,11 @@ void handleRequest()
|
|||
rqPwmSetValue();
|
||||
break;
|
||||
|
||||
case RQ_SET_REG:
|
||||
case RQ_SET_REGISTER:
|
||||
rqSetRegister();
|
||||
break;
|
||||
|
||||
case RQ_GET_REG:
|
||||
case RQ_GET_REGISTER:
|
||||
rqGetRegister();
|
||||
break;
|
||||
|
||||
|
|
|
@ -8,17 +8,17 @@ constexpr static uint8_t RQ_INT_TEST = 3;
|
|||
constexpr static uint8_t RQ_SELF_TEST = 4;
|
||||
constexpr static uint8_t RQ_DIGITAL_WRITE_0 = 5;
|
||||
constexpr static uint8_t RQ_DIGITAL_WRITE_1 = 6;
|
||||
constexpr static uint8_t RQ_BE0 = 7;
|
||||
constexpr static uint8_t RQ_BE1 = 8;
|
||||
constexpr static uint8_t RQ_DSW = 9;
|
||||
constexpr static uint8_t RQ_AA0 = 10;
|
||||
constexpr static uint8_t RQ_AA1 = 11;
|
||||
constexpr static uint8_t RQ_ADC = 12;
|
||||
constexpr static uint8_t RQ_DIGITAL_READ_0 = 7;
|
||||
constexpr static uint8_t RQ_DIGITAL_READ_1 = 8;
|
||||
constexpr static uint8_t RQ_READ_DIP_SWITCH = 9;
|
||||
constexpr static uint8_t RQ_ANALOG_WRITE_0 = 10;
|
||||
constexpr static uint8_t RQ_ANALOG_WRITE_1 = 11;
|
||||
constexpr static uint8_t RQ_ANALOG_READ = 12;
|
||||
constexpr static uint8_t RQ_ADC_DAC_STROKE = 13;
|
||||
constexpr static uint8_t RQ_PWM_SET_FREQ = 14;
|
||||
constexpr static uint8_t RQ_PWM_SET_VALUE = 15;
|
||||
constexpr static uint8_t RQ_SET_REG = 16;
|
||||
constexpr static uint8_t RQ_GET_REG = 17;
|
||||
constexpr static uint8_t RQ_SET_REGISTER = 16;
|
||||
constexpr static uint8_t RQ_GET_REGISTER = 17;
|
||||
|
||||
uint8_t const rq_len[] = {
|
||||
/* RQ_DISC */ 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue