You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -90,31 +93,34 @@ NOTE: Before sending this request, the client should request the protocol versio
90
93
91
94
The server responds to this request with a large data block. The format of the block is shown below. Portions of this block are omitted if the requested protocol level is below the listed value. The receiver is expected to parse this data block using the same protocol version sent in the request (or protocol 0 if the request is sent with no data).
92
95
93
-
| Size | Format | Name | Protocol Version | Description |
| 2 | unsigned short | num_led_alt_names | 5 | Number of LED alternate name strings |
122
+
| Variable | LED Alternate Name[num_led_alt_names]| led_alt_names | 5 | See [LED Alternate Name Data](#led-alternate-names-data) block format table. Repeat num_led_alt_names times |
123
+
| 4 | unsigned int | flags | 5 | RGBController flags field value |
118
124
119
125
## Mode Data
120
126
@@ -157,6 +163,7 @@ The Zone Data block represents one entry in the `RGBController::zones` vector.
157
163
| (zone_matrix_len - 8)*| unsigned int[zone_matrix_len - 8]| zone_matrix_data | 0 | Zone matrix_map data (*only if matrix_map exists) |
158
164
| 2 | unsigned short | num_segments | 4 | Number of segments in zone |
159
165
| Variable | Segment Data[num_segments]| segments | 4 | See [Segment Data](#segment-data) block format table. Repeat num_segments times |
166
+
| 4 | unsigned int | zone_flags | 5 | Zone flags value |
160
167
161
168
## Segment Data
162
169
@@ -174,13 +181,21 @@ The Segment Data block represents one entry in the `RGBController::zones::segmen
174
181
175
182
The LED Data block represents one entry in the `RGBController::leds` vector.
176
183
177
-
178
184
| Size | Format | Name | Protocol Version | Description |
| 2 | unsigned short | led_name_len | 0 | Length of LED name string, including null termination |
181
187
| led_name_len | char[led_name_len]| led_name | 0 | LED name string value, including null termination |
182
188
| 4 | unsigned int | led_value | 0 | LED value field value |
183
189
190
+
## LED Alternate Name Data
191
+
192
+
The LED Alternate Name Data block represents one entry in the `RGBController::led_alt_names` vector. This data block was introduced in protocol version 5.
193
+
194
+
| Size | Format | Name | Protocol Version | Description |
| 2 | unsigned short | led_alt_name_len | 5 | Length of LED alternate name string, including null termination |
197
+
| led_alt_name_len | char[led_alt_name_len]| led_alt_name | 5 | LED alternate name string value, including null termination |
198
+
184
199
## NET_PACKET_ID_REQUEST_PROTOCOL_VERSION
185
200
186
201
### Request [Size: 4]
@@ -300,6 +315,24 @@ The client uses this ID to call the ResizeZone() function of an RGBController de
300
315
| 4 | int | zone_idx | Zone index to resize |
301
316
| 4 | int | new_size | New size of the zone |
302
317
318
+
## NET_PACKET_ID_RGBCONTROLLER_CLEARSEGMENTS
319
+
320
+
### Client Only [Size: 4]
321
+
322
+
The client uses this ID to call the ClearSegments() function of an RGBController device. The packet contains the index of the zone to clear segments on, type int (size 4). The `pkt_dev_idx` of this request's header indicates which controller you are calling ClearSegments() on.
323
+
324
+
## NET_PACKET_ID_RGBCONTROLLER_ADDSEGMENT
325
+
326
+
### Client Only [Size: Variable]
327
+
328
+
The client uses this ID to call the AddSegment() function of an RGBController device. The packet contains a data block. The format of the block is shown below. The `pkt_dev_idx` of this request's header indicates which controller you are calling AddSegment() on.
0 commit comments