mirror of
https://github.com/goldenfishs/MRobot.git
synced 2025-09-14 12:54:33 +08:00
32 lines
492 B
C
32 lines
492 B
C
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#define DEVICE_OK (0)
|
|
#define DEVICE_ERR (-1)
|
|
#define DEVICE_ERR_NULL (-2)
|
|
#define DEVICE_ERR_INITED (-3)
|
|
#define DEVICE_ERR_NO_DEV (-4)
|
|
|
|
/* AUTO GENERATED SIGNALS BEGIN */
|
|
|
|
/* AUTO GENERATED SIGNALS END */
|
|
|
|
/* USER SIGNALS BEGIN */
|
|
|
|
/* USER SIGNALS END */
|
|
/*设备层通用Header*/
|
|
typedef struct {
|
|
bool online;
|
|
uint64_t last_online_time;
|
|
} DEVICE_Header_t;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|