Go to the source code of this file.
Classes | |
struct | QS_TProbe |
QUTest Test-Probe attributes. More... | |
Macros | |
#define | QS_INIT(arg_) ((uint8_t)1U) |
#define | QS_EXIT() ((void)0) |
#define | QS_DUMP() ((void)0) |
#define | QS_GLB_FILTER(rec_) ((void)0) |
#define | QS_LOC_FILTER(qsId_) ((void)0) |
#define | QS_BEGIN_ID(rec_, qsId_) if (false) { |
#define | QS_END() } |
#define | QS_BEGIN_INCRIT(rec_, qsId_) if (false) { |
#define | QS_END_INCRIT() } |
#define | QS_I8(width_, data_) ((void)0) |
#define | QS_U8(width_, data_) ((void)0) |
#define | QS_I16(width_, data_) ((void)0) |
#define | QS_U16(width_, data_) ((void)0) |
#define | QS_I32(width_, data_) ((void)0) |
#define | QS_U32(width_, data_) ((void)0) |
#define | QS_F32(width_, data_) ((void)0) |
#define | QS_F64(width_, data_) ((void)0) |
#define | QS_I64(width_, data_) ((void)0) |
#define | QS_U64(width_, data_) ((void)0) |
#define | QS_ENUM(group_, value_) ((void)0) |
#define | QS_STR(str_) ((void)0) |
#define | QS_MEM(mem_, size_) ((void)0) |
#define | QS_SIG(sig_, obj_) ((void)0) |
#define | QS_OBJ(obj_) ((void)0) |
#define | QS_FUN(fun_) ((void)0) |
#define | QS_SIG_DICTIONARY(sig_, obj_) ((void)0) |
#define | QS_OBJ_DICTIONARY(obj_) ((void)0) |
#define | QS_OBJ_ARR_DICTIONARY(obj_, idx_) ((void)0) |
#define | QS_FUN_DICTIONARY(fun_) ((void)0) |
#define | QS_USR_DICTIONARY(rec_) ((void)0) |
#define | QS_ENUM_DICTIONARY(value_, group_) ((void)0) |
#define | QS_ASSERTION(module_, loc_, delay_) ((void)0) |
#define | QS_FLUSH() ((void)0) |
#define | QS_TEST_PROBE_DEF(fun_) |
#define | QS_TEST_PROBE(code_) |
#define | QS_TEST_PROBE_ID(id_, code_) |
#define | QS_TEST_PAUSE() ((void)0) |
#define | QS_OUTPUT() ((void)0) |
#define | QS_RX_INPUT() ((void)0) |
#define | QS_RX_PUT(b_) ((void)0) |
#define | QS_ONLY(code_) ((void)0) |
#define | QS_BEGIN_PRE(rec_, qsId_) if (false) { |
#define | QS_END_PRE() } |
#define | QS_U8_PRE(data_) ((void)0) |
#define | QS_2U8_PRE(data1_, data2_) ((void)0) |
#define | QS_U16_PRE(data_) ((void)0) |
#define | QS_U32_PRE(data_) ((void)0) |
#define | QS_TIME_PRE() ((void)0) |
#define | QS_SIG_PRE(sig_) ((void)0) |
#define | QS_EVS_PRE(size_) ((void)0) |
#define | QS_OBJ_PRE(obj_) ((void)0) |
#define | QS_FUN_PRE(fun_) ((void)0) |
#define | QS_EQC_PRE(ctr_) ((void)0) |
#define | QS_MPC_PRE(ctr_) ((void)0) |
#define | QS_MPS_PRE(size_) ((void)0) |
#define | QS_TEC_PRE(ctr_) ((void)0) |
#define | QS_CRIT_STAT |
#define | QS_CRIT_ENTRY() ((void)0) |
#define | QS_CRIT_EXIT() ((void)0) |
#define | QS_MEM_SYS() ((void)0) |
#define | QS_MEM_APP() ((void)0) |
#define | QS_TR_CRIT_ENTRY() ((void)0) |
#define | QS_TR_CRIT_EXIT() ((void)0) |
#define | QS_TR_ISR_ENTRY(isrnest_, prio_) ((void)0) |
#define | QS_TR_ISR_EXIT(isrnest_, prio_) ((void)0) |
Typedefs | |
typedef uint32_t | QSTimeCtr |
Unsigned integer type for QS timestamps. | |
Functions | |
void | QS_initBuf (uint8_t *const sto, uint_fast32_t const stoSize) |
uint16_t | QS_getByte (void) |
uint8_t const * | QS_getBlock (uint16_t *const pNbytes) |
void | QS_doOutput (void) |
uint8_t | QS_onStartup (void const *arg) |
void | QS_onCleanup (void) |
void | QS_onFlush (void) |
Flush the QS output buffer. | |
QSTimeCtr | QS_onGetTime (void) |
Return the current timestamp for QS trace records. | |
void | QS_rxInitBuf (uint8_t *const sto, uint16_t const stoSize) |
void | QS_rxParse (void) |
void | QS_onTestSetup (void) |
void | QS_onTestTeardown (void) |
void | QS_onTestEvt (QEvt *e) |
void | QS_onTestPost (void const *sender, QActive *recipient, QEvt const *e, bool status) |
void | QS_onTestLoop (void) |
#define QS_INIT | ( | arg_ | ) | ((uint8_t)1U) |
Definition at line 41 of file qs_dummy.h.
#define QS_EXIT | ( | ) | ((void)0) |
Definition at line 42 of file qs_dummy.h.
#define QS_DUMP | ( | ) | ((void)0) |
Definition at line 43 of file qs_dummy.h.
#define QS_GLB_FILTER | ( | rec_ | ) | ((void)0) |
Definition at line 44 of file qs_dummy.h.
#define QS_LOC_FILTER | ( | qsId_ | ) | ((void)0) |
Definition at line 45 of file qs_dummy.h.
#define QS_BEGIN_ID | ( | rec_, | |
qsId_ ) if (false) { |
Definition at line 47 of file qs_dummy.h.
#define QS_END | ( | ) | } |
Definition at line 48 of file qs_dummy.h.
#define QS_BEGIN_INCRIT | ( | rec_, | |
qsId_ ) if (false) { |
Definition at line 49 of file qs_dummy.h.
#define QS_END_INCRIT | ( | ) | } |
Definition at line 50 of file qs_dummy.h.
#define QS_I8 | ( | width_, | |
data_ ) ((void)0) |
Definition at line 52 of file qs_dummy.h.
#define QS_U8 | ( | width_, | |
data_ ) ((void)0) |
Definition at line 53 of file qs_dummy.h.
#define QS_I16 | ( | width_, | |
data_ ) ((void)0) |
Definition at line 54 of file qs_dummy.h.
#define QS_U16 | ( | width_, | |
data_ ) ((void)0) |
Definition at line 55 of file qs_dummy.h.
#define QS_I32 | ( | width_, | |
data_ ) ((void)0) |
Definition at line 56 of file qs_dummy.h.
#define QS_U32 | ( | width_, | |
data_ ) ((void)0) |
Definition at line 57 of file qs_dummy.h.
#define QS_F32 | ( | width_, | |
data_ ) ((void)0) |
Definition at line 58 of file qs_dummy.h.
#define QS_F64 | ( | width_, | |
data_ ) ((void)0) |
Definition at line 59 of file qs_dummy.h.
#define QS_I64 | ( | width_, | |
data_ ) ((void)0) |
Definition at line 60 of file qs_dummy.h.
#define QS_U64 | ( | width_, | |
data_ ) ((void)0) |
Definition at line 61 of file qs_dummy.h.
#define QS_ENUM | ( | group_, | |
value_ ) ((void)0) |
Definition at line 62 of file qs_dummy.h.
#define QS_STR | ( | str_ | ) | ((void)0) |
Definition at line 63 of file qs_dummy.h.
#define QS_MEM | ( | mem_, | |
size_ ) ((void)0) |
Definition at line 64 of file qs_dummy.h.
#define QS_SIG | ( | sig_, | |
obj_ ) ((void)0) |
Definition at line 65 of file qs_dummy.h.
#define QS_OBJ | ( | obj_ | ) | ((void)0) |
Definition at line 66 of file qs_dummy.h.
#define QS_FUN | ( | fun_ | ) | ((void)0) |
Definition at line 67 of file qs_dummy.h.
#define QS_SIG_DICTIONARY | ( | sig_, | |
obj_ ) ((void)0) |
Definition at line 69 of file qs_dummy.h.
#define QS_OBJ_DICTIONARY | ( | obj_ | ) | ((void)0) |
Definition at line 70 of file qs_dummy.h.
#define QS_OBJ_ARR_DICTIONARY | ( | obj_, | |
idx_ ) ((void)0) |
Definition at line 71 of file qs_dummy.h.
#define QS_FUN_DICTIONARY | ( | fun_ | ) | ((void)0) |
Definition at line 72 of file qs_dummy.h.
#define QS_USR_DICTIONARY | ( | rec_ | ) | ((void)0) |
Definition at line 73 of file qs_dummy.h.
#define QS_ENUM_DICTIONARY | ( | value_, | |
group_ ) ((void)0) |
Definition at line 74 of file qs_dummy.h.
#define QS_ASSERTION | ( | module_, | |
loc_, | |||
delay_ ) ((void)0) |
Definition at line 75 of file qs_dummy.h.
#define QS_FLUSH | ( | ) | ((void)0) |
Definition at line 76 of file qs_dummy.h.
#define QS_TEST_PROBE_DEF | ( | fun_ | ) |
QS macro to define the Test-Probe for a given fun_
Backward Traceability
Definition at line 78 of file qs_dummy.h.
#define QS_TEST_PROBE | ( | code_ | ) |
Definition at line 79 of file qs_dummy.h.
#define QS_TEST_PROBE_ID | ( | id_, | |
code_ ) |
QS_TEST_PROBE QS macro to apply a Test-Probe
Backward Traceability
QS macro to apply a Test-Probe
Definition at line 80 of file qs_dummy.h.
#define QS_TEST_PAUSE | ( | ) | ((void)0) |
QS macro to pause test execution and enter the test event-loop
Definition at line 81 of file qs_dummy.h.
#define QS_OUTPUT | ( | ) | ((void)0) |
Definition at line 83 of file qs_dummy.h.
#define QS_RX_INPUT | ( | ) | ((void)0) |
Definition at line 84 of file qs_dummy.h.
#define QS_RX_PUT | ( | b_ | ) | ((void)0) |
Macro to call QS_rxPut() when Q_SPY is defined (resolves to nothing when Q_SPY is not defined)
Definition at line 85 of file qs_dummy.h.
#define QS_ONLY | ( | code_ | ) | ((void)0) |
Definition at line 86 of file qs_dummy.h.
#define QS_BEGIN_PRE | ( | rec_, | |
qsId_ ) if (false) { |
Definition at line 141 of file qs_dummy.h.
#define QS_END_PRE | ( | ) | } |
Definition at line 142 of file qs_dummy.h.
#define QS_U8_PRE | ( | data_ | ) | ((void)0) |
Definition at line 143 of file qs_dummy.h.
#define QS_2U8_PRE | ( | data1_, | |
data2_ ) ((void)0) |
Definition at line 144 of file qs_dummy.h.
#define QS_U16_PRE | ( | data_ | ) | ((void)0) |
Definition at line 145 of file qs_dummy.h.
#define QS_U32_PRE | ( | data_ | ) | ((void)0) |
Definition at line 146 of file qs_dummy.h.
#define QS_TIME_PRE | ( | ) | ((void)0) |
Definition at line 147 of file qs_dummy.h.
#define QS_SIG_PRE | ( | sig_ | ) | ((void)0) |
Definition at line 148 of file qs_dummy.h.
#define QS_EVS_PRE | ( | size_ | ) | ((void)0) |
Definition at line 149 of file qs_dummy.h.
#define QS_OBJ_PRE | ( | obj_ | ) | ((void)0) |
Definition at line 150 of file qs_dummy.h.
#define QS_FUN_PRE | ( | fun_ | ) | ((void)0) |
Definition at line 151 of file qs_dummy.h.
#define QS_EQC_PRE | ( | ctr_ | ) | ((void)0) |
Definition at line 152 of file qs_dummy.h.
#define QS_MPC_PRE | ( | ctr_ | ) | ((void)0) |
Definition at line 153 of file qs_dummy.h.
#define QS_MPS_PRE | ( | size_ | ) | ((void)0) |
Definition at line 154 of file qs_dummy.h.
#define QS_TEC_PRE | ( | ctr_ | ) | ((void)0) |
Definition at line 155 of file qs_dummy.h.
#define QS_CRIT_STAT |
Internal QS macro for defining the critical section status
Definition at line 157 of file qs_dummy.h.
#define QS_CRIT_ENTRY | ( | ) | ((void)0) |
Internal macro for entering a critical section
Definition at line 158 of file qs_dummy.h.
#define QS_CRIT_EXIT | ( | ) | ((void)0) |
Internal macro for exiting a critical section
Definition at line 159 of file qs_dummy.h.
#define QS_MEM_SYS | ( | ) | ((void)0) |
Internal macro for configuring MPU for System access
Definition at line 161 of file qs_dummy.h.
#define QS_MEM_APP | ( | ) | ((void)0) |
Internal macro for configuring MPU for Application access
Definition at line 162 of file qs_dummy.h.
#define QS_TR_CRIT_ENTRY | ( | ) | ((void)0) |
Definition at line 164 of file qs_dummy.h.
#define QS_TR_CRIT_EXIT | ( | ) | ((void)0) |
Definition at line 165 of file qs_dummy.h.
#define QS_TR_ISR_ENTRY | ( | isrnest_, | |
prio_ ) ((void)0) |
Definition at line 166 of file qs_dummy.h.
#define QS_TR_ISR_EXIT | ( | isrnest_, | |
prio_ ) ((void)0) |
Definition at line 167 of file qs_dummy.h.
typedef uint32_t QSTimeCtr |
Unsigned integer type for QS timestamps.
Definition at line 95 of file qs_dummy.h.
void QS_initBuf | ( | uint8_t *const | sto, |
uint_fast32_t const | stoSize ) |
Initialize the QS-TX data buffer
[in] | sto | pointer to the storage for the transmit buffer |
[in] | stoSize | size in [bytes] of the storage buffer. Currently the size of the QS buffer cannot exceed 64KB. |
uint16_t QS_getByte | ( | void | ) |
Byte-oriented interface to the QS-TX data buffer
uint8_t const * QS_getBlock | ( | uint16_t *const | pNbytes | ) |
Block-oriented interface to the QS-TX data buffer
pNbytes
. The argument pNbytes
is also used as input to provide the maximum size of the data block that the caller can accept.[in,out] | pNbytes | pointer to the number of bytes to send. On input, pNbytes specifies the maximum number of bytes that the function can provide. On output, pNbytes contains the actual number of bytes available. |
pNbytes
to the # available bytes. If data is available at the time the function is called, the function returns NULL pointer and sets the value pointed to by pNbytes
to zero.void QS_doOutput | ( | void | ) |
uint8_t QS_onStartup | ( | void const * | arg | ) |
void QS_onCleanup | ( | void | ) |
void QS_onFlush | ( | void | ) |
Flush the QS output buffer.
QSTimeCtr QS_onGetTime | ( | void | ) |
Return the current timestamp for QS trace records.
As this is a callback from QS to the application, the properties of the timestamp depend entirely on the application. Typically, the function requires a hardware timer with the following properties:
void QS_rxInitBuf | ( | uint8_t *const | sto, |
uint16_t const | stoSize ) |
Initialize the QS-RX data buffer
[in] | sto | pointer to the storage for the QS-RX receive buffer |
[in] | stoSize | size in [bytes] of the storage buffer |
void QS_rxParse | ( | void | ) |
Parse and process QS-RX (receive channel) data bytes
void QS_onTestSetup | ( | void | ) |
void QS_onTestTeardown | ( | void | ) |
void QS_onTestEvt | ( | QEvt * | e | ) |
void QS_onTestLoop | ( | void | ) |