This is the multi-page printable view of this section. Click here to print...

Return to the regular view of this page

As of 2025-08-01

TwePacketIO

Packet from App_IO
    The TwePacketAppIO class interprets the standard application’s App_IO serial message (0x81).
    class TwePacketAppIO : public TwePacket, public DataAppIO { ... };

    Packet data details are stored in DataTwelite after executing parse<TwePacketIO>().

    DataAppIO Struct

    struct DataAppIO {
    		// Source serial number
    		uint32_t u32addr_src;
    
    		// Source logical ID
    		uint8_t u8addr_src;
    
    		// Destination logical ID
    		uint8_t u8addr_dst;
    
    		// Timestamp at transmission
    		uint16_t u16timestamp;
    
    		// Flag for low-latency transmission
    		bool b_lowlatency_tx;
    
    		// Number of repeat relays
    		uint16_t u8rpt_cnt;
    
    		// LQI value
    		uint16_t u8lqi;
    
    		// DI state bitmap (from LSB: DI1, DI2, DI3, DI4, ...)
    		uint8_t DI_mask;
    
    		// DI active (1 if in use) bitmap (from LSB: DI1, DI2, DI3, DI4, ...)
    		uint8_t DI_active_mask;
    
    		// Bitmap indicating whether DI is triggered by interrupt (from LSB: DI1, DI2, DI3, DI4, ...)
    		uint16_t DI_int_mask;
    };