Component: LIN Slave (Comms): Difference between revisions
Appearance
No edit summary |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 66: | Line 66: | ||
===GetState=== | ===GetState=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetState''' | ||
|- | |- | ||
| colspan="2" | Returns the state of the device | | colspan="2" | Returns the state of the device | ||
| Line 80: | Line 80: | ||
===Initialize=== | ===Initialize=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Initialize''' | ||
|- | |- | ||
| colspan="2" | Initialises the device | | colspan="2" | Initialises the device | ||
| Line 94: | Line 94: | ||
===ListenForMessages=== | ===ListenForMessages=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | 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 118: | Line 118: | ||
===PowerDown=== | ===PowerDown=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''PowerDown''' | ||
|- | |- | ||
| colspan="2" | Power Down the device | | colspan="2" | Power Down the device | ||
| Line 132: | Line 132: | ||
===ReadAddress=== | ===ReadAddress=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadAddress''' | ||
|- | |- | ||
| colspan="2" | Returns the Identifier read | | colspan="2" | Returns the Identifier read | ||
| Line 146: | Line 146: | ||
===ReadData=== | ===ReadData=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadData''' | ||
|- | |- | ||
| colspan="2" | Returns the message data byte | | colspan="2" | Returns the message data byte | ||
| Line 170: | Line 170: | ||
===ReadDataCount=== | ===ReadDataCount=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | 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 189: | Line 189: | ||
===SetData=== | ===SetData=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | 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 248: | Line 248: | ||
===WakeUp=== | ===WakeUp=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''WakeUp''' | ||
|- | |- | ||
| colspan="2" | Wake Up the device | | colspan="2" | Wake Up the device | ||
| Line 263: | Line 263: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Connections | ||
|- | |- | ||
|- | |- | ||
| Line 303: | Line 303: | ||
| colspan="2" | Number of messages the firmware is designed to listen for | | colspan="2" | Number of messages the firmware is designed to listen for | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | MESSAGE1 | ||
|- | |- | ||
|- | |- | ||
| Line 322: | Line 322: | ||
| colspan="2" | Data direction for packet | | colspan="2" | Data direction for packet | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Simulation | ||
|- | |- | ||
|- | |- | ||
| Line 331: | Line 331: | ||
| colspan="2" | A text label to aid identifying the component. | | colspan="2" | A text label to aid identifying the component. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Timing Adjustments | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:36, 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 | |
| Return | |
Initialize
| Initialize | |
| Initialises the device | |
| Return | |
ListenForMessages
| ListenForMessages | |
| Listens for messages with Timeout and returns the state | |
| Timeout | |
| ChecksumType | |
| 0=Classic, 1=Enhanced | |
| Return | |
PowerDown
| PowerDown | |
| Power Down the device | |
| Return | |
ReadAddress
| ReadAddress | |
| Returns the Identifier read | |
| Return | |
ReadData
| ReadData | |
| Returns the message data byte | |
| Message | |
| Message to be read | |
| Index | |
| Index of data byte to be returned | |
| Return | |
ReadDataCount
| ReadDataCount | |
| Return the data count size for Message | |
| Message | |
| Return | |
SetData
WakeUp
| WakeUp | |
| Wake Up the device | |
| Return | |