; ***************************************************************************
; 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_MODULES_HOLDTIMER_DEFS_ASM
#define AQH_AVR_MODULES_HOLDTIMER_DEFS_ASM


.equ HTIM_FLASH_OFFS_RAMPTR_LO    =  0
.equ HTIM_FLASH_OFFS_RAMPTR_HI    =  1
.equ HTIM_FLASH_OFFS_ON_PTR_LO    =  2
.equ HTIM_FLASH_OFFS_ON_PTR_HI    =  3
.equ HTIM_FLASH_OFFS_OFF_PTR_LO   =  4
.equ HTIM_FLASH_OFFS_OFF_PTR_HI   =  5
.equ HTIM_FLASH_OFFS_RELOADVAL_LO =  6
.equ HTIM_FLASH_OFFS_RELOADVAL_HI =  7
.equ HTIM_FLASH_SIZE              =  8


.equ HTIM_RAM_OFFS_FLAGS          = 0
.equ HTIM_RAM_OFFS_CURRVAL_LO     = 1
.equ HTIM_RAM_OFFS_CURRVAL_HI     = 2
.equ HTIM_RAM_OFFS_RELOAD_LO      = 3
.equ HTIM_RAM_OFFS_RELOAD_HI      = 4
.equ HTIM_RAM_OFFS_MODE           = 5
.equ HTIM_RAM_SIZE                = 6


.equ HTIM_EE_OFFS_RELOAD_LO       = 0
.equ HTIM_EE_OFFS_RELOAD_HI       = 1
.equ HTIM_EE_OFFS_MODE            = 2
.equ HTIM_EE_SIZE                 = 3

.equ HTIM_FLAGBIT_ACTIVE          = 7
.equ HTIM_FLAGBIT_ACTORENABLED    = 6
.equ HTIM_FLAGBIT_STATE           = 5




#endif

