5.8 SPI Data Packet
The SPI Data Packet configures an SPI write, read, or exchange operation.
| Field | Descriptions | Notes |
|---|---|---|
| Operation | The SPI operation type | Write, Read or Exchange |
| Length | The number of bytes |
Auto-calculated for Write/Exchange; manually entered for Read. Error: “Please enter a positive integer value less than 65,535.” |
| Data Source | Where the write data comes from | Enter here (manual entry) or Import file |
| Write Data | Comma-separated byte values (0–255) | Decimal or hexadecimal values Error: “Please enter values separated by commas. Each value must be a decimal or hexadecimal number from 0 to 255.” |
| Read Data | The data received from the device | Read-only; populated after a successful read. After a successful read, a Save to file button appears next to the Read Data field to export the received data. |
All fields with validation (Length and Write Data) display a validation icon:
| Icon State | Tooltip | Notes |
|---|---|---|
| Editing | “Click to validate [field].” | Shown while the user is editing the field |
| Error | Field-specific error message (e.g., “Please enter values separated by commas. Each value must be a decimal or hexadecimal number from 0 to 255.”) | Shown after validation finds errors |
Fastpath:
- Pressing <Enter> in a field or clicking anywhere outside the field triggers validation
- A Reset field button appears on the Write Data input, allowing the user to reset the data source selection and re-enter data if needed
- The Write Data and Read Data fields each have a HEX/DEC toggle button that switches the display and input format between hexadecimal and decimal. The currently active format is highlighted, and a hint label (HEX or DEC) is shown next to the field when it is not in focus. The format is auto-detected from the first byte entered (values starting with 0x are treated as hexadecimal).
