Skip to content

MiP_Infrared

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

Class MiP_Infrared

Manages MiP's infrared system.

Members & Functions

Type Signature Description
variable constexpr uint8_t MIP_CMD_RECEIVE_IR_DONGLE_CODE MiP protocol command bytes used by the infrared subsystem.
variable constexpr uint8_t MIP_CMD_GET_DETECTED_MIP
variable constexpr uint8_t MIP_CMD_SET_DETECTION_MODE
variable constexpr uint8_t MIP_CMD_SET_IR_REMOTE_CONTROL
variable constexpr uint8_t MIP_CMD_GET_IR_REMOTE_CONTROL
variable constexpr uint8_t MIP_CMD_SEND_IR_DONGLE_CODE
variable constexpr uint8_t MIP_IR_DETECTION_MODE_DISABLE Infrared mode definitions.
variable constexpr uint8_t MIP_IR_REMOTE_CONTROL_DISABLE
variable constexpr uint8_t MIP_IR_REMOTE_CONTROL_ENABLE
function MiP_Infrared(MiP &mip) Constructs the infrared manager.
function void enableMiPDetectionMode(uint8_t id, uint8_t txPower) Enables MiP detection mode (allows detecting other MiPs via IR).
function void disableMiPDetectionMode() Disables MiP detection mode.
function bool isMiPDetectionModeEnabled() Checks if MiP detection mode is currently enabled.
function uint8_t readDetectedMiP() Reads the next detected MiP event.
function uint8_t availableDetectedMiPEvents() Returns the number of unread detected MiP events.
function void enableRemoteControl() Enables IR remote control mode.
function void disableRemoteControl() Disables IR remote control mode.
function bool isRemoteControlEnabled() Checks if IR remote control mode is enabled.
function void sendDongleCode(const MiPIRDongleCode &irCode, uint8_t transmitPower) Transmits a 2-, 3-, or 4-byte IR dongle code (fire and forget).
function void sendDongleCode(uint32_t code, uint8_t length, uint8_t transmitPower) Transmits a variable-length IR dongle code using direct values.
function MiPIRDongleCode readDongleCode() Reads the next received IR dongle code from the queue.
function uint8_t availableCodeEvents() Returns the number of unread IR dongle code events.
function void processEvent(uint8_t command, const uint8_t *payload, size_t length)

Clone this wiki locally