pub fn validate_write_single_coil(coil_value: u16) -> Result<(), ExceptionCode>Expand description
Validate a write single coil (FC 05) request.
Per spec §6.5 Figure 15 state diagram — value must be 0x0000 or 0xFF00.
§Errors
IllegalDataValueifcoil_valueis not 0x0000 or 0xFF00