CS101_ASDUReceivedHandler

Type Alias CS101_ASDUReceivedHandler 

Source
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 parameter
  • address - address of the sender (slave/other station) - undefined for CS 104
  • asdu - 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),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void, i32, *mut sCS101_ASDU) -> bool)

Some value of type T.