📄 sysconf.h
字号:
}video_conf;
typedef struct motion_parm_conf
{
///////////////////////////////////
// Motion Detection:
// 0:OFF
// 1:ON
///////////////////////////////////
unsigned char Detection;
///////////////////////////////////
// Motion Detection Window1 Name:
///////////////////////////////////
unsigned char Name1[20];
///////////////////////////////////
// Sensitivity for Window1:
// 0~256
///////////////////////////////////
unsigned char Sensitivity1;
///////////////////////////////////
// Threshold for Window1:
// 0~64
///////////////////////////////////
unsigned char Threshold1;
///////////////////////////////////
// Start coordinate X for Window1:
///////////////////////////////////
unsigned short StartX1;
///////////////////////////////////
// Start coordinate Y for Window1:
///////////////////////////////////
unsigned short StartY1;
///////////////////////////////////
// Stop coordinate X for Window1:
///////////////////////////////////
unsigned short StopX1;
///////////////////////////////////
// Stop coordinate Y for Window1:
///////////////////////////////////
unsigned short StopY1;
///////////////////////////////////
// Motion Detection Window2 Name:
///////////////////////////////////
unsigned char Name2[20];
///////////////////////////////////
// Sensitivity for Window2:
// 0~256
///////////////////////////////////
unsigned char Sensitivity2;
///////////////////////////////////
// Threshold for Window2:
// 0~64
///////////////////////////////////
unsigned char Threshold2;
///////////////////////////////////
// Start coordinate X for Window2:
///////////////////////////////////
unsigned short StartX2;
///////////////////////////////////
// Start coordinate Y for Window2:
///////////////////////////////////
unsigned short StartY2;
///////////////////////////////////
// Stop coordinate X for Window2:
///////////////////////////////////
unsigned short StopX2;
///////////////////////////////////
// Stop coordinate Y for Window2:
///////////////////////////////////
unsigned short StopY2;
///////////////////////////////////
// Motion Detection Window3 Name:
///////////////////////////////////
unsigned char Name3[20];
///////////////////////////////////
// Sensitivity for Window3:
// 0~256
///////////////////////////////////
unsigned char Sensitivity3;
///////////////////////////////////
// Threshold for Window3:
// 0~64
///////////////////////////////////
unsigned char Threshold3;
///////////////////////////////////
// Start coordinate X for Window3:
///////////////////////////////////
unsigned short StartX3;
///////////////////////////////////
// Start coordinate Y for Window3:
///////////////////////////////////
unsigned short StartY3;
///////////////////////////////////
// Stop coordinate X for Window3:
///////////////////////////////////
unsigned short StopX3;
///////////////////////////////////
// Stop coordinate Y for Window3:
///////////////////////////////////
unsigned short StopY3;
///////////////////////////////////
// Motion detection frame interval:
// Value : 1~30
///////////////////////////////////
unsigned char Interval;
///////////////////////////////////
// No of snapshot:
// Value : 1~5
///////////////////////////////////
unsigned char Rotate;
///////////////////////////////////
// Reserve for new parameter:
///////////////////////////////////
unsigned char Reserve[256];
}motion_parm_conf;
typedef struct motion_parm_app_conf
{
///////////////////////////////////
// TriggerIO:
// 0:Disable
// 1:Enable
///////////////////////////////////
unsigned char TriggerIO;
///////////////////////////////////
// MailAlarm:
// 0:Disable
// 1:Enable
///////////////////////////////////
unsigned char MailAlarm;
///////////////////////////////////
// FtpAlarm:
// 0:Disable
// 1:Enable
///////////////////////////////////
unsigned char FtpAlarm;
///////////////////////////////////
// FileBaseName:
// Snapshot file basename
///////////////////////////////////
unsigned char FileBaseName[20];
///////////////////////////////////
// TimeSuffix:
// use time as snapshot file name suffix
// 0:Disable
// 1:Enable
///////////////////////////////////
unsigned char TimeSuffix;
///////////////////////////////////
// Reserve for new parameter:
///////////////////////////////////
unsigned char Reserve[256];
}motion_parm_app_conf;
typedef struct smtp_conf
{
///////////////////////////////////
// SMTP Server1:
///////////////////////////////////
unsigned char Server1[32];
///////////////////////////////////
// Account1:
// for smtp authendication
///////////////////////////////////
unsigned char Account1[20];
///////////////////////////////////
// Passwd1:
// for smtp authendication
///////////////////////////////////
unsigned char Passwd1[20];
///////////////////////////////////
// Recipient1:
///////////////////////////////////
unsigned char Recipient1[32];
///////////////////////////////////
// Authentication method1:
// 1: PLAIN (Default)
// 2: LOGIN
///////////////////////////////////
unsigned char Auth_Method1;
///////////////////////////////////
// SMTP Server2:
///////////////////////////////////
unsigned long ServerIP2;
///////////////////////////////////
// Account2:
// for smtp authendication
///////////////////////////////////
unsigned char Account2[20];
///////////////////////////////////
// Passwd2:
// for smtp authendication
///////////////////////////////////
unsigned char Passwd2[20];
///////////////////////////////////
// Recipient2:
///////////////////////////////////
unsigned char Recipient2[32];
///////////////////////////////////
// Authentication method1:
// 1: PLAIN (Default)
// 2: LOGIN
///////////////////////////////////
unsigned char Auth_Method2;
///////////////////////////////////
// Reserve for new parameter:
///////////////////////////////////
unsigned char Reserve[256];
}smtp_conf;
typedef struct ftp_conf
{
///////////////////////////////////
// FTP Server1:
///////////////////////////////////
unsigned char Server1[32];
///////////////////////////////////
// FTP Server port1:
///////////////////////////////////
unsigned short ServerPort1;
///////////////////////////////////
// Account1:
///////////////////////////////////
unsigned char Account1[20];
///////////////////////////////////
// Passwd1:
///////////////////////////////////
unsigned char Passwd1[20];
///////////////////////////////////
// Folder1:
// default:"/"
///////////////////////////////////
unsigned char Folder1[20];
///////////////////////////////////
// PasssiveMode1:
// 0:Disable
// 1:Enable
///////////////////////////////////
unsigned char PasssiveMode1;
///////////////////////////////////
// FTP Server2:
///////////////////////////////////
unsigned char Server2[32];
///////////////////////////////////
// FTP Server port2:
///////////////////////////////////
unsigned short ServerPort2;
///////////////////////////////////
// Account2:
///////////////////////////////////
unsigned char Account2[20];
///////////////////////////////////
// Passwd2:
///////////////////////////////////
unsigned char Passwd2[20];
///////////////////////////////////
// Folder2:
// default:"/"
///////////////////////////////////
unsigned char Folder2[20];
///////////////////////////////////
// PasssiveMode2:
// 0:Disable
// 1:Enable
///////////////////////////////////
unsigned char PasssiveMode2;
///////////////////////////////////
// Reserve for new parameter:
///////////////////////////////////
unsigned char Reserve[256];
}ftp_conf;
typedef struct ntp_conf
{
///////////////////////////////////
// NTP Server:
///////////////////////////////////
unsigned char Server[32];
///////////////////////////////////
// TimeZone:
// 0~25:(GMT-12)~GMT~(GMT+12)
///////////////////////////////////
unsigned char TimeZone;
///////////////////////////////////
// Reserve for new parameter:
///////////////////////////////////
unsigned char Reserve[256];
}ntp_conf;
#define SYSOFFSET 0
#define NETOFFSET sizeof(sys_conf)
#define WLANOFFSET (NETOFFSET + sizeof(network_conf))
#define VIDEOOFFSET (WLANOFFSET + sizeof(wlan_conf))
#define MOTIONOFFSET (VIDEOOFFSET + sizeof(video_conf))
#define MOTIONAPPOFFSET (MOTIONOFFSET + sizeof(motion_parm_conf))
#define SMTPOFFSET (MOTIONAPPOFFSET + sizeof(motion_parm_app_conf))
#define FTPOFFSET (SMTPOFFSET + sizeof(smtp_conf))
#define NTPOFFSET (FTPOFFSET + sizeof(ftp_conf))
#define READBUF 5000
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -