Skip to main content

is_exception_code

Function is_exception_code 

Source
pub fn is_exception_code(function_code_byte: u8) -> bool
Expand description

Checks if the given function code byte indicates an exception (error bit is set).

§Arguments

  • function_code_byte - The raw function code byte from the PDU.

§Returns

true if the highest bit is set, indicating a Modbus exception response.