; ***************************************************************************
; copyright   : (C) 2023 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.   *
; ***************************************************************************

.error "Dont include this, use devices/all/defs.asm instead"


.equ AQHOME_VALUETYPE_UNKNOWN   = 0
.equ AQHOME_VALUETYPE_TEMP      = 1
.equ AQHOME_VALUETYPE_HUMIDITY  = 2
.equ AQHOME_VALUETYPE_DOOR      = 3
.equ AQHOME_VALUETYPE_RGB       = 4
.equ AQHOME_VALUETYPE_RGBW      = 5
.equ AQHOME_VALUETYPE_MOTION    = 6
.equ AQHOME_VALUETYPE_CO2       = 7
.equ AQHOME_VALUETYPE_TVOC      = 8
.equ AQHOME_VALUETYPE_STATS     = 9
.equ AQHOME_VALUETYPE_LIGHT     = 10
.equ AQHOME_VALUETYPE_ONOFF     = 11
.equ AQHOME_VALUETYPE_ONOFFAUTO = 12
.equ AQHOME_VALUETYPE_RPM       = 13

.equ AQHOME_FW_TYPE_ATT84_BASE  = 0
.equ AQHOME_FW_TYPE_ATT84_TEMP1 = 1


; ---------------------------------------------------------------------------
; EEPROM positions


.equ EEPROM_OFFS_UUID                  = 0    ; 4 bytes (occupy total of 8 bytes for extensibility)
.equ EEPROM_OFFS_COMADDR               = 8    ; 1 byte (plus one byte reserved)

.equ EEPROM_OFFS_SEED                  = 10   ; 2 bytes

.equ EEPROM_OFFS_REED_CONF             = 12   ; 1 byte (plus one byte reserved)

.equ EEPROM_OFFS_MAL_CONF_ONTIME       = 14 ; 2 bytes
.equ EEPROM_OFFS_MAL_CONF_SRC1_ADDR    = 16 ; 1 byte
.equ EEPROM_OFFS_MAL_CONF_SRC1_VALUEID = 17 ; 1 byte
.equ EEPROM_OFFS_MAL_CONF_SRC2_ADDR    = 18 ; 1 byte
.equ EEPROM_OFFS_MAL_CONF_SRC2_VALUEID = 19 ; 1 byte

; next is 20

