EAGLE Help

UL_DEVICE


Data members

area UL_AREA
description string
headline string
library string
name string (DEVICE_NAME_LENGTH)
package UL_PACKAGE
prefix string (DEVICE_PREFIX_LENGTH)
technologies string (see note)
value string ("On" or "Off")

Loop members

gates() UL_GATE

Constants

DEVICE_NAME_LENGTH max. recommended length of a device name (used in formatted output only)
DEVICE_PREFIX_LENGTH max. recommended length of a device prefix (used in formatted output only)

See also UL_DEVICESET, UL_LIBRARY, UL_PART

All members of UL_DEVICE, except for name and technologies, return the same values as the respective members of the UL_DEVICESET in which the UL_DEVICE has been defined. When using the description text keep in mind that it may contain newline characters ('\n').

Note

The value returned by the technologies member depends on the context in which it is called:

Example

library(L) {
  L.devicesets(S) {
    S.devices(D) {
      printf("Device: %s, Package: %s\n", D.name, D.package.name);
      D.gates(G) {
        printf("\t%s\n", G.name);
        }
      }
    }
  }

Index Copyright © 2005 CadSoft Computer GmbH