avr: added time message
This commit is contained in:
29
avr/modules/network/msg/time-d.asm
Normal file
29
avr/modules/network/msg/time-d.asm
Normal 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user