Component: CAN Bus BL0140 (E-blocks 2)
From Flowcode Help
Jump to navigationJump to search| Author | |
| Version | 1.0 | 
| Category | E-blocks 2 | 
Contents
- 1 CAN_Bus_BL0140 component
- 2 Detailed description
- 3 Examples
- 4 Macro reference
- 4.1 ChangeRate
- 4.2 CheckRx
- 4.3 GetRxData
- 4.4 GetRxDataCount
- 4.5 GetRxIDHi
- 4.6 GetRxIDLo
- 4.7 GetRxIDSimple
- 4.8 GetRxIdent
- 4.9 Initialise
- 4.10 ReadSwitches
- 4.11 SendBuffer
- 4.12 SetRxFilter
- 4.13 SetRxFilterID
- 4.14 SetRxMask
- 4.15 SetRxMaskID
- 4.16 SetTxData
- 4.17 SetTxID
- 4.18 SetTxIDSimple
- 4.19 SetTxIdent
- 4.20 ShowLEDs
 
- 5 Property reference
- 6 Component Source Code
CAN_Bus_BL0140 component
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
ChangeRate
|   | ChangeRate | 
| Simple attempt to alter the bus rate of the CAN. External CAN channels only, | |
|  - BYTE | Rate | 
| Rate: 0-3 where 0=125, 1=250, 2=500, 3=1000 | |
|  - VOID | Return | 
CheckRx
|   | CheckRx | 
| Checks to see if any messages are available for 'Buffer' specified | |
|  - BYTE | Buffer | 
| Send buffer: 0 to 1 | |
|  - BYTE | Return | 
GetRxData
|   | GetRxData | 
| Returns last received message data byte at position Index. Buffer parameter is currently ignored | |
|  - BYTE | Buffer | 
|  - BYTE | Index | 
|  - BYTE | Return | 
GetRxDataCount
|   | GetRxDataCount | 
| Returns last received message data length. Buffer parameter is currently ignored | |
|  - BYTE | Buffer | 
|  - BYTE | Return | 
GetRxIDHi
|   | GetRxIDHi | 
| Gets the Hi byte Rx ID in register format. Standard ID only 0-2047. Compatible with v5 component and previous, | |
|  - BYTE | Buffer | 
| Receive Buffer. Range 0-1 | |
|  - BYTE | Return | 
GetRxIDLo
|   | GetRxIDLo | 
| Gets the Lo byte Rx ID in register format. Standard ID only 0-2047. Compatible with v5 component and previous, | |
|  - BYTE | Buffer | 
|  - BYTE | Return | 
GetRxIDSimple
|   | GetRxIDSimple | 
| Gets the Rx ID as a Integer Standard ID only 0-2047. | |
|  - BYTE | Buffer | 
| Receive Buffer. Range 0-1 | |
|  - UINT | Return | 
GetRxIdent
|   | GetRxIdent | 
| Gets the Rx ID as a Integer Standard and Extended IDs. | |
|  - BYTE | Buffer | 
|  - ULONG | Return | 
Initialise
|   | Initialise | 
| Must be called before any other CAN component macros to enable and initialise the CAN peripheral. | |
|  - VOID | Return | 
ReadSwitches
|   | ReadSwitches | 
| Returns switch input states from the external MCP2515 device. 0 = No Switch Pressed, 1 = Switch 1 Pressed, 2 = Switch 2 Pressed, 3 = Both Pressed (External CAN only) | |
|  - BYTE | Return | 
SendBuffer
|   | SendBuffer | 
| Transmits one of the transmit buffers which should have already been populated with an ID and data. | |
|  - BYTE | Buffer | 
| Specifies which transmit buffer to send | |
|  - VOID | Return | 
SetRxFilter
SetRxFilterID
SetRxMask
SetRxMaskID
SetTxData
SetTxID
SetTxIDSimple
|   | SetTxIDSimple | 
| Set the Tx CAN ID as a generic number. Standard IDs only 0-2047. | |
|  - BYTE | Buffer | 
| Transmit buffer to load. Range: 0-2 | |
|  - UINT | ID | 
| The ID value you wish to use. Range: 0-2047 | |
|  - VOID | Return | 
SetTxIdent
ShowLEDs
|   | ShowLEDs | 
| Set LED state (External CAN only) | |
|  - BYTE | led1 | 
| Controls LED 1. Range: 0-1 | |
|  - BYTE | led2 | 
| Controls LED 2. Range: 0-1 | |
|  - VOID | Return | 
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_EBlocks2_CAN_Bus_BL0140_2d.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_EBlocks2_CAN_Bus_BL0140_2d.fcfx







