12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #ifndef __OHBOARD_H_
- #define __OHBOARD_H_
- #include "stdbool.h"
- #define MAX_SPK_VOL 10
- #define KEY_TIMER_TICK 30
- #define KS_ALL_IDLE 0
- //蝏���桀�潘��其�摨訫�憭��雿輻鍂
- typedef enum{
- MKEY_VALUE_0=0,
- MKEY_VALUE_1=1,
- MKEY_VALUE_2=2,
- MKEY_VALUE_3=3,
- MKEY_VALUE_4=4,
- MKEY_VALUE_5=5,
- MKEY_VALUE_6=6,
- MKEY_VALUE_7=7,
- MKEY_VALUE_8=8,
- MKEY_VALUE_9=9,
- MKEY_VALUE_a=10,
- MKEY_VALUE_b=11,
- MKEY_VALUE_f=15 //�惩�撠�IC_PTT�曇��伐��曉����𤾸嫃
- }MKEY_VALUEENUM;
- #define MKEY_VALUE_F2 (1<<MKEY_VALUE_9)
- #define MKEY_VALUE_F1 (1<<MKEY_VALUE_6)
- #define MKEY_VALUE_PTT (1<<MKEY_VALUE_3)
- #define MKEY_VALUE_MENU (1<<MKEY_VALUE_2)
- #define MKEY_VALUE_UP (1<<MKEY_VALUE_7)
- #define MKEY_VALUE_DOWN (1<<MKEY_VALUE_a)
- #define MKEY_VALUE_ESC (1<<MKEY_VALUE_0)//4
- #define MKEY_VALUE_PWR (1<<MKEY_VALUE_b)
- #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 startBackLightTimer(int time);
- void pttBeepStart(bool isMicReq);
- void beepStart(int freq);
- #endif
|