|
4 | 4 | * @ingroup qs qpspy |
5 | 5 | * @cond |
6 | 6 | ****************************************************************************** |
7 | | -* Last updated for version 6.9.1 |
8 | | -* Last updated on 2020-09-30 |
| 7 | +* Last updated for version 6.9.2 |
| 8 | +* Last updated on 2021-01-12 |
9 | 9 | * |
10 | 10 | * Q u a n t u m L e a P s |
11 | 11 | * ------------------------ |
@@ -666,7 +666,7 @@ enum { |
666 | 666 | #elif (QS_OBJ_PTR_SIZE == 4U) |
667 | 667 | #define QS_OBJ(obj_) (QS_u32_fmt_(QS_OBJ_T, (uint32_t)(obj_))) |
668 | 668 | #elif (QS_OBJ_PTR_SIZE == 8U) |
669 | | - #define QS_OBJ(obj_) (QS_u64(QS_OBJ_T, (uint64_t)(obj_))) |
| 669 | + #define QS_OBJ(obj_) (QS_u64_fmt_(QS_OBJ_T, (uint64_t)(obj_))) |
670 | 670 | #else |
671 | 671 | /*! Output formatted object pointer to the QS record */ |
672 | 672 | #define QS_OBJ(obj_) (QS_u32_fmt_(QS_OBJ_T, (uint32_t)(obj_))) |
@@ -917,25 +917,31 @@ void QS_rxInitBuf(uint8_t sto[], uint16_t stoSize); |
917 | 917 | /*! Parse all bytes present in the QS RX data buffer */ |
918 | 918 | void QS_rxParse(void); |
919 | 919 |
|
920 | | -/*! put one byte into the QS RX lock-free buffer */ |
921 | | -void QS_RX_PUT(uint8_t const b); |
| 920 | +/*! Put one byte into the QS RX lock-free buffer */ |
| 921 | +bool QS_RX_PUT(uint8_t const b); |
922 | 922 |
|
923 | 923 | /*! Obtain the number of free bytes in the QS RX data buffer */ |
924 | 924 | uint16_t QS_rxGetNfree(void); |
925 | 925 |
|
926 | | -/*! callback function to reset the Target (to be implemented in the BSP) */ |
| 926 | +/*! Set the "current object" in the Target */ |
| 927 | +void QS_setCurrObj(uint8_t obj_kind, void *obj_ptr); |
| 928 | + |
| 929 | +/*! Query the "current object" in the Target */ |
| 930 | +void QS_queryCurrObj(uint8_t obj_kind); |
| 931 | + |
| 932 | +/*! Callback function to reset the Target (to be implemented in the BSP) */ |
927 | 933 | void QS_onReset(void); |
928 | 934 |
|
929 | | -/*! callback function to execute user commands (to be implemented in BSP) */ |
| 935 | +/*! Callback function to execute user commands (to be implemented in BSP) */ |
930 | 936 | void QS_onCommand(uint8_t cmdId, uint32_t param1, |
931 | 937 | uint32_t param2, uint32_t param3); |
932 | 938 |
|
933 | | -/*! macro to handle the QS output from the application |
| 939 | +/*! Macro to handle the QS output from the application |
934 | 940 | * NOTE: if this macro is used, the application must define QS_output(). |
935 | 941 | */ |
936 | 942 | #define QS_OUTPUT() (QS_output()) |
937 | 943 |
|
938 | | -/*! macro to handle the QS-RX input to the application |
| 944 | +/*! Macro to handle the QS-RX input to the application |
939 | 945 | * NOTE: if this macro is used, the application must define QS_rx_input(). |
940 | 946 | */ |
941 | 947 | #define QS_RX_INPUT() (QS_rx_input()) |
|
0 commit comments