From a334e32f535d59d1a2f63f989baae862a3bcdc45 Mon Sep 17 00:00:00 2001 From: DavidVentura Date: Wed, 24 Jan 2024 10:16:11 +0100 Subject: [PATCH] add structs for ghidra --- types/all.h | 4 ++++ types/datetime_t.h | 7 +++++++ types/devuser.h | 5 +++++ types/fileinfo.h | 4 ++++ types/opr.h | 35 +++++++++++++++++++++++++++++++++++ types/sysopr.h | 26 ++++++++++++++++++++++++++ 6 files changed, 81 insertions(+) create mode 100644 types/all.h create mode 100644 types/datetime_t.h create mode 100644 types/devuser.h create mode 100644 types/fileinfo.h create mode 100644 types/opr.h create mode 100644 types/sysopr.h diff --git a/types/all.h b/types/all.h new file mode 100644 index 0000000..0ad3d23 --- /dev/null +++ b/types/all.h @@ -0,0 +1,4 @@ +struct avparamset_t { + uint32_t paramType; + uint32_t paramValue; +}; diff --git a/types/datetime_t.h b/types/datetime_t.h new file mode 100644 index 0000000..2667d67 --- /dev/null +++ b/types/datetime_t.h @@ -0,0 +1,7 @@ +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 new file mode 100644 index 0000000..69c75d1 --- /dev/null +++ b/types/devuser.h @@ -0,0 +1,5 @@ +struct devuser_t { + char account[0x20]; + char password[0x80]; +}; + diff --git a/types/fileinfo.h b/types/fileinfo.h new file mode 100644 index 0000000..7f90c93 --- /dev/null +++ b/types/fileinfo.h @@ -0,0 +1,4 @@ +struct fileinfo_t { + uint32_t offset; + char filename[0x100]; +}; diff --git a/types/opr.h b/types/opr.h new file mode 100644 index 0000000..55a21f1 --- /dev/null +++ b/types/opr.h @@ -0,0 +1,35 @@ +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 new file mode 100644 index 0000000..4bb3734 --- /dev/null +++ b/types/sysopr.h @@ -0,0 +1,26 @@ +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; +};