diff --git a/iflytop_xsync_protocol.h b/iflytop_xsync_protocol.h index cff50d1..661279d 100644 --- a/iflytop_xsync_protocol.h +++ b/iflytop_xsync_protocol.h @@ -99,6 +99,7 @@ typedef struct { typedef enum { ktimecode_report_event = 0, kxsync_work_state_report_event = 1, + kdevice_online_report_event = 2, } iflytop_event_type_t; #define XYSNC_REG_DEVICE_INFO_START_ADD 0 @@ -146,12 +147,12 @@ typedef enum { * @brief * REG 16(32) STM32配置寄存器0 */ - kxsync_reg_stm32_obtaining_ip_mode = XYSNC_REG_STM32_CONFIG_START_ADD + 0, - kxsync_reg_stm32_ip = XYSNC_REG_STM32_CONFIG_START_ADD + 1, - kxsync_reg_stm32_gw = XYSNC_REG_STM32_CONFIG_START_ADD + 2, - kxsync_reg_stm32_netmask = XYSNC_REG_STM32_CONFIG_START_ADD + 3, - kxsync_reg_stm32_config0 = XYSNC_REG_STM32_CONFIG_START_ADD + 4, // bit0: timecode report enable, bit1: camera sync report enable - kxsync_reg_stm32_camera_sync_signal_count = XYSNC_REG_STM32_CONFIG_START_ADD + 5, // 写任意数值之后清零 + kxsync_reg_stm32_obtaining_ip_mode = XYSNC_REG_STM32_CONFIG_START_ADD + 0, + kxsync_reg_stm32_ip = XYSNC_REG_STM32_CONFIG_START_ADD + 1, + kxsync_reg_stm32_gw = XYSNC_REG_STM32_CONFIG_START_ADD + 2, + kxsync_reg_stm32_netmask = XYSNC_REG_STM32_CONFIG_START_ADD + 3, + kxsync_reg_stm32_config0 = XYSNC_REG_STM32_CONFIG_START_ADD + 4, // bit0: timecode report enable, bit1: camera sync report enable + kxsync_reg_stm32_camera_sync_signal_count = XYSNC_REG_STM32_CONFIG_START_ADD + 5, // 写任意数值之后清零 // kxsync_reg_stm32_camera_sync_signal_report_period = XYSNC_REG_STM32_CONFIG_START_ADD + 6, // 多少帧上报一次 kxsync_reg_stm32_action0 = XYSNC_REG_STM32_CONFIG_START_ADD + 14, // action reg @@ -177,13 +178,15 @@ typedef enum { kxsync_device_type_encoder = 3, } xsync_device_type_t; -typedef enum { obtaining_ip_mode_type_static = 0, obtaining_ip_mode_type_dhcp = 1 } obtaining_ip_mode_t; +typedef enum { obtaining_ip_mode_type_static = 0, obtaining_ip_mode_type_dhcp = 1, obtaining_ip_mode_type_lla = 2 } obtaining_ip_mode_t; static inline const char* obtaining_ip_mode_to_string(obtaining_ip_mode_t mode) { switch (mode) { case obtaining_ip_mode_type_static: return "static"; case obtaining_ip_mode_type_dhcp: return "dhcp"; + case obtaining_ip_mode_type_lla: + return "lla"; default: return "unknown"; }