Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 13 of 19

PDT 3200 Run-Time Library Reference Manual: Chapter 2 Function Reference, pages 109 to 118

Pages 109 to 118 of 168, from PDT 3200 Run-Time Library Reference Manual

The original document is the PDF (949 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Symbol PDT-3200

Page 109

Chapter 2: Function Reference

BIOS_SetKeyClick p_bios.h Syntax void BIOS_SetKeyClick(UCHAR KeyClick);

Description Sets the keyboard click setting.

Parameters KeyClick

Keyboard sound setting. P_KBDSOUND_OFF generates no sound. P_KBDSOUND_CLICK generates mechanical click. P_KBDSOUND_BEEP generates beep.

Returns None.

Sample See BIOS_GetKbdCtrl().

2-81

Page 110

PDT 3200 Run-Time Library Reference Manual

BIOS_SetKeyInputState p_bios.h Syntax void BIOS_SetKeyInputState(UCHAR State);

Description Sets the status of the ALPHA, CAPS LOCK, ALT, CTRL, FN 1, FN 2, INTL, and PRGM keys.

Parameters State

Bit ßags deÞned by the following constants. These ßags may be combined in any logical combination. P_KBDSTATE_INTL puts unit in international character entry mode. P_KBDSTATE_PRGM puts unit in programming mode. P_KBDSTATE_ALPHA puts unit in alpha mode. P_KBDSTATE_CAPS makes CAPS LOCK active. P_KBDSTATE_ALT makes ALT active. P_KBDSTATE_CTRL makes CTRL active. P_KBDSTATE_FUNC2 makes FN 2 active. P_KBDSTATE_FUNC1 makes FN 1 active.

Returns None.

Sample See BIOS_GetKeyInputState().

2-82

Page 111

Chapter 2: Function Reference

BIOS_SetSpeakerAlternate p_bios.h Syntax void BIOS_SetSpeakerAlternate(UCHAR Index);

Description Sets the alternate speaker tone index.

Parameters Index

Index into alternate speaker tone table. Valid settings are 0Ð7, with 0 being the lowest frequency and 7 being the highest.

Returns None.

Sample See BIOS_GetKbdCtrl().

2-83

Page 112

PDT 3200 Run-Time Library Reference Manual

BIOS_SetSpeakerVolume p_bios.h Syntax void BIOS_SetSpeakerVolume(UCHAR Volume);

Description Sets the speaker volume.

Parameters Volume

Volume level. P_SNDVOL_OFF turns speaker off. P_SNDVOL_UP increases volume level. P_SNDVOL_DOWN decreases volume level. 1Ð7, with 1 being the softest and 7 being the loudest.

Returns None.

Sample See BIOS_GetKbdCtrl().

2-84

Page 113

Chapter 2: Function Reference

BIOS_SetTickCount p_bios.h Syntax void BIOS_SetTickCount(ULONG Count);

Description Sets the value in the clock-tick counter. The value is retrieved using BIOS_GetTickCount().

Parameters Count

Number of clock ticks.

Returns None.

Sample None.

2-85

Page 114

PDT 3200 Run-Time Library Reference Manual

BIOS_SetTime p_bios.h Syntax void BIOS_SetTime(UINT Hours, UINT Minutes, UINT Seconds, UINT DST);

Description Sets the system time.

Parameters Hours Minutes Seconds DST

Hours (0Ð23). Minutes (0Ð59). Seconds (0Ð59). Daylight savings time ßag. FALSE (0) if not daylight savings time; TRUE (1) if it is daylight savings time.

Returns None.

Sample See BIOS_GetDate().

2-86

Page 115

Chapter 2: Function Reference

BIOS_SetVideoMode p_bios.h Syntax void BIOS_SetVideoMode(UINT VideoMode);

Description Sets the current video mode. The default video mode is P_VMODE_TEXT_80x25_CB. Some video modes are provided for compatibility only. P_VMODE_TEXT_40x25 and P_VMODE_TEXT_40x25_CB are equivalent. P_VMODE_TEXT_80x25, P_VMODE_TEXT_80x25_CB, and P_VMODE_TEXT_80x25_MONO are equivalent.

Parameters VideoMode

Video mode indicated by one of the following constants: P_VMODE_TEXT_40X25 is 40x25 text mode without color burst. P_VMODE_TEXT_40X25_CB is 40x25 text mode. P_VMODE_TEXT_80X25 is 80x25 text mode without color burst. P_VMODE_TEXT_80X25_CB is 80x25 text mode. P_VMODE_GRAPHIC_320X200 is 320x200 resolution graphics mode without color burst. P_VMODE_GRAPHIC_320X200_CB is 320x200 resolution graphics mode. P_VMODE_GRAPHIC_640X200 is 640x200 resolution graphics mode. P_VMODE_TEXT_80X25_MONO is 80x25 text mode, two color.

Returns None.

Sample None.

2-87

Page 116

PDT 3200 Run-Time Library Reference Manual

BIOS_SetViewportMode p_bios.h Syntax void BIOS_SetViewportMode(UINT Mode);

Description Sets the viewport mode for horizontal and vertical panning.

Parameters Mode

Bit ßag deÞned by the following constants: P_VIEWPT_HPAN enables horizontal panning. P_VIEWPT_VPAN enables vertical panning.

Returns None.

Sample See BIOS_ClearScreen().

2-88

Page 117

Chapter 2: Function Reference

BIOS_SetViewportPos p_bios.h Syntax void BIOS_SetViewportPos(UINT Row, UINT Column);

Description Moves the viewport to the speciÞed cursor position on the logical screen.

Parameters Row Column

Top row of logical screen visible on the physical screen. Leftmost column of logical screen visible on the physical screen.

Returns None.

Sample None.

2-89

Page 118

PDT 3200 Run-Time Library Reference Manual

BIOS_SpeakerAlternate p_bios.h Syntax void BIOS_SpeakerAlternate(UINT Duration);

Description Sounds the alternate speaker tone for a speciÞed duration. The tone used is set using the BIOS_SetSpeakerAlternate().

Parameters Duration

Length of time to sound speaker. This value is designated in milliseconds.

Returns None.

Sample #include <stdio.h> #include "p_bios.h" void SoundSpeaker(void) { UCHAR ScanCode; BIOS_ClearScreen(P_ATT_NORM); BIOS_SetKeyClick(P_KBDSOUND_OFF); printf ("Press any key to\n"); printf ("sound alternate\n"); printf ("tone for 500ms.\n"); BIOS_KeyboardReadChar(&ScanCode); BIOS_SpeakerAlternate(500); printf ("Press any key to\n"); printf ("sound speaker\n"); BIOS_KeyboardReadChar(&ScanCode); BIOS_SpeakerTone (2000, 100); BIOS_SpeakerTone (2200, 100); BIOS_SpeakerTone (2400, 100);

2-90