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.

Table of Contents


Constructors & Destructors

MiP_Serial

Signature: MiP_Serial(MiP &mip)

Summary: Constructs the serial port manager.

Parameters:

Parameter Description
mip A reference to the main MiP object to access core services.

Public Functions

rawSend

Signature: void rawSend(const uint8_t request[], size_t requestLength)

Summary: Sends a raw command to the MiP (fire-and-forget).

Details:

Used internally by higher-level verified methods.


rawReceive

Signature: uint8_t rawReceive(const uint8_t request[], size_t requestLength, uint8_t responseBuffer[], size_t responseBufferSize, size_t &responseLength)

Summary: Sends a raw command and waits for the expected response.

Parameters:

Parameter Description
request Command buffer to send.
requestLength Length of the command.
responseBuffer Buffer to store the response.
responseBufferSize Size of the response buffer.
responseLength Receives the actual number of bytes read.

Returns: MIP_ERROR_NONE on success, or an error code.


processAllResponseData

Signature: bool processAllResponseData()


Public Variables

MIP_REQUEST_DELAY

Signature: constexpr uint8_t MIP_REQUEST_DELAY


MIP_RESPONSE_TIMEOUT

Signature: constexpr uint8_t MIP_RESPONSE_TIMEOUT


MIP_EXPECT_NO_RESPONSE

Signature: constexpr uint8_t MIP_EXPECT_NO_RESPONSE


MIP_EXPECT_RESPONSE

Signature: constexpr uint8_t MIP_EXPECT_RESPONSE


MIP_REQUEST_MAX_LEN

Signature: constexpr size_t MIP_REQUEST_MAX_LEN


MIP_RESPONSE_MAX_LEN

Signature: constexpr size_t MIP_RESPONSE_MAX_LEN


MIP_MAX_RETRIES

Signature: constexpr uint8_t MIP_MAX_RETRIES


MIP_RETRY_WAIT

Signature: constexpr uint16_t MIP_RETRY_WAIT


Clone this wiki locally