OEMWriteDebugLED (Compact 2013)

10/16/2014

This function outputs a byte to the destination device's specified LED port.

Syntax

void OEMWriteDebugLED(
  WORD wIndex, 
  DWORD dwPattern 
);

Parameters

  • wIndex
    [in] Specifies which LEDs OEMWriteDebugLED writes the byte to. Values for wIndex are platform-specific. An OEM can use values from 0 to MAX_OEM_LEDINDEX; other values are reserved by the OS for its components.

    For example, a value of -1 might indicate that the dwPattern parameter is written to a number of discrete LEDs, while any other wIndex value indicates a register offset to an alphanumeric display.

  • dwPattern
    [in] The value being written to the LED register.

Return Value

None.

Remarks

If you implement OEMWriteDebugLED, set the pfnWriteDebugLED member of OEMGLOBAL to point to this function.

Requirements

Header

nkintr.h

Library

OEMMain.lib or OEMMain_StaticKITL.lib

See Also

Reference

Optional OAL Functions