📄 sc600sdk.h
字号:
/*-----------------------------------------------------------------------------
Module Name: SC600SDK.h
Abstract:
Revision History:
2005.12.10 Release. (Brian)
-----------------------------------------------------------------------------*/
#ifndef _SC600SDK_H_
#define _SC600SDK_H_
#define ERR_SUCCESS 0
#define ERR_OPENDEVICE -1
#define ERR_RESPONSE -2
#define ERR_CHECKSUM -3
#define SDKVERSION "V0.10"
#ifdef LIB_INTERNAL
#define EXTCODE
#else
#ifdef __cplusplus
#define EXTCODE extern "C"
#else
#define EXTCODE extern
#endif
#endif
// Function Definitions
//--------------------------------------------------------
// Name: GetSDKVersion
// Description: Get the version number of the SDK Library
// Parameter:
// return: TRUE is OK
//--------------------------------------------------------
EXTCODE BOOL GetSDKVersion(char* buffer1);
//--------------------------------------------------------
// Name: GetSerialNumber
// Description: Get the serial number
// Parameter:
// return: TRUE is OK
//--------------------------------------------------------
EXTCODE BOOL GetSerialNumber(char* buffer1);
//--------------------------------------------------------
// Name: GetConfigurationNumber
// Description: Get configuration number
// Parameter:
// return: TRUE is OK
//--------------------------------------------------------
EXTCODE BOOL GetConfigurationNumber(char* buffer1);
//--------------------------------------------------------
// Name: GetLCDBacklightIntensity
// Description: Fetch intensity of the LCD
// Parameter: None.
// return:
// LCD Intensity: 0 ~ 0x3ff (10 bits)
//--------------------------------------------------------
EXTCODE int GetLCDBacklightIntensity(void);
//--------------------------------------------------------
// Name: GetKPDBacklightIntensity
// Description: Fetch intensity of the keypad
// Parameter: None.
// return:
// KBD Intensity: 0 ~ 0x3ff (10 bits)
//--------------------------------------------------------
EXTCODE int GetKPDBacklightIntensity(void);
//--------------------------------------------------------
// Name: SetLCDBacklightIntensity
// Description: Set intensity of the LCD panel
// Parameter:
// LCD Intensity: 0 ~ 0x3ff (10 bits)
// return: None.
//--------------------------------------------------------
EXTCODE void SetLCDBacklightIntensity(int Intensity);
//--------------------------------------------------------
// Name: SetKPDBacklightIntensity
// Description: Set intensity of the keypad
// Parameter:
// KBD Intensity: 0 ~ 0x3ff (10 bits)
// return: None.
//--------------------------------------------------------
EXTCODE void SetKPDBacklightIntensity(int Intensity);
//--------------------------------------------------------
// Name: SetAudioVolume
// Description: Set the audio sound volume
// Parameter:
// value:
// 0(Mute) ~ 15(MAX)
// return: None.
//--------------------------------------------------------
EXTCODE void SetAudioVolume(DWORD value);
//--------------------------------------------------------
// Name: GetAudioVolume
// Description: Fetch the audio sound volume
// Parameter: None.
// return:
// gain:
// 0(Mute) ~ 15(MAX)
//--------------------------------------------------------
EXTCODE DWORD GetAudioVolume(void);
//--------------------------------------------------------
// Name: SetMICGain
// Description: Set the microphone gain value
// Parameter:
// gain:
// bit15: 1=Mute,
// bit6 : 1=20dB ON,
// bit3~bit0: 1111 is +22.5dB gain (each step = 1.5dB)
// 0000 is 0dB gain
// return: None.
//--------------------------------------------------------
EXTCODE void SetMICGain(USHORT gain);
//--------------------------------------------------------
// Name: GetMICGain
// Description: Fetch the microphone gain value
// Parameter: None.
// return:
// gain:
// bit15: 1=Mute,
// bit6 : 1=20dB ON,
// bit3~bit0: 1111 is +22.5dB gain (each step = 1.5dB)
// 0000 is 0dB gain
//--------------------------------------------------------
EXTCODE USHORT GetMICGain(void);
//--------------------------------------------------------
// Name: DoReboot
// Description:
// Parameter: None.
// return:
//
//--------------------------------------------------------
EXTCODE BOOL DoReboot(void);
//--------------------------------------------------------
// Name: SetCPUSpeed
// Description:
// Parameter: None.
// return:
//
//--------------------------------------------------------
EXTCODE BOOL SetCPUSpeed(DWORD dwSpeed);
//--------------------------------------------------------
// Name: GetCPUSpeed
// Description:
// Parameter: None.
// return:
//
//--------------------------------------------------------
EXTCODE DWORD GetCPUSpeed(void);
EXTCODE BOOL DualA_Power_On(void);
EXTCODE BOOL DualA_Power_Off(void);
#endif //_SC600SDK_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -