Fnkey_setuserdef, Setscankeypwon – Argox PA-20 Programming Guide User Manual

Page 72

Advertising
background image

PT-20 Programming Guide

70

Includes:

#include “SDK.h ”

Description: You can check the FN-Key function that is default setting or

custom setting.

smKeyNum: 0  F1, 1  F2, 2  F3, 3  F4, 4  F5, 5  F6

Returns: 1 : Custom Setting。

0 : Default Setting。

-1: Error。

FNKey_SetUserDef

Purpose: To set a custom setting for FN-Key.

Syntax: char FNKey_SetUserDef(short smKeyNum, void (*pslFunction)(void));

Example call: void Sample01FN(void)

{

_

printf(“This is Test!!”);

}

void SetFNKey(void)

{

if (FNKey_SetUserDef(0, Sample01FN))

{

_printf(“Set F1 UserDefine OK!”);

}

if (FNKey_SetUserDef(0, NULL))

{

_printf(“Set F1 Default OK!”);

}

}

Includes:

#include “SDK.h ”

Description: The function is used to set the FN-Key. After set successed, the

FN-Key is changed for custom setting function. You can set F1~6, if you

want to set default, please set pslFunction = NULL.

smKeyNum: 0  F1, 1  F2, 2  F3, 3  F4, 4  F5, 5  F6

Returns: 1 : Set success。

0 : Set false。

SetScanKeyPwOn

Purpose: To set power on by scan key.

Syntax: BOOL SetScanKeyPwOn(BOOL state);

Example call: SetScanKeyPwOn(TRUE);

Includes:

#include “SDK.h ”

Description: This function can set power on by scan key.

Advertising