Jump to content

Component: LIN Master (Comms): Difference between revisions

From Flowcode Help
Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix Ltd |- | width="20%" style="color:gray;" | Version | 1.2 |- | width="20%" style="color:gray..."
 
No edit summary
Line 20: Line 20:


==Detailed description==
==Detailed description==




Line 36: Line 38:


==Examples==
==Examples==





Revision as of 14:41, 16 January 2023

Author Matrix Ltd
Version 1.2
Category Comms


LIN Master component

Low level routines for controlling a LIN master (1.3 & 2.0) interface.

Component Source Code

Please click here for the component source code: FC_Comp_Source_LinMaster.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples


Downloadable macro reference

PowerDown
Power Down the device 
- VOID Return


GetState
Returns the current state 
- BYTE Return


debug
 
- BYTE idx
 
- BYTE Return


SendMessage
Sends message with specified identifier and awaits a reply from a slave. Returns 0 to indicate a successful transaction. Returns 3 to indicate a timeout. Returns 6 to indicate a bad CRC. 
- BYTE Identifier
 
- BYTE ResponseCount
 
- BYTE ChecksumType
0=Classic, 1=Enhanced 
- BYTE Return


ReadDataCount
Returns the data count size 
- BYTE Return


SetData
Sets the data bytes to be sent 
- BYTE Data1
 
- BYTE Data2
 
- BYTE Data3
 
- BYTE Data4
 
- BYTE Data5
 
- BYTE Data6
 
- BYTE Data7
 
- BYTE Data8
 
- VOID Return


ReadData
Returns a data byte indexed by Idx 
- BYTE Idx
 
- BYTE Return


SendMessageWithData
Sends a message with data of length DataCount. See SetData 
- BYTE Identifier
 
- BYTE DataCount
 
- BYTE Checksum
0=Classic, 1=Enhanced 
- BYTE Return


WakeUp
Wake Up the device 
- VOID Return


Initialise
Initialise the component 
- VOID Return



Property reference

Properties
Baud Rate
LIN bus data rate in bits per second 
Label
Label shown on the comms flasher component. 
Connections
TX
LIN Transmit Pin 
RX
LIN Receive Pin  
CS
LIN bus chip select pin 
WAKE
LIN bus Wake up pin