Author
|
MatrixTSL
|
Version
|
1.2
|
Category
|
Comms: Interface
|
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_LinMasterV2.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
|
UpdateBaud
|
Changes the UART Baud rate. 0=1200, 1=2400, 2=4800, 3=9600, 4=19200, 5=38400, 6=57600, 7=115200, 8=250000
|
- BYTE
|
new_baud
|
0=1200, 1=2400, 2=4800, 3=9600, 4=19200, 5=38400, 6=57600, 7=115200, 8=250000
|
- VOID
|
Return
|
|
PowerDown
|
Power Down the device
|
- VOID
|
Return
|
|
SendMessageTxData
|
Sends a message to the slave along with data
|
- BYTE
|
Identifier
|
6-Bit ID field, Range: 0x00 to 0x3F
|
- BYTE
|
ChecksumType
|
0=Classic (LIN 1.3), 1=Enhanced (LIN 2.0)
|
- BYTE
|
DataCount
|
Number of data bytes to transmit to the slave, Range: 0 to 8
|
- BYTE
|
Data
|
Data array to send to the slave
|
- VOID
|
Return
|
|
SendMessageRxData
|
Sends message with specified identifier and awaits a reply from a slave. Returns the number of data bytes received, 254 for a timeout or 255 for a checksum error.
|
- BYTE
|
Identifier
|
6-Bit ID field, Range: 0x00 to 0x3F
|
- BYTE
|
ChecksumType
|
0=Classic (LIN 1.3), 1=Enhanced (LIN 2.0)
|
- BYTE
|
ResponseCount
|
Number of bytes to receive from the slave, Range: 0 to 8
|
- BYTE
|
ResponseData
|
Data array to pass the received data
|
- BYTE
|
Return
|
|
WakeUp
|
Wake Up the device
|
- VOID
|
Return
|
|
Initialise
|
Initialise the component
|
- VOID
|
Return
|
Property reference
|
Properties
|
|
Bus Options
|
|
Channel
|
UART Channel selector Software channels are bit banged using generic I/O pins but are not as reliable as hardware channels. Hardware channels use the selected peripheral on-board the target microcontroller.
|
|
Baud Options
|
Baud rate option selector
|
|
Baud Rate
|
|
|
Receive Timeout
|
The number of milliseconds to wait for incoming data to be received from the slave.
|
|
Connections
|
|
TX
|
Pin to be used for Transmit data
|
|
TX Remap Pin
|
Allows the hardware transmit pin to be configured from a list of available pins based on your target device,
|
|
RX
|
Pin to be used for Receive data
|
|
RX Remap Pin
|
Allows the hardware receive pin to be configured from a list of available pins based on your target device,
|
|
CS
|
LIN bus chip select pin
|
|
Simulation
|
|
Scope Traces
|
Selects if the scope traces are automatically added to the data recorder window or not. Simulation - draws an approximation of the UART data onto the scope trace. ICT - sets up the scope trace for incoming data and adds UART packet decoding at the correct BAUD.
|
|
Console Data
|
Selects if the console data is automatically generated or not
|
|
Console Format
|
Controls if the data is shown as a log with time and date stamps or just as raw data
|
|
Console Columns
|
Number of characters that can be displayed on a single line of the console.
|
|
Data Source
|
Simulation data source used to allow the component to connect to various remote devices Nothing - Simulation data is ignored COM port - Routes the communication data to and from a physical or virtual COM port API - Routes the communication data via a data injector component on the Panel.
|