pub type CS101_ASDUReceivedHandler = Option<unsafe extern "C" fn(parameter: *mut c_void, address: c_int, asdu: CS101_ASDU) -> bool>;Expand description
Callback handler for received ASDUs
This callback handler will be called for each received ASDU. The CS101_ASDU object that is passed is only valid in the context of the callback function.
§Arguments
parameter- user provided parameteraddress- address of the sender (slave/other station) - undefined for CS 104asdu- object representing the received ASDU
§Returns
true if the ASDU has been handled by the callback, false otherwise
Aliased Type§
pub enum CS101_ASDUReceivedHandler {
None,
Some(unsafe extern "C" fn(*mut c_void, i32, *mut sCS101_ASDU) -> bool),
}