ohboard.h 1.7 KB

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