diff --git a/types/all.h b/types/all.h index 0ad3d23..05cf5fc 100644 --- a/types/all.h +++ b/types/all.h @@ -2,3 +2,80 @@ struct avparamset_t { uint32_t paramType; uint32_t paramValue; }; +struct datetime_t { + uint32_t now; // the code to _write_ these uses long )) + uint32_t tz; + uint32_t ntp_enable; + uint32_t daylight; + char ntp_ser[64]; +}; +struct devuser_t { + char account[0x20]; + char password[0x80]; +}; + +struct fileinfo_t { + uint32_t offset; + char filename[0x100]; +}; +struct opr_t { + uint8_t wakeupFixMin; + uint8_t wakeupFixSec; + uint8_t timedSleepEnable; + uint8_t timedWakeUpEnable; + uint8_t sleepRegularity; + uint8_t sleepHour; + uint8_t sleepMinute; + uint8_t sleepSecond; + uint8_t wakeupRegularity; + uint8_t wakeupHour; + uint8_t wakeupMinute; + uint8_t wakeupSecond; + uint8_t rcdPicEnable; + uint8_t rcdPicEvent; + uint8_t rcdPicSize; + uint8_t rcdPicInterval; + uint8_t rcdAvEnable; + uint8_t rcdAvEvent; + uint8_t rcdAvSize; + uint8_t rcdAvTime; + uint8_t pirLevel; + uint8_t language; + uint8_t pushEnable; + uint8_t vidScale; + uint8_t sleepEnable; + uint8_t wakeupEnable; + uint8_t apSleepEnable; + uint8_t waitConnTime; + uint8_t mcuFun; + uint8_t pushInterval; + uint8_t vidScaleCX; + uint8_t vidScaleCY; +}; + +struct sysopr_t { + uint8_t adcChkInterval; + uint8_t gpioChkInterval; + uint8_t sleepEnable; + uint8_t wakeupEnable; + uint8_t sleepRegularity; + uint8_t sleepHour; + uint8_t sleepMinute; + uint8_t sleepSecond; + uint8_t wakeupRegularity; + uint8_t wakeupHour; + uint8_t wakeupMinute; + uint8_t wakeupSecond; + uint8_t rcdPicEnable; + uint8_t rcdPicEvent; + uint8_t rcdPicSize; + uint8_t rcdPicInterval; + uint8_t rcdAvEnable; + uint8_t rcdAvEvent; + uint8_t rcdAvSize; + uint8_t rcdAvTime; + uint8_t pushEnable; + uint8_t alarmEnable; + uint8_t wifiEnable; + uint8_t ircut; +}; diff --git a/types/datetime_t.h b/types/datetime_t.h deleted file mode 100644 index 2667d67..0000000 --- a/types/datetime_t.h +++ /dev/null @@ -1,7 +0,0 @@ -struct datetime_t { - uint32_t now; // the code to _write_ these uses long )) - uint32_t tz; - uint32_t ntp_enable; - uint32_t daylight; - char ntp_ser[64]; -}; diff --git a/types/devuser.h b/types/devuser.h deleted file mode 100644 index 69c75d1..0000000 --- a/types/devuser.h +++ /dev/null @@ -1,5 +0,0 @@ -struct devuser_t { - char account[0x20]; - char password[0x80]; -}; - diff --git a/types/fileinfo.h b/types/fileinfo.h deleted file mode 100644 index 7f90c93..0000000 --- a/types/fileinfo.h +++ /dev/null @@ -1,4 +0,0 @@ -struct fileinfo_t { - uint32_t offset; - char filename[0x100]; -}; diff --git a/types/opr.h b/types/opr.h deleted file mode 100644 index 55a21f1..0000000 --- a/types/opr.h +++ /dev/null @@ -1,35 +0,0 @@ -struct opr_t { - uint8_t wakeupFixMin; - uint8_t wakeupFixSec; - uint8_t timedSleepEnable; - uint8_t timedWakeUpEnable; - uint8_t sleepRegularity; - uint8_t sleepHour; - uint8_t sleepMinute; - uint8_t sleepSecond; - uint8_t wakeupRegularity; - uint8_t wakeupHour; - uint8_t wakeupMinute; - uint8_t wakeupSecond; - uint8_t rcdPicEnable; - uint8_t rcdPicEvent; - uint8_t rcdPicSize; - uint8_t rcdPicInterval; - uint8_t rcdAvEnable; - uint8_t rcdAvEvent; - uint8_t rcdAvSize; - uint8_t rcdAvTime; - uint8_t pirLevel; - uint8_t language; - uint8_t pushEnable; - uint8_t vidScale; - uint8_t sleepEnable; - uint8_t wakeupEnable; - uint8_t apSleepEnable; - uint8_t waitConnTime; - uint8_t mcuFun; - uint8_t pushInterval; - uint8_t vidScaleCX; - uint8_t vidScaleCY; -}; - diff --git a/types/sysopr.h b/types/sysopr.h deleted file mode 100644 index 4bb3734..0000000 --- a/types/sysopr.h +++ /dev/null @@ -1,26 +0,0 @@ -struct sysopr_t { - uint8_t adcChkInterval; - uint8_t gpioChkInterval; - uint8_t sleepEnable; - uint8_t wakeupEnable; - uint8_t sleepRegularity; - uint8_t sleepHour; - uint8_t sleepMinute; - uint8_t sleepSecond; - uint8_t wakeupRegularity; - uint8_t wakeupHour; - uint8_t wakeupMinute; - uint8_t wakeupSecond; - uint8_t rcdPicEnable; - uint8_t rcdPicEvent; - uint8_t rcdPicSize; - uint8_t rcdPicInterval; - uint8_t rcdAvEnable; - uint8_t rcdAvEvent; - uint8_t rcdAvSize; - uint8_t rcdAvTime; - uint8_t pushEnable; - uint8_t alarmEnable; - uint8_t wifiEnable; - uint8_t ircut; -};