port can.cpp to cvra platform