X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/a4e46fd740a98802e19500d1aa1d2b8bf8bf769b..7765317e73f5c4e9b0e9f2f28a56091efe5e4930:/latester/test.c diff --git a/latester/test.c b/latester/test.c new file mode 100644 index 0000000..214565f --- /dev/null +++ b/latester/test.c @@ -0,0 +1,10 @@ +#include +#include "canframelen.h" + +int main(int argc, char *argv[]) +{ + struct can_frame cf = { .can_id = 0x0f111121 | CAN_EFF_FLAG, .can_dlc = 1, .data = { 0x22 } }; + printf("Length: %u\n", calc_frame_length(&cf)); + + return 0; +}