feat add control device struct in control framework

This commit is contained in:
Liu_Weichao
2023-04-18 17:05:11 +08:00
parent 0c45a736d3
commit 2b3f3de22e
2 changed files with 75 additions and 0 deletions
@@ -62,6 +62,15 @@ typedef enum
CONTROL_UNREGISTERED,
}ProtocolStatus;
struct ControlDevice
{
char *dev_name;
int status;
//to do
void *dev_done;
};
struct ControlProtocol
{
char *name;
@@ -70,6 +79,7 @@ struct ControlProtocol
struct ControlRecipe *recipe;
struct ControlDone *done;
struct ControlDevice *device;
void *args;