Accessing the Beep Driver via a DLL
The following code snippet (written in Visual Basic .NET) shows you how to incorporate generate
beeps tones into an application using Beep.DLL:
‘ BEEP.dll functions.
‘ Sound the beep.
Private Declare Sub BeepTone Lib “beep” Alias “PlayTone” ( _
ByVal intFrequency As Interger, _
ByVal intVolume As Interger, _
ByVal intDurationMS As Interger, _
)
‘ BeepTone Parameters:
‘
Frequency (KHz) Min – Max
56 to 20000
‘
Normalized Volume Min – Max
1 to 100
‘
Duration (Milliseconds) Min
1 to 10000 (10 sec)
Beeptone (200, 50, 1000)
Miscellaneous Functions
The JETT•RFID has a multifunctional DLL (Jettce.DLL) that allows you to incorporate the following
tasks into an application:
•
Turn auxiliary power on and off for internal integrated devices, such as RFID or Bluetooth
cards
•
Setting the screen brightness.
Turning Auxiliary Power On and Off
The following code snippet (written in Visual Basic .NET) shows you how to turn on and off auxiliary
power:
‘ Jettce.dll auxiallry power functions.
‘ Turn auxiallry power on.
Private Declare Sub TurnAuxOn Lib “jettce” Alias “TurnAuxSwitchOn” ()
‘ Turn auxiallry power off.
Private Declare Sub TurnAuxOff Lib “jettce” Alias “TurnAuxSwitchOff” ()
Adjusting Screen Brightness
The following code snippet (written in Visual Basic .NET) shows you how to adjust screen brightness in
20 percent increments/decrements:
‘ Jettce.dll screen brightness functions.
‘ Increment screen brightness (+) 20%.
Private Declare Sub IncScreenBrightness Lib “jettce” Alias “IncBrightness” ()
‘ Decrement screen brightness (-) 20%.
Private Declare Sub DecScreenBrightness Lib “jettce” Alias “DecBrightness” ()
JETT•RFID Technical Reference Manual, MAN0339, Rev. A, Preliminary
5-19