57 lines
2.5 KiB
C
57 lines
2.5 KiB
C
|
|
#ifndef __StdKeyEdit_h__
|
||
|
|
#define __StdKeyEdit_h__
|
||
|
|
|
||
|
|
//##############################################################################
|
||
|
|
#if(ENABLE_KEY_FUNCTION)
|
||
|
|
//##############################################################################
|
||
|
|
|
||
|
|
#define ENABLE_LED_DISPLAY 0
|
||
|
|
//******************************************************************************
|
||
|
|
extern unsigned int setKeyType, setIndex;
|
||
|
|
extern unsigned int keyDealFlag;
|
||
|
|
|
||
|
|
extern unsigned int keyFlag, totalTime, keyValue, keyBuff, menuIndex, modifyBit, keyFlashTime, timerTar;
|
||
|
|
extern unsigned long int setKeyBuffer, PassWord;
|
||
|
|
extern unsigned long int temp_dcoefNode[];
|
||
|
|
extern unsigned int temp_dcoefNum, temp_dcoefVal[];
|
||
|
|
//******************************************************************************
|
||
|
|
void DisplayForKeyOperation(void);
|
||
|
|
__interrupt void KeyInterrupt_isr(void);
|
||
|
|
void KeyReturn(void);
|
||
|
|
void KeyReset(void);
|
||
|
|
void DisableKeyInterrupt(void);
|
||
|
|
void EnableKeyInterrupt(void);
|
||
|
|
void KeyEditInit(void);
|
||
|
|
void FlashBitForSetup(void);
|
||
|
|
bool ReadFunKey(void);
|
||
|
|
bool ReadDecKey(void);
|
||
|
|
bool ReadIncKey(void);
|
||
|
|
void ReadKeyValue(void);
|
||
|
|
unsigned long int ComputeSumOfFiveDigits(unsigned int modifyFirstBit, unsigned int modifyLastBit);
|
||
|
|
void JudgeKeySetMax(unsigned int setBit, unsigned int endBit);
|
||
|
|
void JudgeKeySetMin(unsigned int setBit, unsigned int endBit);
|
||
|
|
void SettingKeyPrompt(const unsigned char*Prompt);
|
||
|
|
void InitOfSettingArea(unsigned long int setValue, unsigned int startBit, unsigned int setLen) ;
|
||
|
|
void InitOfSettingPrompt(const unsigned char*PromptF, const unsigned char*Prompt) ;
|
||
|
|
void ReturnKeySetup(void);
|
||
|
|
bool KeyValueOperation(unsigned int modifyFirstBit, unsigned int modifyLastBit);
|
||
|
|
bool KeyValueOperateForPrompt(const unsigned char *Prompt, unsigned int selectMax, unsigned int selectMin);
|
||
|
|
bool KeyValueOperateForArray(unsigned char *Prompt, unsigned int selectMax);
|
||
|
|
void DisplaySetIndex(void);
|
||
|
|
unsigned int SaveModifyValue(void);
|
||
|
|
void ExitKeyOperation(void);
|
||
|
|
void JudgeSaveAndReturn(unsigned long int judgeValue, unsigned int setGain);;
|
||
|
|
bool KeyPasswordInput(void);
|
||
|
|
void JudgePasswordInput(unsigned long int activePassword);
|
||
|
|
bool ExitCurrentSetup(void);
|
||
|
|
bool ParameterSetup(void);
|
||
|
|
void SelectDcoefNode(void);
|
||
|
|
void ModifyDcoefNode(void);
|
||
|
|
void ModifyDcoefVal(void);
|
||
|
|
void ModifyDcoefNodeAndValue(void);
|
||
|
|
void KeyInputProcessing(void);
|
||
|
|
|
||
|
|
//##############################################################################
|
||
|
|
#endif
|
||
|
|
//##############################################################################
|
||
|
|
#endif
|