|
| enum class | MsgType : uint8_t {
DeviceDiscovery = 1
, DeviceInfo
, ConfigRequest
, ConfigResponse
,
ConfigSet
, ConfigAck
, Command
, CommandAck
,
StatusUpdate
, Error
, ErrorClear
, TestComplete
,
BoundsResult = 13
, PairingRequest = 20
, PairingResponse = 21
, PairingConfirm = 22
,
PairingReject = 23
, Unpair = 24
} |
| | Wire-level message type identifiers. More...
|
| |
| enum class | TestState : uint8_t {
Idle = 0
, Running
, Paused
, Completed
,
Error
} |
| | Protocol-visible test states encoded in STATUS_UPDATE. More...
|
| |
| enum class | CommandId : uint8_t {
Start = 1
, Pause = 2
, Resume = 3
, Stop = 4
,
RunBoundsFinding = 5
, SetManualBounds = 6
, ManualBoundsStart = 7
, ManualBoundsArmPlaced = 8
,
ManualBoundsJog = 9
, ManualBoundsConfirm = 10
, ManualBoundsCancel = 11
, ManualBoundsReZero = 12
,
StartWithManualBounds = 13
, StartWithManualRealign = 14
} |
| | Command IDs for COMMAND message type. More...
|
| |
| enum class | ProtoEventType {
ConfigRequest
, ConfigSet
, CommandStart
, CommandPause
,
CommandResume
, CommandStop
, CommandRunBoundsFinding
, CommandSetManualBounds
,
CommandManualBoundsStart
, CommandManualBoundsArmPlaced
, CommandManualBoundsJog
, CommandManualBoundsConfirm
,
CommandManualBoundsCancel
, CommandManualBoundsReZero
, CommandStartWithManualBounds
, CommandStartWithManualRealign
,
ConfigUpdated
, ConfigApplyOk
, ConfigApplyFail
, Started
,
Paused
, Resumed
, Stopped
, Status
,
ErrorEvent
, TestCompleted
, PairingRequest
, PairingComplete
,
PairingFailed
, PeerUnpaired
} |
| | Higher-level events emitted by the protocol layer. More...
|
| |
ESP-NOW communication protocol for fatigue tester.
Protocol compatible with esp32_remote_controller. Uses 6-byte header with version and device_id fields.
Defines message types, packet structures, and protocol handlers for communication between UI board (remote controller) and test unit.
Higher-level events emitted by the protocol layer.
On the test-unit side, these events represent commands received from the UI board. On either side, these can also represent parsed status/response semantics.
Per coding standards: PascalCase for enum values (event types).
| Enumerator |
|---|
| ConfigRequest | |
| ConfigSet | |
| CommandStart | |
| CommandPause | |
| CommandResume | |
| CommandStop | |
| CommandRunBoundsFinding | |
| CommandSetManualBounds | |
| CommandManualBoundsStart | |
| CommandManualBoundsArmPlaced | |
| CommandManualBoundsJog | |
| CommandManualBoundsConfirm | |
| CommandManualBoundsCancel | |
| CommandManualBoundsReZero | |
| CommandStartWithManualBounds | |
| CommandStartWithManualRealign | |
| ConfigUpdated | |
| ConfigApplyOk | |
| ConfigApplyFail | |
| Started | |
| Paused | |
| Resumed | |
| Stopped | |
| Status | |
| ErrorEvent | |
| TestCompleted | |
| PairingRequest | Incoming pairing request (test unit receives)
|
| PairingComplete | Pairing completed successfully.
|
| PairingFailed | Pairing failed (rejected or timeout)
|
| PeerUnpaired | A peer was unpaired.
|