Jump to content

Component: LIN Slave (Comms): Difference between revisions

From Flowcode Help
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead""
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead""
Line 69: Line 69:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetState'''
| width="90%" class="mtx-class-macrohead" | '''GetState'''
|-
|-
| colspan="2" | Returns the state of the device 
| colspan="2" | Returns the state of the device 
Line 83: Line 83:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialize'''
| width="90%" class="mtx-class-macrohead" | '''Initialize'''
|-
|-
| colspan="2" | Initialises the device 
| colspan="2" | Initialises the device 
Line 97: Line 97:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ListenForMessages'''
| width="90%" class="mtx-class-macrohead" | '''ListenForMessages'''
|-
|-
| colspan="2" | Listens for messages with Timeout and returns the state 
| colspan="2" | Listens for messages with Timeout and returns the state 
Line 121: Line 121:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PowerDown'''
| width="90%" class="mtx-class-macrohead" | '''PowerDown'''
|-
|-
| colspan="2" | Power Down the device 
| colspan="2" | Power Down the device 
Line 135: Line 135:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadAddress'''
| width="90%" class="mtx-class-macrohead" | '''ReadAddress'''
|-
|-
| colspan="2" | Returns the Identifier read 
| colspan="2" | Returns the Identifier read 
Line 149: Line 149:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadData'''
| width="90%" class="mtx-class-macrohead" | '''ReadData'''
|-
|-
| colspan="2" | Returns the message data byte 
| colspan="2" | Returns the message data byte 
Line 173: Line 173:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadDataCount'''
| width="90%" class="mtx-class-macrohead" | '''ReadDataCount'''
|-
|-
| colspan="2" | Return the data count size for Message 
| colspan="2" | Return the data count size for Message 
Line 192: Line 192:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetData'''
| width="90%" class="mtx-class-macrohead" | '''SetData'''
|-
|-
| colspan="2" | Set the Message data to be automatically sent as part of the ListenForMessages macro. 
| colspan="2" | Set the Message data to be automatically sent as part of the ListenForMessages macro. 
Line 251: Line 251:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WakeUp'''
| width="90%" class="mtx-class-macrohead" | '''WakeUp'''
|-
|-
| colspan="2" | Wake Up the device 
| colspan="2" | Wake Up the device 
Line 266: Line 266:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
| width="90%" class="mtx-class-macrohead" | '''Properties'''  
|-
|-
|-
|-

Revision as of 14:23, 13 July 2026

Author Matrix Ltd
Version 1.2
Category Comms


LIN Slave component

Low level routines for controlling the LIN bus (1.3 / 2.0) slave interface.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_LinSlave.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_LinSlave.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples






Macro reference

GetState

GetState
Returns the state of the device 
- BYTE Return


Initialize

Initialize
Initialises the device 
- VOID Return


ListenForMessages

ListenForMessages
Listens for messages with Timeout and returns the state 
- BYTE Timeout
 
- BYTE ChecksumType
0=Classic, 1=Enhanced 
- BYTE Return


PowerDown

PowerDown
Power Down the device 
- VOID Return


ReadAddress

ReadAddress
Returns the Identifier read 
- BYTE Return


ReadData

ReadData
Returns the message data byte 
- BYTE Message
Message to be read 
- BYTE Index
Index of data byte to be returned 
- BYTE Return


ReadDataCount

ReadDataCount
Return the data count size for Message 
- BYTE Message
 
- BYTE Return


SetData

SetData
Set the Message data to be automatically sent as part of the ListenForMessages macro. 
- BYTE Message
Message to assign data for Range: 1-8 
- BYTE Data1
Data byte value 
- BYTE Data2
Data byte value 
- BYTE Data3
Data byte value 
- BYTE Data4
Data byte value 
- BYTE Data5
Data byte value 
- BYTE Data6
Data byte value 
- BYTE Data7
Data byte value 
- BYTE Data8
Data byte value 
- BYTE Return


WakeUp

WakeUp
Wake Up the device 
- VOID Return


Property reference

Properties
Connections
TX pin
LIN bus data transmit pin 
RX pin
LIN bus data receive pin 
CS pin
LIN bus chip select pin  
FAULT pin
LIN bus fault detection pin  
VREG pin
LIN bus voltage regulation pin  
MESSAGES
Number of messages the firmware is designed to listen for 
MESSAGE1
ID
Message identifier to listen for 
BYTES
Number of bytes to expent in the packet 
TX_RX
Data direction for packet 
Simulation
Label
A text label to aid identifying the component. 
Timing Adjustments
Timer Adjust TX
 
Timer Adjust RX