QP/C  6.5.1
qs_pkg.h
Go to the documentation of this file.
1 
40 #ifndef qs_pkg_h
41 #define qs_pkg_h
42 
43 /****************************************************************************/
45 #define QS_INSERT_BYTE(b_) \
46  QS_PTR_AT_(buf, head) = (b_); \
47  ++head; \
48  if (head == end) { \
49  head = (QSCtr)0; \
50  }
51 
53 #define QS_INSERT_ESC_BYTE(b_) \
54  chksum = (uint8_t)(chksum + (b_)); \
55  if (((b_) != QS_FRAME) && ((b_) != QS_ESC)) { \
56  QS_INSERT_BYTE(b_) \
57  } \
58  else { \
59  QS_INSERT_BYTE(QS_ESC) \
60  QS_INSERT_BYTE((uint8_t)((b_) ^ QS_ESC_XOR)) \
61  ++QS_priv_.used; \
62  }
63 
70 #define QS_PTR_INC_(ptr_) (++(ptr_))
71 
73 #define QS_FRAME ((uint8_t)0x7E)
74 
76 #define QS_ESC ((uint8_t)0x7D)
77 
79 #define QS_GOOD_CHKSUM ((uint8_t)0xFF)
80 
87 #define QS_ESC_XOR ((uint8_t)0x20)
88 
90 void QS_target_info_(uint8_t isReset);
91 
92 #endif /* qs_pkg_h */
93 
unsigned char uint8_t
exact-width 8-bit unsigned int
Definition: stdint.h:29
void QS_target_info_(uint8_t isReset)
send the Target info (object sizes, build time-stamp, QP version)
Definition: qs.c:363