iLLD_TC29x  1.0
IfxMultican.c File Reference

MULTICAN basic functionality. More...

#include "IfxMultican.h"

Go to the source code of this file.

Functions

boolean IfxMultican_MsgObj_cancelSend (Ifx_CAN_MO *hwObj)
 Cancel pending TX request by invalidating the request, only when frame transmission has not been started. More...
 
void IfxMultican_MsgObj_clearStatusFlag (Ifx_CAN_MO *hwObj, IfxMultican_MsgObjStatusFlag flag)
 Clears the selected status flag of a message object. More...
 
void IfxMultican_MsgObj_deinit (Ifx_CAN *mcan, IfxMultican_MsgObjId msgObjId)
 Reset the message object
Append the message object to the end of idle list and reset message object registers. More...
 
IfxMultican_MsgObjId IfxMultican_MsgObj_getPendingId (Ifx_CAN *mcan, IfxMultican_MsgObjGroup msgObjGroup)
 Get message object ID which has TX/RX pending flag from a message object group. More...
 
IfxMultican_MsgObjStat IfxMultican_MsgObj_getStatus (Ifx_CAN_MO *hwObj)
 Get the message object status. More...
 
boolean IfxMultican_MsgObj_getStatusFlag (Ifx_CAN_MO *hwObj, IfxMultican_MsgObjStatusFlag flag)
 Gets the status of the selected status flag of a message object. More...
 
IfxMultican_Status IfxMultican_MsgObj_readMessage (Ifx_CAN_MO *hwObj, IfxMultican_Message *msg)
 Read a received CAN message. More...
 
IfxMultican_Status IfxMultican_MsgObj_sendMessage (Ifx_CAN_MO *hwObj, const IfxMultican_Message *msg)
 Send a CAN message. More...
 
void IfxMultican_MsgObj_setFilter (Ifx_CAN_MO *hwObj, boolean extend, uint32 id, uint32 accMask)
 Set message object filter. More...
 
void IfxMultican_MsgObj_setStatusFlag (Ifx_CAN_MO *hwObj, IfxMultican_MsgObjStatusFlag flag)
 Sets the selected status flag of a message object. More...
 
void IfxMultican_Node_deinit (Ifx_CAN_N *hwNode)
 Reset the CAN node. More...
 
boolean IfxMultican_Node_initRxPin (Ifx_CAN_N *hwNode, IfxMultican_Rxd_In *rxd, IfxPort_InputMode mode)
 Select and initialise the CAN node receive pin. More...
 
boolean IfxMultican_Node_initTxPin (Ifx_CAN_N *hwNode, IfxMultican_Txd_Out *txd, IfxPort_OutputMode mode)
 Select and initialise the CAN node transmit pin. More...
 
IfxMultican_Status IfxMultican_Node_recoverBusOff (Ifx_CAN_N *hwNode)
 Recovers the CAN node from bus off. More...
 
void IfxMultican_Node_setBitTiming (Ifx_CAN_N *hwNode, float32 moduleFreq, uint32 baudrate, uint16 samplePoint, uint16 synchJumpWidth)
 Calculates the best posible values and configures BTR register. More...
 
void IfxMultican_calcTimingFromBTR (float32 moduleFreq, uint32 btr, uint32 *baudrate, uint16 *samplePoint, uint16 *synchJumpWidth)
 Returns the CAN node timing. More...
 
void IfxMultican_deinit (Ifx_CAN *mcan)
 Reset the CAN module
Reset and disable the CAN module, inclusive message object and node registers. More...
 
volatile Ifx_SRC_SRCR * IfxMultican_getSrcPointer (Ifx_CAN *mcan, IfxMultican_SrcId srcId)
 Get the interrupt source register. More...
 
void IfxMultican_resetModule (Ifx_CAN *can)
 resets Multican kernel More...
 
void IfxMultican_setListCommand (Ifx_CAN *mcan, uint32 cmd, uint32 arg2, uint32 arg1)
 Execute a command from the command panel. More...
 

Detailed Description

MULTICAN basic functionality.

Version
iLLD_1_0_0_11_0
                            IMPORTANT NOTICE

Infineon Technologies AG (Infineon) is supplying this file for use exclusively with Infineon's microcontroller products. This file can be freely distributed within development tools that are supporting such microcontroller products.

THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.

Definition in file IfxMultican.c.