Component: LIN Slave (Comms: Interface): Difference between revisions
Appearance
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead"" |
||
| Line 68: | Line 68: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise''' | ||
|- | |- | ||
| Line 82: | Line 82: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''ListenForMessages''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ListenForMessages''' | ||
|- | |- | ||
| Line 101: | Line 101: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''PowerDown''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PowerDown''' | ||
|- | |- | ||
| Line 115: | Line 115: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadData''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadData''' | ||
|- | |- | ||
| Line 139: | Line 139: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadDataCount''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadDataCount''' | ||
|- | |- | ||
| Line 158: | Line 158: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetData''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetData''' | ||
|- | |- | ||
| Line 182: | Line 182: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''WakeUp''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WakeUp''' | ||
|- | |- | ||
Revision as of 14:17, 13 July 2026
| Author | Matrix Ltd |
| Version | 1.2 |
| Category | Comms: Interface |
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_LinSlaveV2.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_LinSlaveV2.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
Initialise
| Initialise | |
| Initialises the device ready for communications from the master. Puts the bus into the Wake state driving the CS pin high. | |
| Return | |
ListenForMessages
PowerDown
| PowerDown | |
| Puts the bus into the Powered Down state driving the CS pin low. | |
| Return | |
ReadData
ReadDataCount
| ReadDataCount | |
| Return the data count size for Message | |
| Message | |
| Range: 1 - Num Messages | |
| Return | |
SetData
WakeUp
| WakeUp | |
| Puts the bus into the Wake state driving the CS pin high. | |
| Return | |