avr: start defining generic message with msgRef.

This commit is contained in:
Martin Preuss
2026-08-06 18:48:05 +02:00
parent 273c8d215a
commit bbb6c4ac7d

View File

@@ -0,0 +1,24 @@
; ***************************************************************************
; 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_NETWORK_MSG_GENREF_D_ASM
#define AQH_AVR_NETWORK_MSG_GENREF_D_ASM
.equ NETMSG_GENREF_OFFS_UID = NETMSG_OFFS_PAYLOAD
.equ NETMSG_GENREF_OFFS_MSGID = NETMSG_OFFS_PAYLOAD+4
.equ NETMSG_GENREF_OFFS_VALUE = NETMSG_OFFS_PAYLOAD+6 ; 0 to 4 bytes
.equ NETMSG_GENREF_SIZE0 = NETMSG_OFFS_PAYLOAD+6 ; size for empty value without CRC byte
.equ NETMSG_GENREF_SIZE8 = NETMSG_OFFS_PAYLOAD+7 ; size for 8 bit value without CRC byte
.equ NETMSG_GENREF_SIZE16 = NETMSG_OFFS_PAYLOAD+8 ; size for 16 bit value without CRC byte
.equ NETMSG_GENREF_SIZE32 = NETMSG_OFFS_PAYLOAD+10 ; size for 32 bit value without CRC byte
#endif