iLLD_TC27xD  1.0
General functions
Collaboration diagram for General functions:

Functions

IFX_INLINE void IfxMultican_clearMessagePendingSeletor (Ifx_CAN *mcan)
 clears the message pending interrupt notification of a given list More...
 
IFX_INLINE void IfxMultican_clearPendingMessageNotification (Ifx_CAN *mcan, uint16 list)
 clears the message pending interrupt notification of a given list More...
 
IFX_INLINE void IfxMultican_disableModule (Ifx_CAN *mcan)
 Disables the module (sets the disable request) More...
 
IFX_INLINE void IfxMultican_disableSleepMode (Ifx_CAN *mcan)
 Disregards the sleep mode of the module. More...
 
IFX_INLINE void IfxMultican_enableModule (Ifx_CAN *mcan)
 Enables the module (clears the disable request) More...
 
IFX_INLINE void IfxMultican_enableSleepMode (Ifx_CAN *mcan)
 Enables the sleep mode of the module. More...
 
IFX_INLINE uint16 IfxMultican_getFractionalDividerMode (Ifx_CAN *mcan)
 Returns the selected fractional divider mode. More...
 
IFX_INLINE uint16 IfxMultican_getFractionalDividerStepValue (Ifx_CAN *mcan)
 Returns the reload or addition value for the result. More...
 
IFX_INLINE IfxMultican_ClockSelect IfxMultican_getInputClock (Ifx_CAN *mcan)
 Returns the selected input clock source. More...
 
IFX_INLINE boolean IfxMultican_isModuleEnabled (Ifx_CAN *mcan)
 Returns the status of module enabled or disabled. More...
 
IFX_INLINE void IfxMultican_setFractionalDividerMode (Ifx_CAN *mcan, uint16 mode)
 sets the fractional divider mode More...
 
IFX_INLINE void IfxMultican_setFractionalDividerStepValue (Ifx_CAN *mcan, uint16 stepValue)
 sets reload or addition value for the result. More...
 
IFX_INLINE void IfxMultican_setInputClock (Ifx_CAN *mcan, IfxMultican_ClockSelect clockSelect)
 Sets the input clock source. More...
 
IFX_INLINE void IfxMultican_setMessageIndexMask (Ifx_CAN *mcan, uint32 mask)
 clears the message pending interrupt notification of a given list More...
 
IFX_INLINE void IfxMultican_setSleepMode (Ifx_CAN *can, IfxMultican_SleepMode mode)
 Sets the sensitivity of the module to sleep signal. More...
 
IFX_INLINE void IfxMultican_waitListReady (Ifx_CAN *mcan)
 Wait until the list panel is ready. More...
 
IFX_EXTERN void IfxMultican_Node_setFastBitTiming (Ifx_CAN_N *hwNode, float32 moduleFreq, uint32 baudrate, uint16 samplePoint, uint16 synchJumpWidth)
 Calculates the best posible values and configures FBTR register. More...
 
IFX_EXTERN void IfxMultican_Node_setNominalBitTiming (Ifx_CAN_N *hwNode, float32 moduleFreq, uint32 baudrate, uint16 samplePoint, uint16 synchJumpWidth)
 Calculates the best posible values and configures BTEVR register. More...
 
IFX_EXTERN void IfxMultican_deinit (Ifx_CAN *mcan)
 Reset the CAN module
Reset and disable the CAN module, inclusive message object and node registers. More...
 
IFX_EXTERN void IfxMultican_resetModule (Ifx_CAN *can)
 resets Multican kernel More...
 
IFX_EXTERN void IfxMultican_setListCommand (Ifx_CAN *mcan, uint32 cmd, uint32 arg2, uint32 arg1)
 Execute a command from the command panel. More...
 

Detailed Description

Function Documentation

IFX_INLINE void IfxMultican_clearMessagePendingSeletor ( Ifx_CAN *  mcan)

clears the message pending interrupt notification of a given list

Parameters
mcanmcan Specifies the CAN module
Returns
None

Definition at line 1479 of file IfxMultican.h.

Referenced by IfxMultican_Can_initModule().

IFX_INLINE void IfxMultican_clearPendingMessageNotification ( Ifx_CAN *  mcan,
uint16  list 
)

clears the message pending interrupt notification of a given list

Parameters
mcanmcan Specifies the CAN module
listList number
Returns
None

Definition at line 1485 of file IfxMultican.h.

Referenced by IfxMultican_Can_initModule().

IFX_EXTERN void IfxMultican_deinit ( Ifx_CAN *  mcan)

Reset the CAN module
Reset and disable the CAN module, inclusive message object and node registers.

Parameters
mcanSpecifies the CAN module
Returns
None

Definition at line 921 of file IfxMultican.c.

Referenced by IfxMultican_Can_deinit().

IFX_INLINE void IfxMultican_disableModule ( Ifx_CAN *  mcan)

Disables the module (sets the disable request)

Parameters
mcanmcan Specifies the CAN module
Returns
None

Definition at line 1491 of file IfxMultican.h.

IFX_INLINE void IfxMultican_disableSleepMode ( Ifx_CAN *  mcan)

Disregards the sleep mode of the module.

Parameters
mcanmcan Specifies the CAN module
Returns
None

Definition at line 1497 of file IfxMultican.h.

Referenced by IfxMultican_Can_initModule().

IFX_INLINE void IfxMultican_enableModule ( Ifx_CAN *  mcan)

Enables the module (clears the disable request)

Parameters
mcanmcan Specifies the CAN module
Returns
None

Definition at line 1503 of file IfxMultican.h.

Referenced by IfxMultican_Can_initModule().

IFX_INLINE void IfxMultican_enableSleepMode ( Ifx_CAN *  mcan)

Enables the sleep mode of the module.

Parameters
mcanmcan Specifies the CAN module
Returns
None

Definition at line 1509 of file IfxMultican.h.

IFX_INLINE uint16 IfxMultican_getFractionalDividerMode ( Ifx_CAN *  mcan)

Returns the selected fractional divider mode.

Parameters
mcanmcan Specifies the CAN module
Returns
Divider mode

Definition at line 1515 of file IfxMultican.h.

Referenced by IfxMultican_Can_getConfig().

IFX_INLINE uint16 IfxMultican_getFractionalDividerStepValue ( Ifx_CAN *  mcan)

Returns the reload or addition value for the result.

Parameters
mcanmcan Specifies the CAN module
Returns
Step Value

Definition at line 1521 of file IfxMultican.h.

Referenced by IfxMultican_Can_getConfig().

IFX_INLINE IfxMultican_ClockSelect IfxMultican_getInputClock ( Ifx_CAN *  mcan)

Returns the selected input clock source.

Parameters
mcanmcan Specifies the CAN module
Returns
Clock selection

Definition at line 1527 of file IfxMultican.h.

Referenced by IfxMultican_Can_getConfig().

IFX_INLINE boolean IfxMultican_isModuleEnabled ( Ifx_CAN *  mcan)

Returns the status of module enabled or disabled.

Parameters
mcanmcan Specifies the CAN module
Returns
Status (TRUE / FALSE)

Definition at line 1533 of file IfxMultican.h.

Referenced by IfxMultican_Can_initModule().

IFX_EXTERN void IfxMultican_Node_setFastBitTiming ( Ifx_CAN_N *  hwNode,
float32  moduleFreq,
uint32  baudrate,
uint16  samplePoint,
uint16  synchJumpWidth 
)

Calculates the best posible values and configures FBTR register.

Parameters
hwNodePointer to CAN Node registers
moduleFreqSpecifies the CAN module frequency
baudrateSpecifies the node baud rate. Unit: baud
samplePointSpecifies the sample point. Range = [0, 10000] resp. [0%, 100%] of the total bit time.
synchJumpWidthsynchJumpWidth Specifies the re-synchronization jump width.
Range = [0, 10000] resp. [0%, 100%] of the total bit time.
Returns
None

Definition at line 712 of file IfxMultican.c.

Referenced by IfxMultican_Can_Node_init().

IFX_EXTERN void IfxMultican_Node_setNominalBitTiming ( Ifx_CAN_N *  hwNode,
float32  moduleFreq,
uint32  baudrate,
uint16  samplePoint,
uint16  synchJumpWidth 
)

Calculates the best posible values and configures BTEVR register.

Parameters
hwNodePointer to CAN Node registers
moduleFreqSpecifies the CAN module frequency
baudrateSpecifies the node baud rate. Unit: baud
samplePointSpecifies the sample point. Range = [0, 10000] resp. [0%, 100%] of the total bit time.
synchJumpWidthsynchJumpWidth Specifies the re-synchronization jump width.
Range = [0, 10000] resp. [0%, 100%] of the total bit time.
Returns
None

Definition at line 807 of file IfxMultican.c.

Referenced by IfxMultican_Can_Node_init().

IFX_EXTERN void IfxMultican_resetModule ( Ifx_CAN *  can)

resets Multican kernel

Parameters
canpointer to CAN registers
Returns
None

Definition at line 969 of file IfxMultican.c.

IFX_INLINE void IfxMultican_setFractionalDividerMode ( Ifx_CAN *  mcan,
uint16  mode 
)

sets the fractional divider mode

Parameters
mcanmcan Specifies the CAN module
modeDivider mode
Returns
None

Definition at line 1539 of file IfxMultican.h.

Referenced by IfxMultican_Can_initModule().

IFX_INLINE void IfxMultican_setFractionalDividerStepValue ( Ifx_CAN *  mcan,
uint16  stepValue 
)

sets reload or addition value for the result.

Parameters
mcanmcan Specifies the CAN module
stepValueStep Value
Returns
None

Definition at line 1545 of file IfxMultican.h.

Referenced by IfxMultican_Can_initModule().

IFX_INLINE void IfxMultican_setInputClock ( Ifx_CAN *  mcan,
IfxMultican_ClockSelect  clockSelect 
)

Sets the input clock source.

Parameters
mcanmcan Specifies the CAN module
clockSelectClock selection
Returns
None

Definition at line 1551 of file IfxMultican.h.

Referenced by IfxMultican_Can_initModule().

IFX_EXTERN void IfxMultican_setListCommand ( Ifx_CAN *  mcan,
uint32  cmd,
uint32  arg2,
uint32  arg1 
)

Execute a command from the command panel.

Parameters
mcanSpecifies the CAN module
cmdSpecifies the command
arg2Specifies the second argument
arg1Specifies the first argument
Returns
None
  • write to CAN_PANCTR

Definition at line 988 of file IfxMultican.c.

Referenced by IfxMultican_Can_MsgObj_init(), and IfxMultican_MsgObj_deinit().

IFX_INLINE void IfxMultican_setMessageIndexMask ( Ifx_CAN *  mcan,
uint32  mask 
)

clears the message pending interrupt notification of a given list

Parameters
mcanmcan Specifies the CAN module
maskMessage Index mask
Returns
None

Definition at line 1557 of file IfxMultican.h.

Referenced by IfxMultican_Can_initModule().

IFX_INLINE void IfxMultican_setSleepMode ( Ifx_CAN *  can,
IfxMultican_SleepMode  mode 
)

Sets the sensitivity of the module to sleep signal.

Parameters
canpointer to CAN registers
modemode selection (enable / disable)
Returns
None

Definition at line 1563 of file IfxMultican.h.

IFX_INLINE void IfxMultican_waitListReady ( Ifx_CAN *  mcan)

Wait until the list panel is ready.

Parameters
mcanmcan Specifies the CAN module
Returns
None

Definition at line 1572 of file IfxMultican.h.

Referenced by IfxMultican_Can_initModule(), and IfxMultican_setListCommand().