refactoring
This commit is contained in:
parent
5f39f42098
commit
9fe93ff1e6
1 changed files with 11 additions and 5 deletions
|
|
@ -1,9 +1,15 @@
|
|||
#pragma once
|
||||
typedef enum CMD_ID {
|
||||
CMD_ID_SWITCH = 1, /// Command for getting/setting the state of a switch
|
||||
CMD_ID_PWM = 2, /// Command for getting/setting the value of a PWM channel
|
||||
CMD_ID_ENUM_END = 3
|
||||
}CMD_ID;
|
||||
typedef enum SET_CMD_ID {
|
||||
SET_CMD_ID_SWITCH = 1, /// Command for getting/setting the state of a switch
|
||||
SET_CMD_ID_PWM = 2, /// Command for getting/setting the value of a PWM channel
|
||||
SET_CMD_ID_ENUM_END = 3
|
||||
}SET_CMD_ID;
|
||||
#pragma once
|
||||
typedef enum GET_CMD_ID {
|
||||
GET_CMD_ID_SWITCH = 1, /// Command for getting/setting the state of a switch
|
||||
GET_CMD_ID_PWM = 2, /// Command for getting/setting the value of a PWM channel
|
||||
GET_CMD_ID_ENUM_END = 3
|
||||
}GET_CMD_ID;
|
||||
#pragma once
|
||||
typedef enum CMD_RESULT {
|
||||
CMD_RESULT_SUCCESS = 1, ///
|
||||
|
|
|
|||
Loading…
Reference in a new issue