English
Language : 

UM0097 Datasheet, PDF (198/229 Pages) STMicroelectronics – STR71x firmware library
Peripheral firmware overview
UM0097
CAN_SetUnusedMsgObj
Function Name
Function Prototype
Behavior Description
Input Parameter
Output Parameter
Return Value
Required preconditions
Called Functions
CAN_SetUnusedMsgObj
u32 CAN_SetUnusedMsgObj(u32 msgobj);
Configures the message object as unused.
The hardware will not process it until it is setup as RX or TX.
msgobj: message object number, from 0 to 31.
None
1: if interface is found
0: if no interface is available
None
None
Example:
This example illustrates how to configure some message objects so that they will not be
used.
{
...
for(i=16; i<=31; i++)
CAN_SetUnusedMsgObj(i);
...
}
CAN_SetTxMsgObj
Function Name
Function Prototype
Behavior Description
Input Parameter 1
Input Parameter 2
Input Parameter 3
Output Parameter
Return Value
Required preconditions
Called Functions
CAN_SetTxMsgObj
u32 CAN_SetTxMsgObj(u32 msgobj, u32 idType,
FunctionalState RemoteEN);
Configures the message object as TX.
msgobj: message object number, from 0 to 31.
idType: message identifier type defined using the values described in
CAN message identifier types on page 192.
RemoteEN: If set to ‘1’, the remote function is enabled. Otherwise, the
remote function is disabled.
None
1: if interface is found
0: if no interface is available
None
None
198/229