User manual
RC200/203 Manual
www.celoxica.com Page 42
Parameters: Index: Button index, of type unsigned 1.
Return value:
Boolean button state, of type
unsigned 1.
Description:
Reads a value from either of the push buttons. A value of 1
means ON (or closed), a value of 0 means OFF (or open).
5.5.2 RC200Button*Read() macros
extern macro expr RC200Button0Read ();
extern macro expr RC200Button1Read ();
Parameters: None.
Return value:
Boolean button state, of type
unsigned 1.
Description: Reads a value from push button 0 or 1.
5.5.3 RC200ButtonReadMask()
extern macro expr RC200ButtonReadMask ();
Parameters: None.
Return
value:
Bitmask of button state, of type
unsigned 2.
Description:
Reads a value from both of the push buttons. The value at
bit 0 is the state of button 0. The value at bit 1 is the state
of button 1.
5.6 Seven-segment macros
The seven-segment display macros allow you to write a specific hexadecimal digit to each
display, or to specify which segments are lit up.
SevenSeg0* macros target the left-hand
display on the board and
SevenSeg1* macros target the right-hand display.
5.6.1 Setting segments
extern macro proc RC200SevenSeg0WriteShape (Shape);
extern macro proc RC200SevenSeg1WriteShape (Shape);