]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - latester/test.c
Commit not-finished state of frame length calculation
[can-benchmark.git] / latester / test.c
diff --git a/latester/test.c b/latester/test.c
new file mode 100644 (file)
index 0000000..214565f
--- /dev/null
@@ -0,0 +1,10 @@
+#include <stdio.h>
+#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;
+}