Support for CAN Interface

What products would you like to see?
Post Reply
RMB
Posts: 1
Joined: Thu Apr 28, 2016 3:52 pm

Support for CAN Interface

Post by RMB »

Hello

is there any support for the CAN 2.0B interface planned? To make a multi master bus with CAN is really easy.
My suggestion for functions managing the CAN stuff would be (in pseudo code):
An RX FIFO, evtl. a TX buffer FIFO (besides that in HW in some controllers)
function "set_CAN_param": error=set_param(BITRATE=..., STATUS=..., FILEid=..., CAN_C=cancontroller#)
function "get_CAN_param"
function "read_CAN_queue": error=read_CAN_queue(FILEID, R ID, R DLC. R data$(8), [R timestamp])
function "read_CAN_queue_wait": error=read_CAN_queue_wait(FILEID, R ID, R DLC. R data$(8), TIMEOUT=timeout, [R timestamp]) ' Waits for a message if there is none
function "write_CAN_queue": error=WRITE_CAN_queue(FILEID, ID, DLC. data$(8)) ' Writes to buffer and returns immediately
function "write_CAN_queue_wait": error=WRITE_CAN_queue_wait(FILEID, ID, DLC. data$(8), TIMEOUT=timeout) ' Writes and waits until ID is transmitted or error occured
function "get_CAN_status": error=get_CAN_status(FILEID, R ERROR_FLAGS)

Any comments from other users or developers?
RMB



basicchip
Posts: 1090
Joined: Fri Oct 19, 2012 2:39 am
Location: Weeki Watchee, FL
Contact:

Re: Support for CAN Interface

Post by basicchip »

Many of the parts have hardware support for CAN. Other than writing come diagnostics to exercise some of that hardware, I have not used it.

I know there is CAN software at the lpcware.com site.

Post Reply