I was able to set up the socket cans(can0/can1) in cpp file like below for drive xavier, and made them working. But I do not know how to set up the aurix can in cpp file. Can anyone give me an example?
My setup for the socket can in cpp file:
#define command “sudo ip link set can1 type can bitrate 500000”
#define up “sudo ifconfig can1 up”
#define up “sudo ifconfig can1 down”
params.protocol = “can.socket”;
params.parameters = “device=can1”;