ohboard.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #ifndef __OHBOARD_H_
  2. #define __OHBOARD_H_
  3. #include "stdbool.h"
  4. #define MAX_SPK_VOL 10
  5. #define KEY_TIMER_TICK 30
  6. #define KS_ALL_IDLE 0
  7. //蝏���桀�潘��其�摨訫�憭��雿輻鍂
  8. typedef enum{
  9. MKEY_VALUE_0=0,
  10. MKEY_VALUE_1=1,
  11. MKEY_VALUE_2=2,
  12. MKEY_VALUE_3=3,
  13. MKEY_VALUE_4=4,
  14. MKEY_VALUE_5=5,
  15. MKEY_VALUE_6=6,
  16. MKEY_VALUE_7=7,
  17. MKEY_VALUE_8=8,
  18. MKEY_VALUE_9=9,
  19. MKEY_VALUE_a=10,
  20. MKEY_VALUE_b=11,
  21. MKEY_VALUE_f=15 //�惩�撠�IC_PTT�曇��伐��曉����𤾸嫃
  22. }MKEY_VALUEENUM;
  23. #define MKEY_VALUE_F2 (1<<MKEY_VALUE_9)
  24. #define MKEY_VALUE_F1 (1<<MKEY_VALUE_6)
  25. #define MKEY_VALUE_PTT (1<<MKEY_VALUE_3)
  26. #define MKEY_VALUE_MENU (1<<MKEY_VALUE_2)
  27. #define MKEY_VALUE_UP (1<<MKEY_VALUE_7)
  28. #define MKEY_VALUE_DOWN (1<<MKEY_VALUE_a)
  29. #define MKEY_VALUE_ESC (1<<MKEY_VALUE_0)//4
  30. #define MKEY_VALUE_PWR (1<<MKEY_VALUE_b)
  31. #define MKEY_VALUE_CB_GT (MKEY_VALUE_MENU | MKEY_VALUE_ESC)
  32. #define MKEY_VALUE_CB_IP (MKEY_VALUE_ESC | MKEY_VALUE_DOWN)
  33. #define MKEY_VALUE_MIC_PTT (1<<MKEY_VALUE_f)
  34. #define CTL_LCD_BL(bit) lcdBackList(bit) ////��𧒄�芣��批�嚗𣬚㩞皞鞟凒�亦�鈭桐�嚗屸�閬���X㺿蝖砌辣�硺葵IO�交綉�?
  35. #define CTL_POWER_HOLD(bit) //��𧒄�䭾綉�塚�敶枏��菜��湔𦻖撽勗𢆡鈭?
  36. #define TONE_NORMAL 880
  37. #define TONE_SPECIAL 880
  38. void redLedCtl(bool onoff);
  39. void greenLedCtl(bool onoff);
  40. void spkCtl(bool onoff);
  41. void lcdBackList(char onoff);
  42. void msgAtSend(char *at);
  43. void msgAtSends(char *at ,int len);
  44. void boardInit(void);
  45. void usbOutPut(unsigned char *info, int len);
  46. unsigned int getAppTick(void);
  47. void keySendEvent(unsigned short key, unsigned char keyType);
  48. void stopKeyTimer(void);
  49. void paControl(bool status);
  50. unsigned short getKeyValue();
  51. void startBackLightTimer(int time);
  52. void pttBeepStart(bool isMicReq);
  53. void beepStart(int freq);
  54. #endif