; ***************************************************************************
; 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_TRIGGERACTOR_DEFS_ASM
#define AQH_AVR_MODULES_TRIGGERACTOR_DEFS_ASM


.equ TCA_SOURCE_OFFS_ADDR          = 0
.equ TCA_SOURCE_OFFS_VALUEID       = 1
.equ TCA_SOURCE_OFFS_LOWLIM_LO     = 2
.equ TCA_SOURCE_OFFS_LOWLIM_HI     = 3
.equ TCA_SOURCE_OFFS_HIGHLIM_LO    = 4
.equ TCA_SOURCE_OFFS_HIGHLIM_HI    = 5
.equ TCA_SOURCE_SIZE               = 6


.equ TCA_FLASH_OFFS_BEGIN          = HTIM_FLASH_SIZE
.equ TCA_FLASH_SIZE                = TCA_FLASH_OFFS_BEGIN+0


.equ TCA_RAM_OFFS_BEGIN            = HTIM_RAM_SIZE
.equ TCA_RAM_OFFS_GUARD_SOURCE     = TCA_RAM_OFFS_BEGIN+0
.equ TCA_RAM_OFFS_TRIGGER_SOURCE1  = TCA_RAM_OFFS_BEGIN+TCA_SOURCE_SIZE
.equ TCA_RAM_OFFS_TRIGGER_SOURCE2  = TCA_RAM_OFFS_TRIGGER_SOURCE1+TCA_SOURCE_SIZE
.equ TCA_RAM_SIZE                  = TCA_RAM_OFFS_TRIGGER_SOURCE2+TCA_SOURCE_SIZE


.equ TCA_EE_OFFS_BEGIN             = HTIM_EE_SIZE
.equ TCA_EE_OFFS_GUARD_SOURCE      = TCA_EE_OFFS_BEGIN
.equ TCA_EE_OFFS_TRIGGER_SOURCE1   = TCA_EE_OFFS_BEGIN+TCA_SOURCE_SIZE
.equ TCA_EE_OFFS_TRIGGER_SOURCE2   = TCA_EE_OFFS_TRIGGER_SOURCE1+TCA_SOURCE_SIZE
.equ TCA_EE_SIZE                   = TCA_EE_OFFS_TRIGGER_SOURCE2+TCA_SOURCE_SIZE


.equ TCA_FLAGBIT_UPDATED        = 0
.equ TCA_FLAGBITS_NEED_TRIGGER  = 1
.equ TCA_FLAGBITS_NEED_DISABLE  = 2
.equ TCA_FLAGBITS_NEED_ENABLE   = 3


#endif

