Component: CAN (CAL) (Misc)
Appearance
| Author | Matrix TSL |
| Version | 2.4 |
| Category | Misc |
CAN component
CAL = Code Abstraction Layer - Allows one code base to run on a wide range of chips. Low level routines for controling the internal CAN peripheral.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_CAN.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_CAN.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Example showing how to build a component using a CAL component Using CAL Components.
Macro reference
CheckRx
| CheckRx | |
| Checks to see if any messages are available for 'Buffer' specified | |
| Buffer | |
| Send buffer: 0 to 1 | |
| Return | |
GetList
| GetList | |
| Get the Filter List of the Named Property | |
| Name | |
| Return | |
GetRxData
| GetRxData | |
| Returns the data byte at index from the buffer specified | |
| buffer | |
| The index of the required buffer | |
| index | |
| The index of the required data byte in the buffer | |
| Return | |
GetRxDataCount
| GetRxDataCount | |
| Returns the number of valid data bytes in the buffer | |
| buffer | |
| The index of the required buffer | |
| Return | |
GetRxIdent
| GetRxIdent | |
| Generic function to get the received message Identifier. | |
| buffer | |
| Return | |
GetValue
| GetValue | |
| Get the Value of the Named property | |
| Name | |
| Return | |
Init
| Init | |
| Must be called at least once and after every Uninit call to enable the CAN instance | |
| Return | |
InitRXConfig
| InitRXConfig | |
| Initialization setting for RX Buffer Config | |
| Buffer | |
| Buffer Number (0 or 1) | |
| Value | |
| Config data byte | |
| Return | |
InitRXFilter
| InitRXFilter | |
| Initialization setting for RX Filter | |
| Filter | |
| Value | |
| Return | |
InitRXMask
| InitRXMask | |
| Initialization setting for RX Mask | |
| Mask | |
| Mask Number (0 or 1) | |
| Value | |
| Return | |
InitTXBuffer
SendBuffer
| SendBuffer | |
| Sends the contents of the buffer previously filled with Set_TX_... calls | |
| Buffer | |
| Send buffer: 0 to,2 | |
| Return | |
SetRxFilter
| SetRxFilter | |
| Generic function to set Identifier. CAN registers will be configured depending upon Std/Ext mode setting. | |
| filter | |
| id | |
| Return | |
SetRxFilterExd
SetRxFilterStd
SetRxMask
| SetRxMask | |
| Generic function to set Identifier. CAN registers will be configured depending upon Std/Ext mode setting. | |
| mask | |
| id | |
| Return | |
SetRxMaskExd
SetRxMaskStd
SetTxData
SetTxIdent
| SetTxIdent | |
| Generic function to set Identifier. CAN registers will be configured depending upon Std/Ext mode setting. | |
| buffer | |
| id | |
| Return | |
SetTxIdentExd
SetTxIdentStd
SetValue
| SetValue | |
| Set the Value of the Named property | |
| Name | |
| Value | |
| Return | |
Uninit
| Uninit | |
| Uninitialises the CAN, freeing its connections for general use | |
| Return | |