Adding state machine to can command layer
Signed-off-by: H.K. Wong <hkwong74531@yahoo.com.hk>