Cansupport_twrap.c

can_init port

[ returns int ]
Initializes the CAN subsystem and opens the port given in the argument, port can be one of [0-3]

can_close port

[ returns int ]
Closes the CAN subsystem

can_send fd len message

[ returns int ]
Sends a message in compact message format id:data0[,data1[....,dataN]]

can_read fd timeout

[ returns char * ]
Reads out the Rx-Fifo

can_filter fd fstring

[ returns int ]
sets the filter to enable certain identifiers

f2byte f

[ returns char * ]
converts a float value in a 4 byte message

byte2f bytes

[ returns float ]
converts a 4 byte message in a float value

byte2int bytes

[ returns int ]
converts a 4 byte message into an integer

int2byte i

[ returns char * ]
converts an integer to a 4 byte message