CS104_SlaveRawMessageHandler

Type Alias CS104_SlaveRawMessageHandler 

Source
pub type CS104_SlaveRawMessageHandler = Option<unsafe extern "C" fn(parameter: *mut c_void, connection: IMasterConnection, msg: *mut u8, msgSize: c_int, send: bool)>;
Expand description

Callback handler for sent and received messages

This callback handler provides access to the raw message buffer of received or sent messages. It can be used for debugging purposes. Usually it is not used nor required for applications.

§Arguments

  • parameter - user provided parameter
  • connection - the connection that sent or received the message
  • msg - the message buffer
  • msgSize - size of the message
  • sent - indicates if the message was sent or received

Aliased Type§

pub enum CS104_SlaveRawMessageHandler {
    None,
    Some(unsafe extern "C" fn(*mut c_void, *mut sIMasterConnection, *mut u8, i32, bool)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void, *mut sIMasterConnection, *mut u8, i32, bool))

Some value of type T.