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 5 of 11

HT Series/PA Series/RH Series Programming Manual, pages 37 to 46

Pages 37 to 46 of 98

The original document is the PDF (1.2 MB). 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 Unitech HT660 and Unitech HT680

Page 37

4.1.15 Enable/Disable Talk Key Function Description: This function is used to enable/disable Talk key. Function call: void SetPhoneTalkKeyDisable(BOOL bDisable) Parameter (Input): TRUE = Disable Talk key. FALSE = Enable Talk key.

4.1.16 Check Phone End Key Status Function Description: This function is used to check phone end key is enabled or not. Function call: BOOL GetPhoneEndKeyStatus (void) Return code: TRUE = phone end key is enabled. FALSE = phone end key is disabled.

4.1.17 Enable/Disable Phone End Key Function Description: This function is used to enable/disable phone end key. Function call: void SetPhoneEndKeyDisable (BOOL bDisable) Parameter (Input): TRUE = Disable phone end key. FALSE = Enable phone end key.

4.1.18 Check Keypad Status Function Description: This function is used to check keypad is locked or not. Function call: BOOL GetKeypadLockStatus (void) Return code: TRUE = Keypad is locked. FALSE = Keypad is not locked.

4.1.19 Lock/Unlock Keypad Function Description: This function is used to lock/unlock keypad. Function call: void SetKeypadLock (BOOL bLock) Parameter (Input): TRUE = Lock keypad. FALSE = Unlock keypad.

37 -

Page 38

4.2 Scanner Related Functions To save power, the decoder IC is disabled when scanner is not in use. It can be enabled through USI functions. Following functions are meaningful only if decode IC is enabled. 4.2.1 Enable/Disable Scanner trigger key Function Description: This function enables/disables trigger keys. Function call: void EnableScannerTrigger(BOOL fOn) Parameter (Input) fON:

BOOL:

TRUE = enable trigger keys. FALSE = disable trigger keys.

4.2.2 Power on/off Scan Engine Function Description: This function is used to power on/off scan engine. Function call: void PowerOnScanner (BOOL fOn) Parameter (Input) fON: BOOL: TRUE = Power on scan engine. FALSE = Power off scan engine.

4.2.3 Turn on/off Scan Engine Function Description: This function emulates trigger keys to turn scan engine on or off. It functions even if trigger keys are disabled. Function call: void SetScannerOn(BOOL fON) Parameter(Input) fON:

BOOL:

TRUE = turn scan engine on. FALSE = turn scan engine off.

4.2.4 Get Trigger keys Status Function Description: This function returns enable/disable status of trigger keys. Function call: BOOL GetScannerTrigger(void) Return code: TRUE = trigger keys are enabled. FALSE = trigger keys are disabled.

38 -

Page 39

4.2.5 Get Scanner Status Function Description: This function returns the status of scan engine, or trigger key. Function call: BOOL GetScannerStatus(void) Return code: TRUE = scan engine is on, or trigger key is pressed. FALSE = scan engine is off, or trigger key is released.

4.2.6 Check Trigger key is pressing Function Description: This function is used to check if left or right trigger key is pressed or not. Function call: BOOL TriggerKeyStatus( int key); Parameter(Input) key:

int:

LEFT_TRIGGER_KEY : left trigger key RIGHT_TRIGGER_KEY : right trigger key.

Return code: TRUE = trigger is pressed. FALSE = trigger is released. Example: #define kKeybdTriggerEventName #define kKeybdAlphaKeyEventName #define LEFT_TRIGGER_KEY 1 #define RIGHT_TRIGGER_KEY 2

TEXT("KeybdTriggerChangeEvent") TEXT("KBDAlphaKeyChangeEvent")

gKeyEvents[0] = CreateEvent(NULL, TRUE, FALSE, kKeybdTriggerEventName); gKeyEvents[1] = CreateEvent(NULL, TRUE, FALSE, kKeybdAlphaKeyEventName); while (1) { WaitForMultipleObjects(2, gKeyEvents, FALSE, INFINITE); TriggerKeyStatus(LEFT_TRIGGER_KEY); TriggerKeyStatus(RIGHT_TRIGGER_KEY); }

39 -

Page 40

4.3 LED related function 4.3.1 Turn On/Off Good Read LED Function Description: This function is used to turn on/off good read LED. Function call: void GoodReadLEDOn(BOOL fON) Parameter(Input) fON: BOOL: TRUE = turn on good read LED. FALSE = turn off good read LED.

4.3.2 Turn On/Off Camera LED Function Description: This function is used to turn on/off camera LED. Function call: void CameraLEDOn (BOOL bOn) Parameter (Input): TRUE = Turn on the camera LED. FALSE = Turn off the camera LED.

4.3.3 Turn On/Off Green LED Function Description: This function is used to turn on/off green LED. Function call: void GreenLEDOn (BOOL bOn) Parameter (Input): TRUE = Turn on the green LED. FALSE = Turn off the green LED.

4.3.4 Turn On/Off Red LED Function Description: This function is used to turn on/off red LED. Function call: void RedLEDOn (BOOL bOn) Parameter (Input): TRUE = Turn on the red LED. FALSE = Turn off the red LED.

40 -

Page 41

4.4 Backlight related function There are two backlight controls, screen backlight and keypad backlight. They are controlled separately. For screen backlight, you can adjust brightness of backlight also. 4.4.1 Screen Backlight Control Function Description: This function turns screen backlight on or off. Function call: void BacklightOn(BOOL fON) Parameter(Input) fON:

BOOL:

TRUE = turn on screen backlight. FALSE= turn off backlight.

4.4.2 Get Screen Backlight Status Function Description: This function returns the status of screen backlight. Function call: BOOL GetBacklightStatus(void) Return code: TRUE = screen backlight is on. FALSE = screen backlight is off.

4.4.3 Keypad Backlight Control Function Description: This function turns keyoad backlight on or off. Function call: void KeypadLightOn(BOOL fON) Parameter(Input) fON:

BOOL:

TRUE = turn on keypad backlight. FALSE = turn off backlight.

4.4.4 Get Keypad Backlight Status Function Description: This function returns the status of keyoad backlight. Function call: BOOL GetKeypadLightStatus(void) Return code: TRUE = keypad backlight is on. FALSE = keypad backlight is off.

41 -

Page 42

4.4.5 Screen Backlight Brightness Control Function Description: This function adjusts screen backlight brightness. Function call: void BrightnessUp(BOOL fup) Parameters(Input) Fup: BOOL:

TRUE = adjust one step up. FALSE = adjust one step down.

4.5 SD slot related functions 4.5.1 Inquire SD slot status Function Description: This function returns SD slot enable/disable status. Function call: BOOL GetSDStatus() Return code: TRUE = Slot is enabled. FALSE = Slot is disabled.

4.5.2 Enable/Disable SD Slot Function Description: This function enables/disables SD slot. Function call: void EnableSDSlot(BOOL bEnable); Parameters(Input) bEnable: BOOL:

TRUE = Enable slot. FALSE = Disable slot.

4.5.3 Get SD Slot Working Mode Function Description: This function is used to get SD slot mode. Function call: DWORD GetSDMode (void) Return code: 0x01 : SDMMC mode. 0x02 : SDIO mode. 0x11 : SDMMC without remove while resuming.

4.5.4 Set SD Slot Working Mode Function Description: This function is used to setup SD slot working mode. Function call: void SetSDMode(DWORD nMode) Parameters(Input) nMode : UINT32: 0x01 : SDMMC mode. 0x02 : SDIO mode. 0x11 : SDMMC without remove while resuming.

42 -

Page 43

4.6 Enable/Disable Vibration Function Description: This function enables/disables vibration. Function call: void VibrationOn(BOOL bEnable); Parameters(Input) bEnable: BOOL: TRUE = On. FALSE = Off.

4.7 Camera Auto Focus Function Description: This function calls camera to focus. Function call: BOOL TriggerAutoFocus(void); Return Code: TRUE = Auto focus success. FALSE = Auto focus fail.

4.8 Device Information 4.8.1 Get Smart Battery ID Function Description: This function is used to get the smart battery ID. Function call: BYTE GetSmartBatteryID() Return Code: 0x00/0x01 : Not support smart battery ID. Others Value : The smart battery ID.

4.8.2 Check Cradle Status Function Description: This function is used to check the device is on cradle or not. Function call: BOOL GetCradleStatus() Return Code: TRUE = Device is on cradle. FALSE = Device is not on cradle.

4.9 Microphone, Receiver and Speaker Control 4.9.1 Switch Receiver and Speaker Function Description: This function is used to switch sound output from receiver or speaker. Function call: void Sound_To_Speaker_Or_Receiver (BOOL fOn) Parameters(Input) fOn: BOOL: TRUE = ON. FALSE = OFF

4.9.2 Get Main Microphone Function Description: This function is used to get the main microphone. Function call: DWORD Get_Main_Mic() Return code: 1 : The front side microphone. 2 : The back side microphone. 43 -

Page 44

4.9.3 Set Main Microphone Function Description: This function is used to switch main microphone. Function call: void Set_Main_Mic(DWORD dwIndex) Parameters(Input) dwIndex: DWORD : 1 : The front side microphone. 2 : The back side microphone.

4.10 Wireless module related functions 4.10.1 Inquire wireless module status Function Description: This function returns wireless module enable/disable status. Function call: BOOL GetWLANStatus() Return code: TRUE = Module is enabled. FALSE = Module is disabled.

4.10.2

Enable/Disable wireless module

Function Description: This function enables/disables wireless module. Function call: void WLANPowerEnable(BOOL bOn); Parameters(Input) bOn: BOOL:

TRUE = Enable module. FALSE = Disable module.

4.11 Bluetooth module related functions 4.11.1 Enable/Disable Bluetooth Power status Function Description: Enable Bluetooth Module Power ON/OFF Function call: void BT_PowerEnable ( BOOL bEnable ) Parameter (Input) bON:

BOOL:

TRUE = Enable FALSE = Disable

4.11.2 Get BT Power status Function Description: Get Bluetooth Module Power Status Function call: BYTE BT_PowerStatus ( void ) Return code: BYTE:

1 = Bluetooth Module is Power ON 0 = Bluetooth Module is Power OFF 44 -

Page 45

4.12 PCMCIA/CF slot related functions In HT660, it only support CF slot and PA96x/PA982 can support both CF and PCMCIA slot. So, please note that PCMCIA function is not work on following API in this section. 4.12.1 Get physical slot ID Function Description: PA96x/PA982 has two PC card slots, slot 0 and slot 1, for PCMCIA and CF. this function return which slot for PCMCIA or CF Function call: UINT GetPCMCIASlotID(UINT) Parameters(Input) 0 = PCMCIA. (For PA962/PA966/PA982 only) 1 = CF. Return code: Physical slot ID.

4.12.2 Enable/Disable PCMCIA or CF slot Function Description: This function enables/disables PCMCIA or CF slot. PA96x/PA982 assigns physical slot 0 to CF and slot1 to PCMCIA, which is reversed compared with previous products. The following function is kept for compatible reason. It takes the same uSocket value as previous products, but reversed internally. Function call: void EnablePCMCIASlot(UINT uSocket, BOOL bEnable) Parameters(Input) uSocket: UINT: bEnable :

0 = PCMCIA slot. (PA962/PA966/PA982 only) 1 = Compact flash slot. TRUE = enable specified slot. FALSE = disable specified slot.

BOOL:

4.12.3 Enable/Disable IO slots Function Description: This function enables/disables IO slots. It is recommended to use with function GetPCMCIASlotID() for platform independent reason. Function call: void EnablePCMCIASlot1(UINT uSocket, BOOL bEnable) Parameters(Input) uSocket: bEnable :

UINT: BOOL:

slot to be applied. TRUE = enable specified slot. FALSE = disable specified slot.

Example To disable PCMCIA slot and enable CF slot, #define PCMCIA_SOCKET 0 (PA966/PA962/PA982 only) #define CF_SOCKET 1 EnablePCMCIASlot1(GetPCMCIASlotID(PCMCIA_SLOT),FALSE); EnablePCMCIASlot1(GetPCMCIASlotID(CF_SLOT),TRUE);

45 -

Page 46

4.12.4 Inquire PCMCIA/CF slot status Function Description: This function returns PCMCIA/CF slot enable/disable status. Terminal assigns physical slot 0 to CF and slot1 to PCMCIA, which is reversed compared with previous products. The following function is kept for compatible reason. It takes the same uSocket value as previous products, but reversed internally. Function call: BOOL GetPCMCIAStatus(UINT uSocket) Parameters(Input) uSocket:

UINT:

0 = PCMCIA slot. (PA966/PA962/PA982 only) 1 = Compact flash slot.

Return bEnable :

BOOL:

TRUE = Slot is enabled. FALSE = Slot is disable.

4.12.5 Inquire IO slot status Function Description: This function returns slot enable/disable status. It is recommended to use with function GetPCMCIASlotID() for platform independent reason. Function call: BOOL GetPCMCIAStatus1(UINT uSocket) Parameters(Input) uSocket:

UINT:

slot to be applied.

Return bEnable :

BOOL:

TRUE = specified slot is enabled. FALSE = specified slot is disable.

Example To check PCMCIA slot status, #define PCMCIA_SOCKET #define CF_SOCKET

0 (PA966/PA962/PA982 only) 1 if (GetPCMCIAStatus1(GetPCMCIASlotID(PCMCIA_SLOT))) { }

4.12.6 Disable PCMCIA/CF slot when resume Function Description: This function will disable the specified slot after resume even though that slot is enabled before suspend. Function call: void DisablePCMCIAUponResume( UINT uSocket, BOOL bDisable); Parameters(Input) uSocket:

UINT:

bDisable:

BOOL:

1 = physical socket 1 0 = for physical socket 0 TRUE disable on resume FALSE enable on resume

4.13 Enable/Disable LCD screen 46 -