| 303 | |
| 304 | |
| 305 | class ModbusPDU10WriteMultipleRegistersRequest(Packet): |
| 306 | name = "Write Multiple Registers" |
| 307 | fields_desc = [XByteField("funcCode", 0x10), |
| 308 | XShortField("startAddr", 0x0000), |
| 309 | BitFieldLenField("quantityRegisters", None, 16, |
| 310 | count_of="outputsValue"), |
| 311 | BitFieldLenField("byteCount", None, 8, |
| 312 | count_of="outputsValue", |
| 313 | adjust=lambda pkt, x: x * 2), |
| 314 | FieldListField("outputsValue", [0x0000], |
| 315 | XShortField("", 0x0000), |
| 316 | count_from=lambda pkt: pkt.byteCount)] |
| 317 | |
| 318 | |
| 319 | class ModbusPDU10WriteMultipleRegistersResponse(Packet): |
nothing calls this directly
no test coverage detected