umf_automation.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #ifndef _AUTOMATION_H_
  2. #define _AUTOMATION_H_
  3. #include "types.h"
  4. #define AUTOMATION_TASK_PRIORITY 3
  5. #define AUTOMATION_STACK_SIZE 4096
  6. #define RANDOM_TEST 1
  7. #define SEQUENTIAL_TEST 2
  8. #define RECORDED_TEST 3
  9. #define TEST_ONCE 0
  10. #define TEST_REPEAT 1
  11. #define RANDOM_TIME_DELAY 0
  12. #define SIG_IRTEST 50
  13. enum{
  14. IR_REC_START = 0,
  15. IR_REC_STOP,
  16. IR_AUTOTEST_M,
  17. IR_AUTOTEST_F,
  18. IR_AUTOTEST_R,
  19. IR_AUTOTEST_END,
  20. IR_AUTOTEST_S,
  21. };
  22. typedef void (* AutoMation_CallBack_t)(UINT32 KeyCode, UINT32 Param, UINT8 KeyValue);
  23. typedef struct _AutoCmdPool_t_
  24. {
  25. UINT32 dCMD;
  26. UINT32 dParam;
  27. UINT32 dDelay;
  28. }AutoCmdPool_t;
  29. typedef struct _AutoCmdTable_t_
  30. {
  31. UINT32 dCMD;
  32. char *pString;
  33. }AutoCmdTable_t;
  34. int AUTO_IF_Initialize(AutoMation_CallBack_t pfCallBack);
  35. int AUTO_IF_SetRandomMaxnMin(UINT32 dMax, UINT32 dMin);
  36. int AUTO_IF_Start(UINT32 dTestMethod, UINT8 bRepeat);
  37. int AUTO_IF_Stop(void);
  38. int AUTO_IF_Finalize(void);
  39. void AUTO_IF_RecStart(void);
  40. void AUTO_IF_RecStop(void);
  41. int AUTO_IF_RecCmd(UINT32 dCmd, UINT32 dParam);
  42. void AUTO_IF_ShowCmd(void);
  43. int AUTO_IF_SetTable(AutoCmdPool_t* stTable, UINT32 dTableSize);
  44. int AUTO_IF_Regist_SignalEvent(void);
  45. #endif