; ***************************************************************************
; copyright   : (C) 2025 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 AVR_MODULES_UARTFD_DEFS_ASM
#define AVR_MODULES_UARTFD_DEFS_ASM


.equ UARTFD_SKIPPING_TIME  = 2
.equ UARTFD_READ_TIMEOUT   = 5
.equ UARTFD_WRITE_TIMEOUT  = 5


.equ UARTFD_IFACE_STATUS_BIT_OVERRUN    = 0
.equ UARTFD_IFACE_STATUS_BIT_HWERR      = 1
.equ UARTFD_IFACE_STATUS_BIT_BADMSGSIZE = 2
.equ UARTFD_IFACE_STATUS_BIT_SKIPPING   = 3



.equ UARTFD_IFACE_SIZE_BUFFER       = NET_BUFFERS_SIZE-1

.equ UARTFD_IFACE_OFFS_BEGIN        = NET_IFACE_SIZE
.equ   UARTFD_IFACE_OFFS_STATUS     = UARTFD_IFACE_OFFS_BEGIN
.equ   UARTFD_IFACE_OFFS_WPOS_LOW   = UARTFD_IFACE_OFFS_BEGIN+1
.equ   UARTFD_IFACE_OFFS_WPOS_HIGH  = UARTFD_IFACE_OFFS_BEGIN+2
.equ   UARTFD_IFACE_OFFS_WBUFLEFT   = UARTFD_IFACE_OFFS_BEGIN+3
.equ   UARTFD_IFACE_OFFS_WBUFNUM    = UARTFD_IFACE_OFFS_BEGIN+4
.equ   UARTFD_IFACE_OFFS_RPOS_LOW   = UARTFD_IFACE_OFFS_BEGIN+5
.equ   UARTFD_IFACE_OFFS_RPOS_HIGH  = UARTFD_IFACE_OFFS_BEGIN+6
.equ   UARTFD_IFACE_OFFS_RBUFUSED   = UARTFD_IFACE_OFFS_BEGIN+7
.equ   UARTFD_IFACE_OFFS_RBUFLEFT   = UARTFD_IFACE_OFFS_BEGIN+8
.equ   UARTFD_IFACE_OFFS_RBUFFER    = UARTFD_IFACE_OFFS_BEGIN+9
.equ UARTFD_IFACE_SIZE              = UARTFD_IFACE_OFFS_RBUFFER+UARTFD_IFACE_SIZE_BUFFER




#endif



