controller-legacy/include/enums.h

32 lines
516 B
C
Raw Permalink Normal View History

2020-02-23 00:13:27 +00:00
#ifndef CONTROLLER_ENUMS_H
#define CONTROLLER_ENUMS_H
2020-04-16 23:38:25 +00:00
typedef enum
2020-04-13 22:50:55 +00:00
{
2020-04-16 19:19:56 +00:00
POLL_FDS_DISCOVERY,
POLL_FDS_COMMAND
2020-04-16 23:38:25 +00:00
} poll_fds_t;
2020-04-13 22:50:55 +00:00
2020-04-16 23:38:25 +00:00
typedef enum
2020-04-13 22:50:55 +00:00
{
DISCOVERY_MAPPING_ID = 0,
DISCOVERY_MAPPING_NAME = 1,
DISCOVERY_MAPPING_COMMAND_PORT = 2,
DISCOVERY_MAPPING_RELAY_COUNT = 3,
2020-04-16 23:38:25 +00:00
} discovery_mapping_t;
2020-04-13 22:50:55 +00:00
2020-04-16 23:38:25 +00:00
typedef enum
{
RELAY_DRIVER_NONE,
RELAY_DRIVER_GPIO,
RELAY_DRIVER_PIFACE,
2020-04-16 23:38:25 +00:00
} relay_driver_t;
2020-02-23 00:13:27 +00:00
typedef enum
{
RUN_TYPE_START,
RUN_TYPE_TEST,
} run_type_t;
2020-02-23 00:13:27 +00:00
#endif /* CONTROLLER_ENUMS_H */