; *************************************************************************** ; 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_GUI2_NETSTATS_ASM #define AQH_AVR_GUI2_NETSTATS_ASM ; *************************************************************************** ; defines .equ NETSTATWIN_OFFS_BEGIN = MAINWINDOW_SIZE .equ NETSTATWIN_OFFS_TIMER = NETSTATWIN_OFFS_BEGIN+0 .equ NETSTATWIN_SIZE = NETSTATWIN_OFFS_BEGIN+1 .equ NETSTATWIN_TIMERVAL = 50 ; update every 5 secs ; *************************************************************************** ; code .cseg ; --------------------------------------------------------------------------- ; @routine NetStatWin_new @global ; ; @param Y pointer to GUIAPP ; @return CFLAG set of okay, cleared otherwise ; @return Y address of newly created object NetStatWin_new: bigcall GuiApp_GetRootWindow brcc NetStatWin_new_ret mov xl, r18 ; use root window as parent for main window mov xh, r19 ldi r24, LOW(NETSTATWIN_SIZE) ldi r25, HIGH(NETSTATWIN_SIZE) bigcall Object_Alloc ; Y=space (!r16, !r17, !X) brcc NetStatWin_new_ret rcall NetStatWin_Init NetStatWin_new_ret: ret ; @end ; --------------------------------------------------------------------------- ; @routine NetStatWin_new @global ; ; @param Y pointer to newly allocated widget data ; @param X pointer to root window ; @return CFLAG set of okay, cleared otherwise ; @clobbers any, !Y NetStatWin_Init: ldi r16, (1<