Generate the response block of this request. Careful: it only sets the fields which can be set from the request
(self)
| 411 | return Block.post_build(self, p, pay) |
| 412 | |
| 413 | def get_response(self): |
| 414 | """Generate the response block of this request. |
| 415 | Careful: it only sets the fields which can be set from the request |
| 416 | """ |
| 417 | res = IODControlRes() |
| 418 | for field in ["ARUUID", "SessionKey", "AlarmSequenceNumber"]: |
| 419 | res.setfieldval(field, self.getfieldval(field)) |
| 420 | |
| 421 | res.block_type = self.block_type + 0x8000 |
| 422 | return res |
| 423 | |
| 424 | |
| 425 | class IODControlRes(Block): |
nothing calls this directly
no test coverage detected