Difference between revisions of "Component: J1939 (Misc)"
From Flowcode Help
Jump to navigationJump to search|  (Created page with "{| style="width:50%"  |-  | width="20%" style="color:gray;" | Author  |   |-  | width="20%" style="color:gray;" | Version  | 1.1  |-  | width="20%" style="color:gray;" | Categ...") | |||
| Line 17: | Line 17: | ||
| ==Component Source Code== | ==Component Source Code== | ||
| − | Please click here  | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_J1939.fcfx FC_Comp_Source_J1939.fcfx] | 
| ==Detailed description== | ==Detailed description== | ||
| + | |||
| + | |||
| Line 40: | Line 42: | ||
| ==Examples== | ==Examples== | ||
| + | |||
| + | |||
| Line 88: | Line 92: | ||
| | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] | ||
| | width="90%" | Sim | | width="90%" | Sim | ||
| + | |- | ||
| + | | colspan="2" |   | ||
| + | |}==Macro reference== | ||
| + | |||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Rx_Transfer_Data''' | ||
| + | |- | ||
| + | | colspan="2" | Returns the byte count and data of the transfer message data  | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" | DataBuffer | ||
| + | |- | ||
| + | | colspan="2" | Buffer to receive copied data  | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT | ||
| + | | width="90%" | Size | ||
| + | |- | ||
| + | | colspan="2" | Size (byte count) of buffer  | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u16-icon.png]] - UINT | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| + | |||
| + | |||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Message_Data_Read_SPN''' | ||
| + | |- | ||
| + | | colspan="2" | Read the SPN value from the CAN data buffer  | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT | ||
| + | | width="90%" | SPN | ||
| + | |- | ||
| + | | colspan="2" |   | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" | DataBuffer | ||
| + | |- | ||
| + | | colspan="2" |   | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u16-icon.png]] - UINT | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| + | |||
| + | |||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Process''' | ||
| + | |- | ||
| + | | colspan="2" | Does the message processing. Call this often.  | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT | ||
| + | | width="90%" | TimeElapsed | ||
| + | |- | ||
| + | | colspan="2" | Time elapsed since last call, in mS. Can be zero for frequent calling.  | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| + | |||
| + | |||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Rx_Transfer_Check''' | ||
| + | |- | ||
| + | | colspan="2" | Check for incoming multipart data transfers. If received, returns the PGN else 0  | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u32-icon.png]] - ULONG | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| + | |||
| + | |||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Get_Address''' | ||
| + | |- | ||
| + | | colspan="2" | Returns the device (ECU) actual address  | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| + | |||
| + | |||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Message_Data_Set''' | ||
| + | |- | ||
| + | | colspan="2" | Set all data in CAN Data Buffer to given value. e.g. 0 or 0xFF  | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" | DataBuffer | ||
| + | |- | ||
| + | | colspan="2" |   | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" | Value | ||
| + | |- | ||
| + | | colspan="2" |   | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| + | |||
| + | |||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Tx_Transfer_Send''' | ||
| + | |- | ||
| + | | colspan="2" | Send a mulitpart data transfer message. Returns number of bytes accepted. Limited by max message size.  | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u32-icon.png]] - ULONG | ||
| + | | width="90%" | PGN | ||
| + | |- | ||
| + | | colspan="2" | Multipart message program number  | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" | Data | ||
| + | |- | ||
| + | | colspan="2" | Data buffer to send  | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT | ||
| + | | width="90%" | Size | ||
| + | |- | ||
| + | | colspan="2" | Number of data bytes to send  | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u16-icon.png]] - UINT | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| + | |||
| + | |||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Rx_Message_Check''' | ||
| + | |- | ||
| + | | colspan="2" | If a data message has been received returns the PGN,otherwise 0  | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u16-icon.png]] - UINT | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| + | |||
| + | |||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Get_Status''' | ||
| + | |- | ||
| + | | colspan="2" | Returns the system status. 0 = Ready. 1 = Waiting address claim  | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| + | |||
| + | |||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Message_Data_Write_SPN''' | ||
| + | |- | ||
| + | | colspan="2" | Write the SPN value to the CAN data buffer  | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT | ||
| + | | width="90%" | SPN | ||
| + | |- | ||
| + | | colspan="2" |   | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT | ||
| + | | width="90%" | Value | ||
| + | |- | ||
| + | | colspan="2" |   | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" | DataBuffer | ||
| + | |- | ||
| + | | colspan="2" |   | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| + | |||
| + | |||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Rx_Message_Data''' | ||
| + | |- | ||
| + | | colspan="2" | Returns the DLC and data of the last received message  | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" | DataBuffer | ||
| + | |- | ||
| + | | colspan="2" |   | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| + | |||
| + | |||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Tx_Message_Send''' | ||
| + | |- | ||
| + | | colspan="2" | Send the prepared CAN message  | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT | ||
| + | | width="90%" | PGN | ||
| + | |- | ||
| + | | colspan="2" |   | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" | DLC | ||
| + | |- | ||
| + | | colspan="2" |   | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" | DataBuffer | ||
| + | |- | ||
| + | | colspan="2" |   | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| + | |||
| + | |||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Message_Data_Clear''' | ||
| + | |- | ||
| + | | colspan="2" | Clear the CAN Data Buffer  | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" | DataBuffer | ||
| + | |- | ||
| + | | colspan="2" |   | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| + | |||
| + | |||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Rx_Message_Source''' | ||
| + | |- | ||
| + | | colspan="2" | Returns the Source Address of the last received message  | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| + | |||
| + | |||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise''' | ||
| + | |- | ||
| + | | colspan="2" | Initialise the CAN network and J1939 protocol  | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" | Preferred_Address | ||
| + | |- | ||
| + | | colspan="2" | Preferred Address (Requested Address)  | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ==Property reference== | ||
| + | |||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | ||
| + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | NAME | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | ||
| + | | width="90%" | Industry Group | ||
| + | |- | ||
| + | | colspan="2" |   | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | ||
| + | | width="90%" | Vehicle System Instance | ||
| + | |- | ||
| + | | colspan="2" |   | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | ||
| + | | width="90%" | Vehicle System | ||
| + | |- | ||
| + | | colspan="2" |   | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | ||
| + | | width="90%" | Function | ||
| + | |- | ||
| + | | colspan="2" |   | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | ||
| + | | width="90%" | Function Instance | ||
| + | |- | ||
| + | | colspan="2" |   | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | ||
| + | | width="90%" | ECU Instance | ||
| + | |- | ||
| + | | colspan="2" |   | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | ||
| + | | width="90%" | Manufacturer Code | ||
| + | |- | ||
| + | | colspan="2" |   | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | ||
| + | | width="90%" | Identity Number | ||
| + | |- | ||
| + | | colspan="2" |   | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | ||
| + | | width="90%" | Transmit Message Buffer Size | ||
| + | |- | ||
| + | | colspan="2" | Byte buffer size to allocate for transmitted multipart messages. Maximum is 1785 or available RAM  | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | ||
| + | | width="90%" | Receive Message Buffer Size | ||
| + | |- | ||
| + | | colspan="2" | Byte buffer size to allocate for received multipart messages. Maximum is 1785 or available RAM  | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | ||
| + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | CAN | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | ||
| + | | width="90%" | Channel | ||
| + | |- | ||
| + | | colspan="2" | Switches between Internal CAN peripheral and External CAN controller IC MCP2515.  | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | ||
| + | | width="90%" | Controller Osc | ||
| + | |- | ||
| + | | colspan="2" |   | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | ||
| + | | width="90%" | Bus Rate | ||
| + | |- | ||
| + | | colspan="2" | Data rate of the bus specified in thousand bits per second, Kbps.  | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | ||
| + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Connections | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | ||
| + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | SPI | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | ||
| + | | width="90%" | CHANNEL | ||
| + | |- | ||
| + | | colspan="2" | SPI Channel selector  | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | ||
| + | | width="90%" | MOSI | ||
| + | |- | ||
| + | | colspan="2" | SPI Data Out Pin SDO - Also Known as Master Out Slave In (MOSI) when used in Master mode.  | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | ||
| + | | width="90%" | MISO | ||
| + | |- | ||
| + | | colspan="2" | SPI Data In Pin SDI - Also Known as Master In Slave Out (MISO) when used in Master mode.  | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | ||
| + | | width="90%" | CLK | ||
| + | |- | ||
| + | | colspan="2" | SPI Clock Pin CLK - The Clock signal is driven by the SPI master.  | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | ||
| + | | width="90%" | SS | ||
| + | |- | ||
| + | | colspan="2" | Chip Select / Slave Select Pin  Master Mode: General purpose output pin used to select the remote SPI device. Slave Mode: Hardware chip select pin input used to select the SPI device.   | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | ||
| + | | width="90%" | Prescale | ||
| + | |- | ||
| + | | colspan="2" | Prescale option selector  | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | ||
| + | | width="90%" | Sample Point | ||
| + | |- | ||
| + | | colspan="2" | Data bit read sample point  | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | ||
| + | | width="90%" | Config Delay | ||
| |- | |- | ||
| | colspan="2" |   | | colspan="2" |   | ||
Revision as of 15:15, 20 January 2023
| Author | |
| Version | 1.1 | 
| Category | Misc | 
Contents
J1939 component
Component Source Code
Please click here to view the component source code (Beta): FC_Comp_Source_J1939.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
|   | Check | 
| Returns 0 if running on an embedded target or 1 if running in simulation runtime. | |
|  - BOOL | Return | 
Property reference
|   | Properties | 
|   | Sim | 
==Macro reference==
|   | Rx_Transfer_Data | 
| Returns the byte count and data of the transfer message data | |
|  - BYTE | DataBuffer | 
| Buffer to receive copied data | |
|  - UINT | Size | 
| Size (byte count) of buffer | |
|  - UINT | Return | 
|   | Message_Data_Read_SPN | 
| Read the SPN value from the CAN data buffer | |
|  - UINT | SPN | 
|  - BYTE | DataBuffer | 
|  - UINT | Return | 
|   | Process | 
| Does the message processing. Call this often. | |
|  - UINT | TimeElapsed | 
| Time elapsed since last call, in mS. Can be zero for frequent calling. | |
|  - BYTE | Return | 
|   | Rx_Transfer_Check | 
| Check for incoming multipart data transfers. If received, returns the PGN else 0 | |
|  - ULONG | Return | 
|   | Get_Address | 
| Returns the device (ECU) actual address | |
|  - BYTE | Return | 
|   | Message_Data_Set | 
| Set all data in CAN Data Buffer to given value. e.g. 0 or 0xFF | |
|  - BYTE | DataBuffer | 
|  - BYTE | Value | 
|  - VOID | Return | 
|   | Rx_Message_Check | 
| If a data message has been received returns the PGN,otherwise 0 | |
|  - UINT | Return | 
|   | Get_Status | 
| Returns the system status. 0 = Ready. 1 = Waiting address claim | |
|  - BYTE | Return | 
|   | Message_Data_Write_SPN | 
| Write the SPN value to the CAN data buffer | |
|  - UINT | SPN | 
|  - UINT | Value | 
|  - BYTE | DataBuffer | 
|  - BYTE | Return | 
|   | Rx_Message_Data | 
| Returns the DLC and data of the last received message | |
|  - BYTE | DataBuffer | 
|  - BYTE | Return | 
|   | Tx_Message_Send | 
| Send the prepared CAN message | |
|  - UINT | PGN | 
|  - BYTE | DLC | 
|  - BYTE | DataBuffer | 
|  - BYTE | Return | 
|   | Message_Data_Clear | 
| Clear the CAN Data Buffer | |
|  - BYTE | DataBuffer | 
|  - VOID | Return | 
|   | Rx_Message_Source | 
| Returns the Source Address of the last received message | |
|  - BYTE | Return | 
|   | Initialise | 
| Initialise the CAN network and J1939 protocol | |
|  - BYTE | Preferred_Address | 
| Preferred Address (Requested Address) | |
|  - BYTE | Return | 
Property reference
==Macro reference==
|   | Rx_Transfer_Data | 
| Returns the byte count and data of the transfer message data | |
|  - BYTE | DataBuffer | 
| Buffer to receive copied data | |
|  - UINT | Size | 
| Size (byte count) of buffer | |
|  - UINT | Return | 
|   | Message_Data_Read_SPN | 
| Read the SPN value from the CAN data buffer | |
|  - UINT | SPN | 
|  - BYTE | DataBuffer | 
|  - UINT | Return | 
|   | Process | 
| Does the message processing. Call this often. | |
|  - UINT | TimeElapsed | 
| Time elapsed since last call, in mS. Can be zero for frequent calling. | |
|  - BYTE | Return | 
|   | Rx_Transfer_Check | 
| Check for incoming multipart data transfers. If received, returns the PGN else 0 | |
|  - ULONG | Return | 
|   | Get_Address | 
| Returns the device (ECU) actual address | |
|  - BYTE | Return | 
|   | Message_Data_Set | 
| Set all data in CAN Data Buffer to given value. e.g. 0 or 0xFF | |
|  - BYTE | DataBuffer | 
|  - BYTE | Value | 
|  - VOID | Return | 
|   | Rx_Message_Check | 
| If a data message has been received returns the PGN,otherwise 0 | |
|  - UINT | Return | 
|   | Get_Status | 
| Returns the system status. 0 = Ready. 1 = Waiting address claim | |
|  - BYTE | Return | 
|   | Message_Data_Write_SPN | 
| Write the SPN value to the CAN data buffer | |
|  - UINT | SPN | 
|  - UINT | Value | 
|  - BYTE | DataBuffer | 
|  - BYTE | Return | 
|   | Rx_Message_Data | 
| Returns the DLC and data of the last received message | |
|  - BYTE | DataBuffer | 
|  - BYTE | Return | 
|   | Tx_Message_Send | 
| Send the prepared CAN message | |
|  - UINT | PGN | 
|  - BYTE | DLC | 
|  - BYTE | DataBuffer | 
|  - BYTE | Return | 
|   | Message_Data_Clear | 
| Clear the CAN Data Buffer | |
|  - BYTE | DataBuffer | 
|  - VOID | Return | 
|   | Rx_Message_Source | 
| Returns the Source Address of the last received message | |
|  - BYTE | Return | 
|   | Initialise | 
| Initialise the CAN network and J1939 protocol | |
|  - BYTE | Preferred_Address | 
| Preferred Address (Requested Address) | |
|  - BYTE | Return | 




