; *************************************************************************** ; 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. * ; *************************************************************************** ; *************************************************************************** ; code .cseg ; --------------------------------------------------------------------------- ; Enqueue a COM Send stats packet. ; ; IN: ; - R16: destination address ; OUT: ; - CFLAG: set if okay, clear otherwise ; MODIFIED REGS: R16, R17, R20, X (R15, Y) CPRO_EnqueueComSendStats: push r15 in r15, SREG cli push r16 rcall COM_AllocBufferAndGetXY ; (r16, r17, r21) -> Y=buffer, X=msg pop r16 brcc CPRO_EnqueueComSendStats_error ldi r17, CPRO_PAYLOAD_FLAGS_UID | (8<