Internal (package scope) QS/C interface. More...
Go to the source code of this file.
Macros | |
#define | QS_FRAME (0x7EU) |
#define | QS_ESC (0x7DU) |
#define | QS_GOOD_CHKSUM (0xFFU) |
#define | QS_ESC_XOR (0x20U) |
#define | QS_BEGIN_PRE_(rec_, qs_id_) |
#define | QS_END_PRE_() |
#define | QS_BEGIN_NOCRIT_PRE_(rec_, qs_id_) |
#define | QS_END_NOCRIT_PRE_() QS_endRec_(); } |
#define | QS_U8_PRE_(data_) (QS_u8_raw_((uint8_t)(data_))) |
#define | QS_2U8_PRE_(data1_, data2_) (QS_2u8_raw_((uint8_t)(data1_), (uint8_t)(data2_))) |
#define | QS_U16_PRE_(data_) (QS_u16_raw_((uint16_t)(data_))) |
#define | QS_U32_PRE_(data_) (QS_u32_raw_((uint32_t)(data_))) |
#define | QS_STR_PRE_(msg_) (QS_str_raw_((msg_))) |
#define | QS_SIG_PRE_(sig_) (QS_u8_raw_((uint8_t)sig_)) |
#define | QS_OBJ_PRE_(obj_) (QS_obj_raw_(obj_)) |
#define | QS_FUN_PRE_(fun_) (QS_u8_raw_((uint8_t)(fun_))) |
#define | QS_EQC_PRE_(ctr_) QS_u16_raw_((uint16_t)(ctr_)) |
#define | QS_EVS_PRE_(size_) QS_u16_raw_((uint16_t)(size_)) |
#define | QS_MPS_PRE_(size_) QS_u16_raw_((uint16_t)(size_)) |
#define | QS_MPC_PRE_(ctr_) QS_u16_raw_((uint16_t)(ctr_)) |
#define | QS_TEC_PRE_(ctr_) QS_u32_raw_((uint32_t)(ctr_)) |
#define | QS_INSERT_BYTE_(b_) |
#define | QS_INSERT_ESC_BYTE_(b_) |
Enumerations | |
enum | QSpyRxRecords { QS_RX_INFO , QS_RX_COMMAND , QS_RX_RESET , QS_RX_TICK , QS_RX_PEEK , QS_RX_POKE , QS_RX_FILL , QS_RX_TEST_SETUP , QS_RX_TEST_TEARDOWN , QS_RX_TEST_PROBE , QS_RX_GLB_FILTER , QS_RX_LOC_FILTER , QS_RX_AO_FILTER , QS_RX_CURR_OBJ , QS_RX_TEST_CONTINUE , QS_RX_QUERY_CURR , QS_RX_EVENT } |
#define QS_FRAME (0x7EU) |
#define QS_ESC (0x7DU) |
#define QS_GOOD_CHKSUM (0xFFU) |
#define QS_ESC_XOR (0x20U) |
#define QS_BEGIN_PRE_ | ( | rec_, | |
qs_id_ | |||
) |
Internal QS macro to begin a predefined QS record with entering critical section.
#define QS_END_PRE_ | ( | ) |
#define QS_BEGIN_NOCRIT_PRE_ | ( | rec_, | |
qs_id_ | |||
) |
Internal macro to begin a predefined QS record without entering critical section.
#define QS_END_NOCRIT_PRE_ | ( | ) | QS_endRec_(); } |
Internal QS macro to end a predefined QS record without exiting critical section
#define QS_U8_PRE_ | ( | data_ | ) | (QS_u8_raw_((uint8_t)(data_))) |
#define QS_2U8_PRE_ | ( | data1_, | |
data2_ | |||
) | (QS_2u8_raw_((uint8_t)(data1_), (uint8_t)(data2_))) |
#define QS_U16_PRE_ | ( | data_ | ) | (QS_u16_raw_((uint16_t)(data_))) |
#define QS_U32_PRE_ | ( | data_ | ) | (QS_u32_raw_((uint32_t)(data_))) |
#define QS_STR_PRE_ | ( | msg_ | ) | (QS_str_raw_((msg_))) |
#define QS_SIG_PRE_ | ( | sig_ | ) | (QS_u8_raw_((uint8_t)sig_)) |
Internal macro to output an unformatted event signal data element
#define QS_EVS_PRE_ | ( | size_ | ) | QS_u16_raw_((uint16_t)(size_)) |
#define QS_MPS_PRE_ | ( | size_ | ) | QS_u16_raw_((uint16_t)(size_)) |
#define QS_INSERT_BYTE_ | ( | b_ | ) |
#define QS_INSERT_ESC_BYTE_ | ( | b_ | ) |
Internal QS macro to insert an escaped byte into the QS buffer
enum QSpyRxRecords |
QS received record types (RX channel)
This enumeration specifies the record types for the QS receive channel
Enumerator | |
---|---|
QS_RX_INFO | query Target info (ver, config, tstamp) |
QS_RX_COMMAND | execute a user-defined command in the Target |
QS_RX_RESET | reset the Target |
QS_RX_TICK | call QTIMEEVT_TICK_X() in the Target |
QS_RX_PEEK | peek Target memory |
QS_RX_POKE | poke Target memory |
QS_RX_FILL | fill Target memory |
QS_RX_TEST_SETUP | test setup |
QS_RX_TEST_TEARDOWN | test teardown |
QS_RX_TEST_PROBE | set a Test-Probe in the Target |
QS_RX_GLB_FILTER | set global filters in the Target |
QS_RX_LOC_FILTER | set local filters in the Target |
QS_RX_AO_FILTER | set local AO filter in the Target |
QS_RX_CURR_OBJ | set the "current-object" in the Target |
QS_RX_TEST_CONTINUE | continue a test after QS_TEST_PAUSE() |
QS_RX_QUERY_CURR | query the "current object" in the Target |
QS_RX_EVENT | inject an event to the Target |