Beeper/Vibrator Api - Denso BHT-700-CE Reference Manual

Barcode handy terminal
Table of Contents

Advertisement

16.5. Beeper/Vibrator API

BHT_StartBeep
Description
Drive the beeper or vibrator.
Syntax
DWORD BHT_StartBeep (
DWORD
dwOnTime
DWORD
dwOffTime
WORD
wRepCnt
WORD
wFreq
)
Parameters
dwOnTime
[in] ON-duration (in units of 100 ms), Entry range: 0 to 255
dwOffTime
[in] OFF-duration (in units of 100 ms), Entry range: 0 to 255
wRepCnt
[in] Number of repetitions, Entry range: 0 to 255
wFreq
[in] Frequency (Hz) , Entry range: 0 to 32767
Specification of 0, 1 or 2 to wFeq produces the special beeper effects as listed below.
Tone
wFreq
0
Low-pitched
1
Medium-pitched
2
High-pitched
Return value
Error code
ERROR_SUCCESS
ERROR_INVALID_PARAMETER Parameter error.
,
,
,
Frequency (Hz)
698
1396
2793
Successful completion
Meaning
110

Advertisement

Table of Contents
loading

Table of Contents