Elatec GmbH
Page 43 of 50
7.2.5.4 Accessing the Beeper
void SetVolume(byte Volume)
Set the volume of the beeper.
Parameter:
byte
Volume
A value between 0 (beeper turned off) and 4 (maximum volume).
Return:
None.
void Beep(byte Type)
Sound some type of beep.
Parameter:
byte
Type
Four types of beeps are defined by constants:
BEEPLOW
:
A beep at lower frequency
BEEPHIGH
:
A beep at higher frequency
BEEPSUCCESS
:
A low-high sequence, which is
intended to signal a successful operation.
BEEPFAILED
:
A high-low sequence, which is
intended to signal an operation which has
not been successful.
Return:
None.
7.2.5.5 Bit Operations
byte CompBits(byte &Data1, byte &Data2,byte BitCount)
Compare two bit sets.
Parameters:
byte &
Data1
Reference to an array of bytes which represent a bit field
byte &
Data2
Reference to an array of bytes which represent a bit field
byte
BitCount
Number of bits (beginning from bit index 0) to be compared.
Return:
TRUE
:
The two bit fields are identical.
FALSE
:
The two bit fields are not identical