1 PLIN-API Documentation - PEAK-System
1 PLIN-API Documentation - PEAK-System
1 PLIN-API Documentation - PEAK-System
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
4.2 Types <strong>PLIN</strong> <strong>API</strong> <strong>Documentation</strong> TLINError<br />
modMaster 2 Hardware working as Master.<br />
4.2.11 TLINHardwareState<br />
Represents the Status of a LIN Hardware. According with the programming language, this type can be a group of defined<br />
values or an enumeration.<br />
Syntax<br />
Pascal<br />
C++<br />
C#<br />
{$Z1}<br />
TLINHardwareState = (<br />
hwsNotInitialized = 0,<br />
hwsAutobaudrate = 1,<br />
hwsActive = 2,<br />
hwsSleep = 3,<br />
hwsShortGround = 6<br />
);<br />
#define TLINHardwareState BYTE<br />
#define hwsNotInitialized 0<br />
#define hwsAutobaudrate 1<br />
#define hwsActive 2<br />
#define hwsSleep 3<br />
#define hwsShortGround 6<br />
public enum TLINHardwareState : byte<br />
{<br />
hwsNotInitialized = 0,<br />
hwsAutobaudrate = 1,<br />
hwsActive = 2,<br />
hwsSleep = 3,<br />
hwsShortGround = 4,<br />
}<br />
Visual Basic<br />
Public Enum TLINHardwareState As Byte<br />
hwsNotInitialized = 0<br />
hwsAutobaudrate = 1<br />
hwsActive = 2<br />
hwsSleep = 3<br />
ShortGround = 6<br />
End Enum<br />
Values<br />
Name Value Description<br />
hwsNotInitialized 0 Hardware is not initialized.<br />
hwsAutobaudrate 1 Hardware is detecting the baud rate.<br />
hwsActive 2 Hardware (bus) is active.<br />
hwsSleep 3 Hardware (bus) is in sleep mode.<br />
ShortGround 6 Hardware (bus-line) shorted to ground.<br />
44<br />
4