1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #ifndef __OHBOARD_H_
- #define __OHBOARD_H_
- #include "stdbool.h"
- #define MAX_SPK_VOL 8 //10
- #define KEY_TIMER_TICK 30
- #define KS_ALL_IDLE 0
- //蝏���桀�潘��其�摨訫�憭��雿輻鍂
- typedef enum{
- MKEY_VALUE_1=9,
- MKEY_VALUE_2=2,
- MKEY_VALUE_3=3,
- MKEY_VALUE_4=4,
- MKEY_VALUE_5=5,
- MKEY_VALUE_6=6,
- MKEY_VALUE_7=8,
- MKEY_VALUE_8=0,
-
- MKEY_VALUE_f=15 //�惩�撠�IC_PTT�曇��伐��曉����𤾸嫃
- }MKEY_VALUEENUM;
- #define MKEY_VALUE_F2 (1<<MKEY_VALUE_7)
- #define MKEY_VALUE_F1 (1<<MKEY_VALUE_5)
- #define MKEY_VALUE_PTT (1<<MKEY_VALUE_1)
- #define MKEY_VALUE_MENU (1<<MKEY_VALUE_2)
- #define MKEY_VALUE_UP (1<<MKEY_VALUE_3)
- #define MKEY_VALUE_DOWN (1<<MKEY_VALUE_6)
- #define MKEY_VALUE_ESC (1<<MKEY_VALUE_4)
- #define MKEY_VALUE_PWR (1<<MKEY_VALUE_8)
- #define MKEY_VALUE_CB_GT (MKEY_VALUE_MENU | MKEY_VALUE_ESC)
- #define MKEY_VALUE_CB_IP (MKEY_VALUE_ESC | MKEY_VALUE_DOWN)
- #define MKEY_VALUE_MIC_PTT (1<<MKEY_VALUE_f)
- #define CTL_LCD_BL(bit) lcdBackList(bit) ////��𧒄�芣��批�嚗𣬚㩞皞鞟凒�亦�鈭桐�嚗屸�閬���X㺿蝖砌辣�硺葵IO�交綉�?
- #define CTL_POWER_HOLD(bit) //��𧒄�䭾綉�塚�敶枏��菜��湔𦻖撽勗𢆡鈭?
- #define TONE_NORMAL 880
- #define TONE_SPECIAL 880
- void redLedCtl(bool onoff);
- void greenLedCtl(bool onoff);
- void spkCtl(bool onoff);
- void lcdBackList(char onoff);
- void msgAtSend(char *at);
- void msgAtSends(char *at ,int len);
- void boardInit(void);
- void usbOutPut(unsigned char *info, int len);
- unsigned int getAppTick(void);
- void keySendEvent(unsigned short key, unsigned char keyType);
- void stopKeyTimer(void);
- void paControl(bool status);
- unsigned short getKeyValue();
- void ResetKeyValue();
- void startBackLightTimer(int time);
- void pttBeepStart(bool isMicReq);
- void beepStart(int freq);
- #endif
|