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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.4 The LIN Schedule Slot <strong>PLIN</strong> <strong>API</strong> <strong>Documentation</strong><br />

Flags -/- FRAME_FLAG_RESPONSE_ENABLE<br />

FRAME_FLAG_SINGLE_SHOT<br />

(Slave only)<br />

-/- -/-<br />

Initial Data -/- Yes -/- -/-<br />

See Also<br />

TLINFrameEntry ( see page 29)<br />

TLINDirection ( see page 41)<br />

TLINChecksumType ( see page 42)<br />

LIN_SetFrameEntry ( see page 125) (.NET: SetFrameEntry ( see page 81))<br />

LIN_GetFrameEntry ( see page 126) (.NET: GetFrameEntry ( see page 82))<br />

Definitions ( see page 147) (.NET: Constants ( see page 104) )<br />

3.4 The LIN Schedule Slot<br />

When the hardware is used as Master (master-mode), it offers the possibility to deal with a self-standing Schedule table. The<br />

table is generated as an array of single slots (represented by the structure TLINScheduleSlot ( see page 30)).<br />

The hardware works out the table from index X to X+1. The element 0 of the array contains the first slot of the table.<br />

A Schedule-Slot contains the following elements:<br />

Type<br />

Represents the type of a Slot. The Type is defined as TLINSlotType ( see page 40) and can be one of the following values:<br />

• sltUnconditional: An unconditional frame.<br />

• sltEvent: An event frame.<br />

• sltSporadic: A sporadic frame.<br />

• sltMasterRequest: A diagnose master request frame.<br />

• sltSlaveResponse: A diagnose slave response frame.<br />

Delay<br />

This is the time spacing between between this slot and the next one, expressed in milliseconds.<br />

Frame Id<br />

An array with Frame Id(s), without parity bits, associated with a slot.<br />

Count Resolve<br />

For a slot of type sltEvent: Contains the number of Schedule table to resolve the collision.<br />

For a slot of type sltSporadic: The frame Id count for an sporadic frame.<br />

Handle<br />

Slot-Handle to be used for breakpoints.<br />

The values of a Slot must be configured depending on its type:<br />

Unconditional Slots<br />

12<br />

3

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

Saved successfully!

Ooh no, something went wrong!