EAGLE Help Light

UL_DEVICE

Data members

area UL_AREA
description string
headline 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)

Viz také 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:

Příklad


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);
        }
      }
    }
  }


OBSAH Translation © 2001 ELCAD v.o.s., Copyright © 2001 CadSoft Computer GmbH