tool.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #ifndef __TOOL_H__
  2. #define __TOOL_H__
  3. #include "SEGGER_RTT.h"
  4. /*
  5. �5�
  6.    #pragma pack(push, 1)
  7.    struct {
  8.       signed int Sine1;
  9.     signed int Sine2;
  10.      signed int Sine3;
  11.      } acValBuffer;
  12.    #pragma pack(pop)
  13.     貧中頁低勣窟僕議潤更悶�徭失協吶。
  14.   �6�壓低勣窟僕議仇圭験峙旺窟僕�箭泌嶄僅�
  15.       acValBuffer.Sine1 = Test_Counter1;
  16.   acValBuffer.Sine2 = Test_Counter2;
  17.   acValBuffer.Sine2 = Test_Counter3;
  18.     SEGGER_RTT_Write(JS_RTT_Channel, &acValBuffer, sizeof(acValBuffer));
  19.   �7�和中頁嶷泣���郊圭短嗤戻欺議。箭泌厘�窟膨倖方�曾倖int侏�曾倖short侏。
  20.       #pragma pack(push, 1)
  21.       struct {
  22.           signed int Sine1;
  23.         signed int Sine2;
  24.          short Sine3;
  25.          short Sine4;
  26.       } acValBuffer;
  27.        #pragma pack(pop)
  28.   椎担斤哘議兜兵晒勣個葎"JScope_I4I4I4"宸倖歌方祥勣個撹"JScope_I4I4I2I2^
  29. */
  30. #pragma pack(push, 1)
  31. typedef struct {
  32. signed int Sine1;
  33. signed int Sine2;
  34. signed int Sine3;
  35. signed int Sine4;
  36. signed int Sine5;
  37. signed int Sine6;
  38. }acValBuffer_t;
  39. #pragma pack(pop)
  40. void JS_RTT_Init(void);
  41. void JS_RTT_Print(signed int Sine1,signed int Sine2,signed int Sine3);
  42. void JS_RTT_Print_06(signed int Sine1,signed int Sine2,signed int Sine3,signed int Sine4,signed int Sine5,signed int Sine6);
  43. #endif