11.12.2012 Views

1 PLIN-API Documentation - PEAK-System

1 PLIN-API Documentation - PEAK-System

1 PLIN-API Documentation - PEAK-System

SHOW MORE
SHOW LESS

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><br />

C#<br />

WORD FreeOnSchedulePool;<br />

WORD ReceiveBufferOverrun;<br />

} TLINHardwareStatus;<br />

[StructLayout(LayoutKind.Sequential)]<br />

public struct TLINHardwareStatus<br />

{<br />

[MarshalAs(UnmanagedType.U1)]<br />

public TLINHardwareMode Mode;<br />

[MarshalAs(UnmanagedType.U1)]<br />

public TLINHardwareState Status;<br />

public byte FreeOnSendQueue;<br />

public ushort FreeOnSchedulePool;<br />

public ushort ReceiveBufferOverrun;<br />

}<br />

Visual Basic<br />

_<br />

Public Structure TLINHardwareStatus<br />

_<br />

Public Mode As TLINHardwareMode<br />

_<br />

Public Status As TLINHardwareState<br />

Public FreeOnSendQueue As Byte<br />

Public FreeOnSchedulePool As UShort<br />

Public ReceiveBufferOverrun As UShort<br />

End Structure<br />

Fields<br />

Name Description<br />

Mode Node state.<br />

Status Bus state.<br />

FreeOnSendQueue Count of free places in the Transmit Queue.<br />

FreeOnSchedulePool Free slots in the Schedule pool.<br />

ReceiveBufferOverrun USB receive buffer overrun counter.<br />

See Also<br />

TLINHardwareMode ( see page 43)<br />

TLINHardwareState ( see page 44)<br />

4.2 Types<br />

The <strong>PLIN</strong> <strong>API</strong> defines the following types:<br />

Name Description<br />

HLINCLIENT ( see page 33) Represents a LIN Client handle.<br />

HLINHW ( see page 34) Represents a LIN Hardware handle.<br />

TLINMsgErrors ( see page 34) Represents the Error flags for LIN received messages.<br />

TLINClientParam ( see page 36) Represents the Client-Parameters used within the functions GetClientParam (<br />

see page 56) and SetClientParam ( see page 55).<br />

TLINHardwareParam ( see page 37) Represents the Hardware-Parameters used within the functions<br />

GetHardwareParam ( see page 71) and SetHardwareParam ( see page 66).<br />

TLINMsgType ( see page 39) Represents the Type of a received LIN message.<br />

32<br />

4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!