2020-03-11 12:45:02 -04:00
|
|
|
#State transition diagram of the TWAI Driver
|
2017-12-18 07:32:29 -05:00
|
|
|
|
2020-03-11 12:45:02 -04:00
|
|
|
blockdiag state_transition_diagram {
|
2017-12-18 07:32:29 -05:00
|
|
|
|
|
|
|
orientation = landscape;
|
|
|
|
default_fontsize = 18;
|
|
|
|
node_width = 180;
|
|
|
|
node_height = 40;
|
|
|
|
span_width = 100;
|
|
|
|
span_height = 40;
|
|
|
|
|
|
|
|
#First Row
|
|
|
|
bus_off [label = "Bus-Off"];
|
|
|
|
recovering [label = "Recovering"];
|
|
|
|
#Second Row
|
|
|
|
uninstalled [label = "Uninstalled"];
|
|
|
|
stopped [label = "Stopped"];
|
|
|
|
running [label = "Running"];
|
|
|
|
app_start[label = "Entry", shape = beginpoint];
|
|
|
|
|
|
|
|
bus_off -> uninstalled [folded, thick, fontsize = 14, label = "F"];
|
|
|
|
bus_off -> recovering [thick, fontsize = 14, label = "G"];
|
|
|
|
recovering -> stopped [folded, thick, color = blue, fontsize = 14, label = "H"];
|
2020-11-10 02:40:01 -05:00
|
|
|
|
2017-12-18 07:32:29 -05:00
|
|
|
uninstalled <-> stopped [thick, fontsize = 14, label = "A/B"];
|
|
|
|
stopped <-> running [thick, fontsize = 14, label = "C/D"];
|
|
|
|
running -> bus_off [folded, thick, color = red, fontsize = 14, label = "E"];
|
2020-11-10 02:40:01 -05:00
|
|
|
|
2017-12-18 07:32:29 -05:00
|
|
|
app_start -> uninstalled [folded, style = dashed]
|
|
|
|
}
|