Add function to convert vector to canfd or can frame.