pub unsafe extern "C" fn onewire_slave_set_command_callback(
bus: *mut OneWireSlave,
callback: OneWireSlaveCommandCallback,
context: *mut c_void
)Expand description
Set a callback function to be called on each command. The return value of the callback determines whether further operation is possible. As a rule of thumb, return true unless a critical error happened.
Arguments
[in]- bus pointer to OneWireSlave instance[in]- callback pointer to a callback function[in]- context additional parameter to be passed to the callback