Instructions
244Libraries
© 2013 Conrad Electronic
Description
A CAN message is sent over the bus. If, however, the CAN_REPL flag was set at CAN_SetMOb (), the data
for the automatic reply will be saved and not sent immediately.
Parameter
mob MOb Number (0-14)
len Length of the data to send
data Array in der
5.5.7 CAN_SetChan (AVR32Bit)
CAN Bus Functions
Syntax
void CAN_SetChan(byte chan);
Sub CAN_SetChan(chan As Byte)
Description
Selects a CAN channel (CAN0 or CAN1) for further access.
The C-Control Pro Mega128 CAN only has one CAN channel.
Parameter
chan CAN Bus channel (0 - 1)
5.5.8 CAN_SetMOb
CAN Bus Functions
Syntax
void CAN_SetMOb(byte mob, dword ID, dword maskID, byte flag);
Sub CAN_SetMOb(mob As Byte, ID As ULong, maskID As ULong, flag As Byte);
Description
With this function, the parameters for a Message Object (MOB) are set. The identifier and the identifier
mask is passed as a dword (ULong). WHen used with a 11-bit identifier, the upper bits are ignored. The
maskID is used only during reception. Only when a bit is set in the maskID, the received messages are
checked at the same bit position in the identifier whether the received identifier matches.