4 #include <isotp/isotp_types.h>
5 #include <isotp/send.h>
6 #include <isotp/receive.h>
15 /* Public: Initialize an IsoTpShims with the given callback functions.
17 * If any callbacks are not to be used, set them to NULL. For documentation of
18 * the function type signatures, see isotp_types.h. This struct is a handy
19 * encapsulation used to pass the shims around to the various isotp_* functions.
21 * Returns a struct with the fields initailized to the callbacks.
23 IsoTpShims isotp_init_shims(LogShim log,
24 SendCanMessageShim send_can_message,
25 SetTimerShim set_timer);
27 /* Public: Render an IsoTpMessage as a string into the given buffer.
29 * message - the message to convert to a string, for debug logging.
30 * destination - the target string buffer.
31 * destination_length - the size of the destination buffer, i.e. the max size
32 * for the rendered string.
34 void isotp_message_to_string(const IsoTpMessage* message, char* destination,
35 size_t destination_length);