Skip to main content

pamoja_modbus_frame_exception

Function pamoja_modbus_frame_exception 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_modbus_frame_exception( frame: *const PamojaModbusFrame, ) -> u8
Expand description

Returns the exception code a device reported.

§Returns

The exception code, or 0 when the frame is not an exception response, is not one this SDK names, or frame is null. Zero is not a defined exception code, so it is unambiguous.

§Safety

frame must be a live handle from pamoja_modbus_frame_parse, or null.