inputStatus: result is represented as bytes, padded with 0 to have a integer number of bytes. The field does not parse this result and present the bytes directly
| 69 | |
| 70 | |
| 71 | class ModbusPDU02ReadDiscreteInputsResponse(Packet): |
| 72 | """ inputStatus: result is represented as bytes, padded with 0 to have a |
| 73 | integer number of bytes. The field does not parse this result and |
| 74 | present the bytes directly |
| 75 | """ |
| 76 | name = "Read Discrete Inputs Response" |
| 77 | fields_desc = [XByteField("funcCode", 0x02), |
| 78 | BitFieldLenField("byteCount", None, 8, |
| 79 | count_of="inputStatus"), |
| 80 | FieldListField("inputStatus", [0x00], ByteField("", 0x00), |
| 81 | count_from=lambda pkt: pkt.byteCount)] |
| 82 | |
| 83 | |
| 84 | class ModbusPDU02ReadDiscreteInputsError(Packet): |
nothing calls this directly
no test coverage detected