IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


Macros | Functions
CAN functions

Detailed Description

This sections describes the various functions defined by the @CHIP-RTOS-LNX CAN API.

Here is what you need to get started:

Macros

#define canEncodeId(id, ext, rtr)
 Encode a CAN identifier. More...
 
#define canDecodeId(encodedId)
 Decode a CAN identifier. More...
 
#define canIdIsRtr(encodedId)
 Check if CAN ID is a Remote Transmission Request. More...
 
#define canIdIsExt(encodedId)
 Check if CAN ID is in extended format. More...
 

Functions

CanError canInit (unsigned port, unsigned baudrate, unsigned long options)
 Initialise CAN port. More...
 
CanError canSetFilter (unsigned port, const CanFilter *filter)
 Set acceptance filters. More...
 
CanError canDeinit (unsigned port)
 Deinitialise CAN port. More...
 
CanError canSend (unsigned port, const CanMsg *msg, BOOL prio)
 Send a CAN message. More...
 
CanError canRecv (unsigned port, CanMsg *msg, unsigned timeout)
 Receive a CAN message. More...
 
CanError canPeek (unsigned port, CanMsg *msg)
 Peek for the next CAN message. More...
 
CanError canGetBaud (unsigned port, unsigned *baudrate, unsigned *prescaler, unsigned *timeSeg1, unsigned *timeSeg2, unsigned *syncJumpWidth)
 Determine baud rate. More...
 
CanError canGetErrorCounters (unsigned port, unsigned *rxErrors, unsigned *txErrors)
 Get error counter values. More...
 
CanError canGetErrorState (unsigned port, CanErrorState *errorState)
 Get error state of the CAN node. More...
 
CanError canGetNRxMsg (unsigned port, unsigned *nMsg)
 Get number of messages available in software receive queue. More...
 





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Tue Dec 12 2017 09:23:36 by Doxygen 1.8.13