-
Notifications
You must be signed in to change notification settings - Fork 0
MiP_Serial
Manages low-level UART transport and OOB event demux.
Signature: constexpr uint8_t MIP_REQUEST_DELAY
Signature: constexpr uint8_t MIP_RESPONSE_TIMEOUT
Signature: constexpr uint8_t MIP_EXPECT_NO_RESPONSE
Signature: constexpr uint8_t MIP_EXPECT_RESPONSE
Signature: constexpr size_t MIP_REQUEST_MAX_LEN
Signature: constexpr size_t MIP_RESPONSE_MAX_LEN
Signature: constexpr uint8_t MIP_MAX_RETRIES
Signature: constexpr uint16_t MIP_RETRY_WAIT
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. |
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.
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.
Signature: bool processAllResponseData()
🔗 Quick Links: Main Repository • Report an Issue • Wiki Home
An open-source API for the WowWee MiP Robot. Licensed under Apache-2.0.
- MiP
- MiPChestLED
- MiPClapSettings
- MiPDebug
- MiPHardwareInfo
- MiPHeadLEDs
- MiPIRDongleCode
- MiPSoftwareVersion
- MiPStatus
- MiP_Battery
- MiP_ChestLED
- MiP_Clap
- MiP_EEPROM
- MiP_Gesture
- MiP_HeadLEDs
- MiP_Infrared
- MiP_Mode
- MiP_Motion
- MiP_Odometer
- MiP_Position
- MiP_Radar
- MiP_Serial
- MiP_Shake
- MiP_Sound
- MiP_Version
- MiP_Weight
- MiP_WiFi