Subversion Repositories tpanel

Rev

Rev 446 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 446 Rev 464
Line 1... Line 1...
1
/*
1
/*
2
 * Copyright (C) 2018 to 2023 by Andreas Theofilu <andreas@theosys.at>
2
 * Copyright (C) 2018 to 2024 by Andreas Theofilu <andreas@theosys.at>
3
 *
3
 *
4
 * This program is free software; you can redistribute it and/or modify
4
 * This program is free software; you can redistribute it and/or modify
5
 * it under the terms of the GNU General Public License as published by
5
 * it under the terms of the GNU General Public License as published by
6
 * the Free Software Foundation; either version 3 of the License, or
6
 * the Free Software Foundation; either version 3 of the License, or
7
 * (at your option) any later version.
7
 * (at your option) any later version.
Line 255... Line 255...
255
            extTemp = 0;
255
            extTemp = 0;
256
            dateTime[0] = 0;
256
            dateTime[0] = 0;
257
        }
257
        }
258
    } ANET_BLINK;
258
    } ANET_BLINK;
259
 
259
 
-
 
260
    typedef struct ANET_NETWORK     // Setting the IP address, subnet mask and gateway of the Ethernet interface of the unit.
-
 
261
    {
-
 
262
        unsigned char bf;
-
 
263
        char data[1024];
-
 
264
        size_t len;
-
 
265
    }ANET_NETWORK;
-
 
266
 
260
    typedef struct ANET_FILETRANSFER    // File transfer
267
    typedef struct ANET_FILETRANSFER    // File transfer
261
    {
268
    {
262
        uint16_t ftype;         // 0 = not used, 1=IR, 2=Firmware, 3=TP file, 4=Axcess2
269
        uint16_t ftype;         // 0 = not used, 1=IR, 2=Firmware, 3=TP file, 4=Axcess2
263
        uint16_t function;      // The function to be performed, or length of data block
270
        uint16_t function;      // The function to be performed, or length of data block
264
        uint16_t info1;
271
        uint16_t info1;
Line 286... Line 293...
286
        ANET_LEVEL reqLevels;
293
        ANET_LEVEL reqLevels;
287
        ANET_LEVSUPPORT sendLevSupport;
294
        ANET_LEVSUPPORT sendLevSupport;
288
        ANET_ADEVINFO srDeviceInfo;     // send/receive device info
295
        ANET_ADEVINFO srDeviceInfo;     // send/receive device info
289
        ANET_CUSTOM customEvent;
296
        ANET_CUSTOM customEvent;
290
        ANET_BLINK blinkMessage;
297
        ANET_BLINK blinkMessage;
-
 
298
        ANET_NETWORK network;
291
        ANET_FILETRANSFER filetransfer;
299
        ANET_FILETRANSFER filetransfer;
292
    } ANET_DATA;
300
    } ANET_DATA;
293
 
301
 
294
    typedef struct ANET_COMMAND // Structure of type command (type = 0x00, status = 0x000c)
302
    typedef struct ANET_COMMAND // Structure of type command (type = 0x00, status = 0x000c)
295
    {
303
    {