15.1. Window LIN Driver - WinDrvr

Id

WinDrvr

Title

Window LIN Driver

System

User Input

Document Type

Application Software Component Specification Preview

15.1.1. Overview

The Window LIN Driver (WinDrvr) is a software component responsible for controlling the window switches and LEDs via the LIN bus. It processes the switch inputs from the LIN bus and outputs the corresponding window up/down status and door open switch status. It also controls the brightness of the window switch LEDs based on configurable parameters.

15.1.2. Functions

Title

Description

1

Process Window Switch Inputs

Reads the window switch inputs from the LIN bus, including driver window up/down, passenger window up/down, and door latch open switches. Outputs the corresponding status signals.

2

Control Window Switch LEDs

Controls the brightness of the window switch LEDs based on configurable duty cycle parameters. Outputs the PWM duty cycle values to the LIN bus for each LED.

15.1.3. Ports

Id

Direction

Data Type

Dimensions

Unit

1

LIN_SwitchSta

Incoming

Bus: LIN_SwitchSta_t

[-1]

inherit

2

LIN_SwitchSta_valid

Incoming

boolean

[-1]

inherit

3

LIN_LedCmd

Outgoing

Bus: LIN_LedCmd_t

[-1]

inherit

4

LIN_LedCmd_send

Outgoing

boolean

[-1]

inherit

5

DriverWindowUpStatus

Outgoing

Enum: VtSig_OpenDoorSwSta_t

[-1]

inherit

6

DriverWindowUpStatus_send

Outgoing

boolean

[-1]

inherit

7

DriverWindowDownStatus

Outgoing

Enum: VtSig_OpenDoorSwSta_t

[-1]

inherit

8

DriverWindowDownStatus_send

Outgoing

boolean

[-1]

inherit

9

PassengerWindowUpStatus

Outgoing

Enum: VtSig_OpenDoorSwSta_t

[-1]

inherit

10

PassengerWindowUpStatus_send

Outgoing

boolean

[-1]

inherit

11

PassengerWindowDownStatus

Outgoing

Enum: VtSig_OpenDoorSwSta_t

[-1]

inherit

12

PassengerWindowDownStatus_send

Outgoing

boolean

[-1]

inherit

13

DriverDoorOpenSwitch

Outgoing

Enum: VtSig_sigIntOpenReq_t

[-1]

inherit

14

DriverDoorOpenSwitch_send

Outgoing

boolean

[-1]

inherit

15

PassDoorOpenSwitch

Outgoing

Enum: VtSig_sigIntOpenReq_t

[-1]

inherit

16

PassDoorOpenSwitch_send

Outgoing

boolean

[-1]

inherit

15.1.4. Parameters

Id

Data Type

Dimensions

Range

Unit

Description

1

DorswpakInpMap

uint8

[1,5]

Min: 0, Max: 8

Select the LIN board pin input for each switches: DRV_WIN_UP, DRV_WIN_DN, PAS_WIN_UP, PAS_WIN_DN, LATCH_OPEN

2

DorswpakLiLvl

uint8

[1,4]

Min: 0, Max: 254

The PWM % value for the LED output i.e. Brightness level

3

DorswpakOutMap

uint8

[1,4]

Min: 0, Max: 8

Select the LIN board pin output for the LEDs: DRV_WIN_SW, PAS_WIN_SW, OPEN_SW, RED_WASH