app_goose.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /******************************************************************************
  2. 版权所有: 通讯项目组
  3. 文件名称: GOOSE.h
  4. 文件版本: V1.00
  5. 创建作者: Mr.L
  6. 创建日期: 2014-5-26
  7. 功能说明: GOOSE在通信机中的应用
  8. 其它说明:
  9. 修改记录:
  10. */
  11. #ifndef _APP_GOOSE_H
  12. #define _APP_GOOSE_H
  13. #include <app_61850.h>
  14. #ifdef INCLUDE_GOOSE_PTL
  15. /*GOOSE消息类型码*/
  16. #define GOOSE_DATA_TYPE_BI 0x01
  17. #define GOOSE_DATA_TYPE_HJS 0x02
  18. #define GOOSE_DATA_TYPE_LJS 0x04
  19. #define GOOSE_DATA_TYPE_BS 0x08
  20. #define GOOSE_DATA_TYPE_SYN 0x05
  21. #define GOOSE_DATA_TYPE_AJS 0x06
  22. #define GOOSE_DATA_TYPE_ABS 0x07
  23. int app_goose_init(int (*goose_send)(int, const char *, int));
  24. void goose_pub_init(char *gse_data, int gseoutnum);
  25. void app_goose_exit(void);
  26. int app_goose_recv_data_handle(unsigned int index, char *buf, const int buflen, char *outdata);
  27. void app_goose_timer_data_handle(const uint32_t us_diff);
  28. void app_goose_pub_data_handle(char *gse_data, int gseoutnum);
  29. void app_goose_inf_print(void);
  30. #endif // INCLUDE_GOOSE_PTL
  31. #endif // _APP_GOOSE_H
  32. /*--------------------------------- 文件结束 ----------------------------------
  33. */