Bluecell_operate.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * Bluecell_operate.h
  3. *
  4. * Created on: 2020. 4. 3.
  5. * Author: YJ
  6. */
  7. #ifndef BLUECELL_OPERATE_H_
  8. #define BLUECELL_OPERATE_H_
  9. #include <stdbool.h>
  10. #include "Bluecell_operate.h"
  11. /*
  12. SYN
  13. Sub-UID
  14. R-Code
  15. TR-ID
  16. Seq-Num
  17. TTL
  18. Time
  19. 오류 응답
  20. CMD
  21. Length
  22. Header Checksum
  23. SUB-DATA
  24. SUB-DATA-CRC
  25. ETX
  26. */
  27. /*
  28. *
  29. 0 80 전체 상태 조회 모든 AID 항목에 대한 상태 요청 및 응답 (요청 Frame의 SUB-DATA 는 길이는 0)
  30. 1 81 제어 요청 제어 요청의 REQ는 0x01 이고 응답은 전체 데이터 상태를 응답
  31. 10 90 Download Notification 다운로드 통지
  32. 11 91 Download Data 다운로드 data
  33. 12 92 Download Confirm 다운로드 확인
  34. 13 93 Download Complete Download Complete Command
  35. 14 94 System-Reboot System Rebooting Command
  36. 40 C0 테이블 조회 및 응답
  37. 41 C1 테이블 설정 및 응답
  38. *
  39. *
  40. */
  41. typedef enum{
  42. AllDataReq = 0, // -> Response 80
  43. DataCtrlReq, // -> Response 81
  44. DownNotification, // -> Response 90
  45. DownData, // -> Response 91
  46. DownConfirm , // -> Response 92
  47. DownComplete, // -> Response 93
  48. SystemReboot, // -> Response 94
  49. TableDataReq = 40,
  50. };
  51. #endif /* BLUECELL_OPERATE_H_ */