Skip to content

MiP_Serial

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

Class MiP_Serial

Manages low-level UART transport and OOB event demux.

Members & Functions

Type Signature Description
variable constexpr uint8_t MIP_REQUEST_DELAYNone
variable constexpr uint8_t MIP_RESPONSE_TIMEOUTNone
variable constexpr uint8_t MIP_EXPECT_NO_RESPONSENone
variable constexpr uint8_t MIP_EXPECT_RESPONSENone
variable constexpr size_t MIP_REQUEST_MAX_LENNone
variable constexpr size_t MIP_RESPONSE_MAX_LENNone
variable constexpr uint8_t MIP_MAX_RETRIESNone
variable constexpr uint16_t MIP_RETRY_WAITNone
variable MiP & m_mipNone
variable uint32_t m_lastRequestTimeNone
variable uint8_t m_expectedResponseSizeNone
variable uint8_t m_expectedResponseCommandNone
variable uint8_t m_responseBuffer[MIP_RESPONSE_MAX_LEN]
friend class MiPNone
function MiP_Serial(MiP &mip) Constructs the serial port manager.
function void rawSend(const uint8_t request[], size_t requestLength) Sends a raw command to the MiP (fire-and-forget).
function uint8_t rawReceive(const uint8_t request[], size_t requestLength, uint8_t responseBuffer[], size_t responseBufferSize, size_t &responseLength) Sends a raw command and waits for the expected response.
function bool processAllResponseData()
function void clear()
function uint8_t discardUnexpectedSerialData()
function void processOobResponseData(uint8_t commandByte)
function uint8_t transportGetResponse(uint8_t *pResponseBuffer, size_t responseBufferSize, size_t *pResponseLength)
function void transportSendRequest(const uint8_t *pRequest, size_t requestLength, int expectResponse)
function void copyHexTextToBinary(uint8_t *pDest, uint8_t *pSrc, uint8_t length)
function uint8_t parseHexDigit(uint8_t digit)
function bool readIrLength(size_t &length)

Clone this wiki locally