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-07-24

List of Data Types and Procedures

List of MWings-specific data types and procedures for 32-bit Arduino boards
    This is a list of MWings-specific data types and procedures. Click here for a list of classes.

    Structures

    BarePacket

    Stores raw data extracted from the packet received by the parent device from a child device.

    MWings_Common.h

    Data

    TypeNameDescription
    uint8_t*u8PayloadPayload data converted to binary (excluding :, checksum, and CRLF)
    uint16_tu16PayloadSizeByte size of the above data
    uint8_tu8ChecksumChecksum of the above data

    Procedures

    Type and NameDescription
    uint8_t* u8From(int)Gets payload data from the specified position onward
    uint8_t u8At(int)Gets the payload data at the specified position as an 8-bit unsigned integer
    int8_t i8At(int)Gets the payload data at the specified position as an 8-bit signed integer
    uint16_t u16At(int)Gets the payload data at the specified position as a 16-bit unsigned integer
    int16_t i16At(int)Gets the payload data at the specified position as a 16-bit signed integer
    uint32_t u32At(int)Gets the payload data at the specified position as a 32-bit unsigned integer
    int32_t i32At(int)Gets the payload data at the specified position as a 32-bit signed integer

    mwings::ParsedPacketBase

    Abstract structure that stores parsed data received by the parent device from a child device.

    MWings_Common.h

    Data

    TypeNameDescription
    uint32_tu32SourceSerialIdSerial ID of the sender
    uint8_tu8SourceLogicalIdLogical device ID of the sender
    uint16_tu16SequenceNumberSequence number
    uint8_tu8LqiLQI
    uint16_tu16SupplyVoltageSupply voltage (mV)

    ParsedAppTwelitePacket

    Derived from mwings::ParsedPacketBase

    Structure that stores data received by the parent device from a child device running the “Super Easy! Standard App”.

    AppTwelitePacketParser.h

    Data

    TypeNameDescription
    uint8_tu8DestinationLogicalIdLogical device ID of the recipient
    uint8_tu8RelayCountNumber of relays
    boolbPeriodictrue if the packet is a periodic transmission
    bool[4]bDiChangedtrue if DI1–4 changed
    bool[4]bDiStatetrue if DI1–4 are in Low state
    uint16_t[4]u16AiVoltageInput voltage of AI1–4 (mV)

    ParsedAppIoPacket

    Derived from mwings::ParsedPacketBase

    Structure that stores data received by the parent device from a child device running the Remote App.

    AppIoPacketParser.h

    Data

    TypeNameDescription
    uint8_tu8RelayCountNumber of relays
    bool[12]bDiStatetrue if each DI is in Low state
    bool[12]bDiValidtrue if each DI is valid
    bool[12]bDiInterrupttrue if each DI has changed by interrupt

    ParsedAppAriaPacket

    Derived from mwings::ParsedPacketBase

    Structure that stores data received by the parent device from a child device running the Aria App (TWELITE ARIA mode).

    AppAriaPacketParser.h

    Data

    TypeNameDescription
    uint32_tu32RouterSerialIdSerial ID of the first relay device
    0x80000000 if not relayed (v1.2.2+)
    int16_ti16Temp100xTemperature ×100 (Celsius)
    uint16_tu16Humid100xRelative humidity ×100 (%)
    uint8_tu8MagnetStateMagnet Event ID
    boolbMagnetStateChangedtrue if magnet sensor state changed
    Magnet Event ID
    IDDescription
    0x00No magnet nearby
    0x01North pole is nearby
    0x02South pole is nearby

    ParsedAppCuePacket

    Derived from mwings::ParsedPacketBase

    Structure that stores data received by the parent device from a child device running the Cue App (TWELITE CUE mode).

    AppCuePacketParser.h

    Data

    TypeNameDescription
    uint32_tu32RouterSerialIdSerial ID of the first relay device
    0x80000000 if not relayed (v1.2.2+)
    int16_t[10]i16SamplesXX-axis acceleration samples (mG)
    int16_t[10]i16SamplesYY-axis acceleration samples (mG)
    int16_t[10]i16SamplesZZ-axis acceleration samples (mG)
    uint8_tu8SampleCountNumber of samples
    boolbHasAccelEventtrue if there is an acceleration event
    uint8_tu8AccelEventAcceleration Event ID
    uint8_tu8MagnetStateMagnet Event ID
    boolbMagnetStateChangedtrue if magnet sensor state changed
    Acceleration Event ID
    IDDescription
    0x01~0x06Dice
    0x08Shake
    0x10Move
    Magnet Event ID
    IDDescription
    0x00No magnet nearby
    0x01North pole is nearby
    0x02South pole is nearby

    ParsedAppPalAmbPacket

    Derived from mwings::ParsedPacketBase

    Structure that stores data received by the parent device from a child device running the Pal App (environment sensor Pal).

    AppPalAmbPacketParser.h

    Data

    TypeNameDescription
    uint32_tu32RouterSerialIdSerial ID of the first relay device
    0x80000000 if not relayed (v1.2.2+)
    uint16_tu16Ai1VoltageAI1 input voltage (mV)
    int16_ti16Temp100xTemperature ×100 (Celsius)
    uint16_tu16Humid100xRelative humidity ×100 (%)
    uint32_tu32IlluminanceIlluminance (lux)

    ParsedAppPalMotPacket

    Derived from mwings::ParsedPacketBase

    Structure that stores data received by the parent device from a child device running the Pal App (motion sensor Pal).

    AppPalMotPacketParser.h

    Data

    TypeNameDescription
    uint32_tu32RouterSerialIdSerial ID of the first relay device
    0x80000000 if not relayed (v1.2.2+)
    uint16_tu16Ai1VoltageAI1 input voltage (mV)
    int16_t[16]i16SamplesXX-axis acceleration samples (mG)
    int16_t[16]i16SamplesYY-axis acceleration samples (mG)
    int16_t[16]i16SamplesZZ-axis acceleration samples (mG)
    uint8_tu8SampleCountNumber of samples
    uint16_tu16SamplingFrequencySampling frequency (Hz)

    ParsedAppPalOpenClosePacket

    Derived from mwings::ParsedPacketBase

    Structure that stores data received by the parent device from a child device running the Pal App (open/close sensor Pal).

    AppPalOpenClosePacketParser.h

    Data

    TypeNameDescription
    uint32_tu32RouterSerialIdSerial ID of the first relay device
    0x80000000 if not relayed (v1.2.2+)
    uint16_tu16Ai1VoltageAI1 input voltage (mV)
    uint8_tu8MagnetStateMagnet Event ID
    boolbMagnetStateChangedtrue if magnet sensor state changed
    Magnet Event ID
    IDDescription
    0x00No magnet nearby
    0x01North pole is nearby
    0x02South pole is nearby

    ParsedAppUartAsciiPacket

    Derived from mwings::ParsedPacketBase

    Structure that stores data received by the parent device from a child device running the serial communication app (A mode, simple format).

    AppUartAsciiPacketParser.h

    Data

    TypeNameDescription
    uint8_tu8CommandIdCommand type (response ID)
    uint8_t*u8DataData
    uint16_tu16DataSizeData length

    ParsedAppUartAsciiExtendedPacket

    Derived from mwings::ParsedPacketBase

    Structure that stores data received by the parent device from a child device running the serial communication app (A mode, extended format).

    AppUartAsciiExtendedPacketParser.h

    Data

    TypeNameDescription
    uint32_tu32DestinationSerialIdDestination serial ID
    uint8_tu8CommandIdCommand type (response ID)
    uint8_t*u8DataData
    uint16_tu16DataSizeData length

    ParsedActPacket

    Derived from mwings::ParsedPacketBase

    Structure that stores data received by the parent device from a child device running the act app.

    ActPacketParser.h

    Data

    TypeNameDescription
    uint8_tu8CommandIdCommand type (response ID)
    uint8_t*u8DataData
    uint16_tu16DataSizeData length

    mwings::CommandBase

    Abstract structure that stores command data sent from the parent device to a child device.

    MWings_Common.h

    Data

    TypeNameDescription
    uint8_tu8DestinationLogicalIdDestination logical device ID

    Procedures

    Type and NameDescription
    bool isValid()Returns true if the data is valid (pure virtual function)

    AppTweliteCommand

    Derived from mwings::CommandBase

    Structure that stores command data sent from the parent device to a child device running the “Super Easy! Standard App”.

    AppTweliteCommandSerializer.h

    Data

    TypeNameDescription
    bool[4]bDiToChangetrue to change the state of each DO1-4
    bool[4]bDiStatetrue to set each DO1-4 to Low state
    bool[4]bPwmToChangetrue to change the state of each PWM1-4
    uint16_t[4]u16PwmDutyDuty ratio of each PWM1-4 (0-1024)

    AppIoCommand

    Derived from mwings::CommandBase

    Structure that stores command data sent from the parent device to a child device running the Remote App.

    AppIoCommandSerializer.h

    Data

    TypeNameDescription
    bool[12]bDiToChangetrue to change the state of each O1-12
    bool[12]bDiStatetrue to set each O1-12 to Low state

    AppPalNoticeCommand

    Derived from mwings::CommandBase

    Structure that stores command data sent from the parent device to a child device running the Pal App (Notifier Pal).

    AppPalNoticeCommandSerializer.h

    Data

    TypeNameDescription
    AppPalNoticeColoreColorLighting color
    AppPalNoticeBlinkSpeedeBlinkSpeedBlinking speed
    uint8_tu8BrightnessBrightness (0-15)
    uint16_tu16DurationInSecLighting duration (seconds)

    AppPalNoticeDetailedCommand

    Derived from mwings::CommandBase

    Structure that stores command data sent from the parent device to a child device running the Pal App (Notifier Pal) — detailed format.

    AppPalNoticeDetailedCommandSerializer.h

    Data

    TypeNameDescription
    AppPalNoticeRGBWColorsRGBWColorLighting color (RGBW)
    uint8_tu8BlinkDutyPercentageLighting time ratio (%)
    floatfBlinkPeriodInSecBlinking period (seconds)
    uint16_tu16DurationInSecLighting duration (seconds)

    AppPalNoticeEventCommand

    Derived from mwings::CommandBase

    Structure that stores command data (detailed format) sent from the parent device to a child device running the Pal App (Notifier Pal).

    AppPalNoticeEventCommandSerializer.h

    Data

    TypeNameDescription
    uint8_tu8EventIdEvent ID (0x00-0x10)

    AppUartAsciiCommand

    Derived from mwings::CommandBase

    Structure that stores command data (simple format) sent from the parent device to a child device running the serial communication app (A mode).

    AppUartAsciiCommand.h

    Data

    TypeNameDescription
    uint8_tu8CommandIdCommand type (response ID)
    uint8_t*u8DataData
    uint16_tu16DataSizeData length

    AppPalNoticeRGBWColor

    Structure that defines the lighting color (RGBW) used in AppPalNoticeDetailedCommand.

    AppPalNoticeDetailedCommandSerializer.h

    Data

    TypeNameDescription
    uint8_tredR (0-15)
    uint8_tgreenG (0-15)
    uint8_tblueB (0-15)
    uint8_twhiteW (0-15)

    Procedures

    Type and NameDescription
    bool isValid()Returns true if the data is valid
    uint16_t u16()Returns a 16-bit unsigned integer with RGBW packed in order from LSB, 4 bits each

    Enumerations

    AppPalNoticeColor

    enum class based on uint8_t ?

    Enumeration that defines the lighting color used in AppPalNoticeCommand.

    AppPalNoticeCommandSerializer.h

    IdentifierValueDescription
    AppPalNoticeColor::RED0Red
    AppPalNoticeColor::GREEN1Green
    AppPalNoticeColor::BLUE2Blue
    AppPalNoticeColor::YELLOW3Yellow
    AppPalNoticeColor::PURPLE4Purple
    AppPalNoticeColor::LIGHT_BLUE5Light blue
    AppPalNoticeColor::WHITE6White
    AppPalNoticeColor::WARM_WHITE7Warm white

    AppPalNoticeBlinkSpeed

    enum class based on uint8_t

    Enumeration that defines the blinking speed used in AppPalNoticeCommand.

    AppPalNoticeCommandSerializer.h

    IdentifierValueDescription
    AppPalNoticeBlinkSpeed::ALWAYS_ON0Always on
    AppPalNoticeBlinkSpeed::SLOW1Slow blinking
    AppPalNoticeBlinkSpeed::MEDIUM2Medium blinking
    AppPalNoticeBlinkSpeed::FAST3Fast blinking

    Other Data Types

    Procedures

    GetAppTweliteSerializedCommandPayloadSize()

    constexpr function ?

    Returns the payload size (in bytes) of the serialized fixed-length data for AppTweliteCommand.

    AppTweliteCommandSerializer.h

    Type and NameDescription
    int GetAppTweliteSerializedCommandPayloadSize()Returns the number of bytes

    GetAppAppPalNoticeSerializedCommandPayloadSize()

    constexpr function

    Returns the payload size (in bytes) of the serialized fixed-length data for AppPalNoticeCommand.

    AppPalNoticeCommandSerializer.h

    Type and NameDescription
    int GetAppPalNoticeSerializedCommandPayloadSize()Returns the number of bytes

    GetAppAppPalNoticeDetailedSerializedCommandPayloadSize()

    constexpr function

    Returns the payload size (in bytes) of the serialized fixed-length data for AppPalNoticeDetailedCommand.

    AppPalNoticeDetailedCommandSerializer.h

    Type and NameDescription
    int GetAppPalNoticeDetailedSerializedCommandPayloadSize()Returns the number of bytes

    GetAppAppPalNoticeEventSerializedCommandPayloadSize()

    constexpr function

    Returns the payload size (in bytes) of the serialized fixed-length data for AppPalNoticeEventCommand.

    AppPalNoticeEventCommandSerializer.h

    Type and NameDescription
    int GetAppPalNoticeEventSerializedCommandPayloadSize()Returns the number of bytes