avr: added time message

This commit is contained in:
Martin Preuss
2026-03-15 20:24:16 +01:00
parent 6c83991df7
commit 6d3a27977a
5 changed files with 263 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
; ***************************************************************************
; copyright : (C) 2026 by Martin Preuss
; email : martin@libchipcard.de
;
; ***************************************************************************
; * This file is part of the project "AqHome". *
; * Please see toplevel file COPYING of that project for license details. *
; ***************************************************************************
#ifndef AQH_AVR_NETMSG_TIME_D_ASM
#define AQH_AVR_NETMSG_TIME_D_ASM
; YYYYMMDDwhhmmss
.equ NETMSG_TIME_OFFS_UID = NETMSG_OFFS_PAYLOAD
.equ NETMSG_TIME_OFFS_MSGID = NETMSG_OFFS_PAYLOAD+4
.equ NETMSG_TIME_OFFS_YEAR = NETMSG_OFFS_PAYLOAD+6
.equ NETMSG_TIME_OFFS_MONTH = NETMSG_OFFS_PAYLOAD+8
.equ NETMSG_TIME_OFFS_DAYOFMONTH = NETMSG_OFFS_PAYLOAD+9
.equ NETMSG_TIME_OFFS_DAYOFWEEK = NETMSG_OFFS_PAYLOAD+10
.equ NETMSG_TIME_OFFS_HOUR = NETMSG_OFFS_PAYLOAD+11
.equ NETMSG_TIME_OFFS_MINUTES = NETMSG_OFFS_PAYLOAD+12
.equ NETMSG_TIME_OFFS_SECONDS = NETMSG_OFFS_PAYLOAD+13
.equ NETMSG_TIME_SIZE = NETMSG_OFFS_PAYLOAD+14 ; size without CRC byte
#endif