1#State transition diagram of the TWAI Driver
2
3blockdiag state_transition_diagram {
4
5    orientation = landscape;
6    default_fontsize = 18;
7    node_width = 180;
8    node_height = 40;
9    span_width = 100;
10    span_height = 40;
11
12    #First Row
13    bus_off [label = "Bus-Off"];
14    recovering [label = "Recovering"];
15    #Second Row
16    uninstalled [label = "Uninstalled"];
17    stopped [label = "Stopped"];
18    running [label = "Running"];
19    app_start[label = "Entry", shape = beginpoint];
20
21    bus_off -> uninstalled [folded, thick, fontsize = 14, label = "F"];
22    bus_off -> recovering [thick, fontsize = 14, label = "G"];
23    recovering -> stopped [folded, thick, color = blue, fontsize = 14, label = "H"];
24
25    uninstalled <-> stopped [thick, fontsize = 14, label = "A/B"];
26    stopped <-> running [thick, fontsize = 14, label = "C/D"];
27    running -> bus_off [folded, thick, color = red, fontsize = 14, label = "E"];
28
29    app_start -> uninstalled [folded, style = dashed]
30}
31