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

TwePacketTwelite

Packet from App_Twelite
    The TwePacketTwelite class interprets the 0x81 command from the standard application App_Twelite.
    class TwePacketTwelite : public TwePacket, public DataTwelite { ... };

    After executing parse<TwePacketTwelite>(), packet information is stored in DataTwelite.

    DataTwelite Struct

    struct DataTwelite {
    		// 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 transmissions
    		uint16_t u8rpt_cnt;
    
    		// LQI value
    		uint16_t u8lqi;
    
    		// DI state (true = active, Lo/GND)
    		bool DI1, DI2, DI3, DI4;
    		// DI state bitmap (from LSB: DI1, DI2, DI3, DI4)
    		uint8_t DI_mask;
    
    		// True if DI has ever been active
    		bool DI1_active, DI2_active, DI3_active, DI4_active;
    		// DI active bitmap (from LSB: DI1, DI2, DI3, DI4)
    		uint8_t DI_active_mask;
    
    		// Module power voltage [mV]
    		uint16_t u16Volt;
    
    		// AD values [mV]
    		uint16_t u16Adc1, u16Adc2, u16Adc3, u16Adc4;
    		// Bitmap indicating which ADs are active (from LSB: AD1, AD2, AD3, AD4)
    		uint8_t Adc_active_mask;
    };