refactoring

This commit is contained in:
Thies Lennart Alff 2025-02-25 14:31:52 +01:00
parent 5f39f42098
commit 9fe93ff1e6
Signed by: lennartalff
GPG key ID: 4EC67D34D594104D

View file

@ -1,9 +1,15 @@
#pragma once #pragma once
typedef enum CMD_ID { typedef enum SET_CMD_ID {
CMD_ID_SWITCH = 1, /// Command for getting/setting the state of a switch SET_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 SET_CMD_ID_PWM = 2, /// Command for getting/setting the value of a PWM channel
CMD_ID_ENUM_END = 3 SET_CMD_ID_ENUM_END = 3
}CMD_ID; }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 #pragma once
typedef enum CMD_RESULT { typedef enum CMD_RESULT {
CMD_RESULT_SUCCESS = 1, /// CMD_RESULT_SUCCESS = 1, ///