Component: LIN Master (Comms)

From Flowcode Help
Revision as of 17:49, 9 November 2022 by Wiki bot (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
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

Fc9-comp-macro.png PowerDown
Power Down the device 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png GetState
Returns the current state 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png debug
 
Fc9-u8-icon.png - BYTE idx
 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png 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. 
Fc9-u8-icon.png - BYTE Identifier
 
Fc9-u8-icon.png - BYTE ResponseCount
 
Fc9-u8-icon.png - BYTE ChecksumType
0=Classic, 1=Enhanced 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png ReadDataCount
Returns the data count size 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png SetData
Sets the data bytes to be sent 
Fc9-u8-icon.png - BYTE Data1
 
Fc9-u8-icon.png - BYTE Data2
 
Fc9-u8-icon.png - BYTE Data3
 
Fc9-u8-icon.png - BYTE Data4
 
Fc9-u8-icon.png - BYTE Data5
 
Fc9-u8-icon.png - BYTE Data6
 
Fc9-u8-icon.png - BYTE Data7
 
Fc9-u8-icon.png - BYTE Data8
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png ReadData
Returns a data byte indexed by Idx 
Fc9-u8-icon.png - BYTE Idx
 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png SendMessageWithData
Sends a message with data of length DataCount. See SetData 
Fc9-u8-icon.png - BYTE Identifier
 
Fc9-u8-icon.png - BYTE DataCount
 
Fc9-u8-icon.png - BYTE Checksum
0=Classic, 1=Enhanced 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png WakeUp
Wake Up the device 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png Initialise
Initialise the component 
Fc9-void-icon.png - VOID Return



Property reference

Fc9-prop-icon.png Properties
Fc9-type-16-icon.png Baud Rate
LIN bus data rate in bits per second 
Fc9-type-10-icon.png Label
Label shown on the comms flasher component. 
Fc9-conn-icon.png Connections
Fc9-type-5-icon.png TX
LIN Transmit Pin 
Fc9-type-5-icon.png RX
LIN Receive Pin  
Fc9-type-5-icon.png CS
LIN bus chip select pin 
Fc9-type-5-icon.png WAKE
LIN bus Wake up pin