System Configuration
FORCE OpenBoot Enhancements
Page 106
SPARC/CPCI-52x(G)
7.1.2
LEDs, Seven Segment Display and Rotary Switch
The commands described below are available to control the seven seg-
ment LED display, the user LEDs, as well as to get information about the
state of the rotary switch.
diag-led!
( byte — ) stores the data byte passed to the command in the register used to
control the seven segment display.
>7-seg-code
( u — 7-seg-code ) converts the value u to its corresponding seven segment
code 7-seg-code. Only the least significant four bits of the value u are
considered.
led!
( colour freq led# — ) controls the user LED identified by led#. led# =
0
specifies the
first user LED,
1
specifies the second user LED. The command only con-
siders the state of bit
0
of the value led#. colour and freq define the co-
lour of the LED and the frequency at which the LED is blinking. The
following constants are defined for colour:
black
(= LED is turned off),
green
,
red
, and
yellow
. The following constants are defined for freq:
no-blinking
(= LED is turned on permanently),
slow
,
moderate
,
and
fast
.
Example:
The following command makes the second user LED blink with a
moderate frequency in red:
ok red moderate 1 led!
led-on
( led# — ) turns on the user LED identified by led#. led# =
0
specifies the first user
LED,
1
specifies the second user LED. The command only considers the
state of bit
0
of the value led#.
led-off
( led# — ) turns off the user LED identified by led#. led# =
0
specifies the first
user LED,
1
specifies the second user LED. The command only considers
the state of bit
0
of the value led#.
led?
( led# —
true
|
false
) determines the state of the LED identified by led#, and re-
turns either
true
or
false
to indicate if the LED is turned on or off.
led# =
0
specifies the first user LED,
1
specifies the second user LED.
The command only considers the state of bit
0
of the value led#.
If the LED is turned on,
true
is returned; otherwise
false
is returned.
toggle-led
( led# — ) determines the state of the user LED identified by led#, and turns
the LED on or off. The LED is turned on when it was turned off before,
and vice versa. led# =
0
specifies the first user LED,
1
specifies the sec-
ond user LED. The command only considers the state of bit
0
of the value
led#. Regardless of the colour having been set, the LED shines yellow af-
Summary of Contents for SPARC/CPCI-520G
Page 6: ...Contents Page iv SPARC CPCI 52x G...
Page 14: ...Using This Manual Page xii SPARC CPCI 52x G...
Page 18: ...Page 4 SPARC CPCI 52x G...
Page 20: ...Introduction Page 6 SPARC CPCI 52x G...
Page 24: ...Ordering Information Introduction Page 10 SPARC CPCI 52x G...
Page 58: ...OpenBoot Firmware Base 520 G Installation Page 44 SPARC CPCI 52x G...
Page 66: ...OpenBoot Firmware Base 520 G Installation Page 52 SPARC CPCI 52x G...
Page 102: ...Ethernet and EBus2 Devices PCIO Hardware Description Page 88 SPARC CPCI 52x G...
Page 114: ...PMC Slots with Busmode Support Hardware Description Page 100 SPARC CPCI 52x G...
Page 134: ......