Skip to content

MiPIRDongleCode

github-actions[bot] edited this page Aug 10, 2026 · 6 revisions

Class MiPIRDongleCode

Represents a 2-, 3-, or 4-byte IR dongle code.

Detailed Description

Encapsulates up to a 32-bit integer IR code payload alongside the number of valid bytes (2, 3, or 4) contained within the code.

Table of Contents


Constructors & Destructors

MiPIRDongleCode

Signature: MiPIRDongleCode()

Summary: Constructs an uninitialized/invalid MiPIRDongleCode instance.

Details:

Sets default code to 0xFFFFFFFF and length to 0.


MiPIRDongleCode

Signature: MiPIRDongleCode(uint32_t c, uint8_t l)

Summary: Constructs a MiPIRDongleCode instance with a specified code value and length.

Parameters:

Parameter Description
c The raw numerical IR code value (up to 32 bits).
l The number of valid payload bytes (2, 3, or 4).

Public Functions

isValid

Signature: bool isValid() const

Summary: Checks whether the struct holds a valid IR dongle code length.

Returns: true if length is between 2 and 4 bytes inclusive, false otherwise.


Public Variables

code

Signature: uint32_t code

Summary: Up to 32-bit IR code value.


length

Signature: uint8_t length

Summary: Number of valid code bytes (2, 3, or 4).


Clone this wiki locally