Go to the source code of this file.
Classes | |
class | QS |
struct | QSpyId |
class | QHsmDummy |
class | QActiveDummy |
struct | QS_Filter |
struct | QS_Attr |
struct | QS_TProbe |
Macros | |
#define | QS_INIT(arg_) |
#define | QS_EXIT() |
#define | QS_OUTPUT() |
#define | QS_RX_INPUT() |
#define | QS_GLB_FILTER(rec_) |
#define | QS_LOC_FILTER(qsId_) |
#define | QS_FLUSH() |
#define | QS_BEGIN_ID(rec_, qsId_) |
#define | QS_END() |
#define | QS_BEGIN_INCRIT(rec_, qsId_) |
#define | QS_END_INCRIT() |
#define | QS_GLB_CHECK_(rec_) |
#define | QS_LOC_CHECK_(qsId_) |
#define | QS_REC_DONE() |
#define | QS_I8(width_, data_) |
#define | QS_U8(width_, data_) |
#define | QS_I16(width_, data_) |
#define | QS_U16(width_, data_) |
#define | QS_I32(width_, data_) |
#define | QS_U32(width_, data_) |
#define | QS_I64(width_, data_) |
#define | QS_U64(width_, data_) |
#define | QS_F32(width_, data_) |
#define | QS_F64(width_, data_) |
#define | QS_STR(str_) |
Output a string to the application-specific trace record. | |
#define | QS_MEM(mem_, size_) |
#define | QS_ENUM(group_, value_) |
#define | QS_TIME_PRE() |
#define | QS_OBJ(obj_) |
#define | QS_FUN(fun_) |
#define | QS_SIG(sig_, obj_) |
#define | QS_SIG_DICTIONARY(sig_, obj_) |
#define | QS_OBJ_DICTIONARY(obj_) |
#define | QS_OBJ_ARR_DICTIONARY(obj_, idx_) |
#define | QS_FUN_DICTIONARY(fun_) |
#define | QS_USR_DICTIONARY(rec_) |
#define | QS_ENUM_DICTIONARY(value_, group_) |
#define | QS_RX_PUT(b_) |
#define | QS_TR_CRIT_ENTRY() |
#define | QS_TR_CRIT_EXIT() |
#define | QS_TR_ISR_ENTRY(isrnest_, prio_) |
#define | QS_ONLY(code_) |
#define | QS_ASSERTION(module_, id_, delay_) |
#define | QS_EOD ((uint16_t)0xFFFFU) |
#define | QS_CMD ((uint8_t)7U) |
#define | QS_HEX_FMT ((uint8_t)0x0FU) |
#define | QS_CRIT_STAT QF_CRIT_STAT |
#define | QS_CRIT_ENTRY() |
#define | QS_CRIT_EXIT() |
#define | QS_TEST_PROBE_DEF(fun_) |
#define | QS_TEST_PROBE(code_) |
#define | QS_TEST_PROBE_ID(id_, code_) |
#define | QS_TEST_PAUSE() |
#define | QUTEST_ON_POST 124 |
#define | QS_RXATTR_SIZE 128U |
Typedefs | |
typedef uint32_t | QSObj |
typedef uint32_t | QSFun |
typedef uint32_t | QSTimeCtr |
typedef float | float32_t |
typedef double | float64_t |
typedef uint_fast8_t | QCritStatus |
typedef uint_fast8_t | QSchedStatus |
Functions | |
void | QS_TR_ISR_EXIT (uint_fast8_t isrnest, uint_fast8_t prio) |
QCritStatus | QF_critEntry (void) |
void | QF_critExit (QCritStatus critStat) |
QSchedStatus | QF_schedLock (uint_fast8_t const ceiling) |
void | QF_schedUnlock (QSchedStatus const prevCeil) |
QStateHandler | QHsmDummy_getStateHandler_ (QAsm *const me) |
void | QS_glbFilter_ (int_fast16_t const filter) |
void | QS_locFilter_ (int_fast16_t const filter) |
void | QS_beginRec_ (uint_fast8_t const rec) |
void | QS_endRec_ (void) |
void | QS_u8_raw_ (uint8_t const d) |
void | QS_2u8_raw_ (uint8_t const d1, uint8_t const d2) |
void | QS_u16_raw_ (uint16_t const d) |
void | QS_u32_raw_ (uint32_t const d) |
void | QS_u64_raw_ (uint64_t const d) |
void | QS_obj_raw_ (void const *const obj) |
void | QS_str_raw_ (char const *const str) |
void | QS_u8_fmt_ (uint8_t const format, uint8_t const d) |
void | QS_u16_fmt_ (uint8_t const format, uint16_t const d) |
void | QS_u32_fmt_ (uint8_t const format, uint32_t const d) |
void | QS_u64_fmt_ (uint8_t const format, uint64_t const d) |
void | QS_f32_fmt_ (uint8_t const format, float32_t const f) |
void | QS_f64_fmt_ (uint8_t const format, float64_t const d) |
void | QS_str_fmt_ (char const *const str) |
void | QS_mem_fmt_ (uint8_t const *const blk, uint8_t const size) |
void | QS_sig_dict_pre_ (QSignal const sig, void const *const obj, char const *const name) |
void | QS_obj_dict_pre_ (void const *const obj, char const *const name) |
void | QS_obj_arr_dict_pre_ (void const *const obj, uint_fast16_t const idx, char const *const name) |
void | QS_fun_dict_pre_ (QSpyFunPtr const fun, char const *const name) |
void | QS_usr_dict_pre_ (enum_t const rec, char const *const name) |
void | QS_enum_dict_pre_ (enum_t const value, uint8_t const group, char const *const name) |
void | QS_assertion_pre_ (char const *const module, int_t const id, uint32_t const delay) |
void | QS_target_info_pre_ (QSResetAction const act) |
void | QS_processTestEvts_ (void) |
Variables | |
QS_Attr | QS_priv_ |
#define QS_GLB_FILTER | ( | rec_ | ) |
#define QS_LOC_FILTER | ( | qsId_ | ) |
#define QS_BEGIN_ID | ( | rec_, | |
qsId_ ) |
#define QS_END | ( | ) |
#define QS_BEGIN_INCRIT | ( | rec_, | |
qsId_ ) |
#define QS_GLB_CHECK_ | ( | rec_ | ) |
#define QS_LOC_CHECK_ | ( | qsId_ | ) |
#define QS_I8 | ( | width_, | |
data_ ) |
#define QS_U8 | ( | width_, | |
data_ ) |
#define QS_I16 | ( | width_, | |
data_ ) |
#define QS_U16 | ( | width_, | |
data_ ) |
#define QS_I32 | ( | width_, | |
data_ ) |
#define QS_U32 | ( | width_, | |
data_ ) |
#define QS_I64 | ( | width_, | |
data_ ) |
#define QS_U64 | ( | width_, | |
data_ ) |
#define QS_F32 | ( | width_, | |
data_ ) |
#define QS_F64 | ( | width_, | |
data_ ) |
#define QS_STR | ( | str_ | ) |
Output a string to the application-specific trace record.
[out] | str_ | zero-terminated ASCII string |
str_
is NOT byte-stuffed (see QP/Spy Data Protocol->Transparency). Consequently, the characters }
(ASCII 0x7D) and ~
(ASCII 0x7E) must be avoided in the string.#define QS_MEM | ( | mem_, | |
size_ ) |
#define QS_ENUM | ( | group_, | |
value_ ) |
#define QS_TIME_PRE | ( | ) |
#define QS_OBJ | ( | obj_ | ) |
#define QS_FUN | ( | fun_ | ) |
#define QS_SIG | ( | sig_, | |
obj_ ) |
#define QS_SIG_DICTIONARY | ( | sig_, | |
obj_ ) |
#define QS_OBJ_DICTIONARY | ( | obj_ | ) |
#define QS_OBJ_ARR_DICTIONARY | ( | obj_, | |
idx_ ) |
#define QS_FUN_DICTIONARY | ( | fun_ | ) |
#define QS_USR_DICTIONARY | ( | rec_ | ) |
#define QS_ENUM_DICTIONARY | ( | value_, | |
group_ ) |
#define QS_TR_ISR_ENTRY | ( | isrnest_, | |
prio_ ) |
#define QS_ASSERTION | ( | module_, | |
id_, | |||
delay_ ) |
#define QS_TEST_PROBE_DEF | ( | fun_ | ) |
#define QS_TEST_PROBE | ( | code_ | ) |
#define QS_TEST_PROBE_ID | ( | id_, | |
code_ ) |
typedef uint_fast8_t QCritStatus |
typedef uint_fast8_t QSchedStatus |
enum QSpyPre |
pre-defined QS record IDs
Enumerator | |
---|---|
QS_EMPTY | QS record for cleanly starting a session. |
QS_QEP_STATE_ENTRY | a state was entered |
QS_QEP_STATE_EXIT | a state was exited |
QS_QEP_STATE_INIT | an initial transition was taken in a state |
QS_QEP_INIT_TRAN | the top-most initial transition was taken |
QS_QEP_INTERN_TRAN | an internal transition was taken |
QS_QEP_TRAN | a regular transition was taken |
QS_QEP_IGNORED | an event was ignored (silently discarded) |
QS_QEP_DISPATCH | an event was dispatched (begin of RTC step) |
QS_QEP_UNHANDLED | an event was un-handled due to a guard |
QS_QF_ACTIVE_DEFER | AO deferred an event. |
QS_QF_ACTIVE_RECALL | AO recalled an event. |
QS_QF_ACTIVE_SUBSCRIBE | an AO subscribed to an event |
QS_QF_ACTIVE_UNSUBSCRIBE | an AO unsubscribed to an event |
QS_QF_ACTIVE_POST | an event was posted (FIFO) directly to AO |
QS_QF_ACTIVE_POST_LIFO | an event was posted (LIFO) directly to AO |
QS_QF_ACTIVE_GET | AO got an event and its queue is not empty. |
QS_QF_ACTIVE_GET_LAST | AO got an event and its queue is empty. |
QS_QF_ACTIVE_RECALL_ATTEMPT | AO attempted to recall an event. |
QS_QF_EQUEUE_POST | an event was posted (FIFO) to a raw queue |
QS_QF_EQUEUE_POST_LIFO | an event was posted (LIFO) to a raw queue |
QS_QF_EQUEUE_GET | get an event and queue still not empty |
QS_QF_EQUEUE_GET_LAST | get the last event from the queue |
QS_QF_NEW_ATTEMPT | an attempt to allocate an event failed |
QS_QF_MPOOL_GET | a memory block was removed from memory pool |
QS_QF_MPOOL_PUT | a memory block was returned to memory pool |
QS_QF_PUBLISH | an event was published to active objects |
QS_QF_NEW_REF | new event reference was created |
QS_QF_NEW | new event was created |
QS_QF_GC_ATTEMPT | garbage collection attempt |
QS_QF_GC | garbage collection |
QS_QF_TICK | QTimeEvt tick was called. |
QS_QF_TIMEEVT_ARM | a time event was armed |
QS_QF_TIMEEVT_AUTO_DISARM | a time event expired and was disarmed |
QS_QF_TIMEEVT_DISARM_ATTEMPT | attempt to disarm a disarmed QTimeEvt |
QS_QF_TIMEEVT_DISARM | true disarming of an armed time event |
QS_QF_TIMEEVT_REARM | rearming of a time event |
QS_QF_TIMEEVT_POST | a time event posted itself directly to an AO |
QS_QF_DELETE_REF | an event reference is about to be deleted |
QS_QF_CRIT_ENTRY | critical section was entered |
QS_QF_CRIT_EXIT | critical section was exited |
QS_QF_ISR_ENTRY | an ISR was entered |
QS_QF_ISR_EXIT | an ISR was exited |
QS_QF_INT_DISABLE | interrupts were disabled |
QS_QF_INT_ENABLE | interrupts were enabled |
QS_QF_ACTIVE_POST_ATTEMPT | attempt to post an evt to AO failed |
QS_QF_EQUEUE_POST_ATTEMPT | attempt to post evt to QEQueue failed |
QS_QF_MPOOL_GET_ATTEMPT | attempt to get a memory block failed |
QS_SCHED_PREEMPT | scheduler asynchronously preempted a task |
QS_SCHED_RESTORE | scheduler restored preempted task |
QS_SCHED_LOCK | scheduler was locked |
QS_SCHED_UNLOCK | scheduler was unlocked |
QS_SCHED_NEXT | scheduler started next task |
QS_SCHED_IDLE | scheduler restored the idle task |
QS_ENUM_DICT | enumeration dictionary entry |
QS_QEP_TRAN_HIST | a tran. to history was taken |
QS_RESERVED_56 | reserved (previously QS_QEP_TRAN_EP) |
QS_RESERVED_57 | reserved (previously QS_QEP_TRAN_XP) |
QS_TEST_PAUSED | test has been paused |
QS_TEST_PROBE_GET | reports that Test-Probe has been used |
QS_SIG_DICT | signal dictionary entry |
QS_OBJ_DICT | object dictionary entry |
QS_FUN_DICT | function dictionary entry |
QS_USR_DICT | user QS record dictionary entry |
QS_TARGET_INFO | reports the Target information |
QS_TARGET_DONE | reports completion of a user callback |
QS_RX_STATUS | reports QS data receive status |
QS_QUERY_DATA | reports the data from "current object" query |
QS_PEEK_DATA | reports the data from the PEEK query |
QS_ASSERT_FAIL | assertion failed in the code |
QS_QF_RUN | QF_run() was entered. |
QS_SEM_TAKE | a semaphore was taken by a thread |
QS_SEM_BLOCK | a semaphore blocked a thread |
QS_SEM_SIGNAL | a semaphore was signaled |
QS_SEM_BLOCK_ATTEMPT | a semaphore blocked was attempted |
QS_MTX_LOCK | a mutex was locked |
QS_MTX_BLOCK | a mutex blocked a thread |
QS_MTX_UNLOCK | a mutex was unlocked |
QS_MTX_LOCK_ATTEMPT | a mutex lock was attempted |
QS_MTX_BLOCK_ATTEMPT | a mutex blocking was attempted |
QS_MTX_UNLOCK_ATTEMPT | a mutex unlock was attempted |
QS_QF_ACTIVE_DEFER_ATTEMPT | AO attempted to deferr an event. |
QS_PRE_MAX | the # predefined signals |
enum QSpyGroups |
QS-TX record groups for QS_GLB_FILTER()
Enumerator | |
---|---|
QS_ALL_RECORDS | all maskable QS records |
QS_SM_RECORDS | State Machine QS records. |
QS_AO_RECORDS | Active Object QS records. |
QS_EQ_RECORDS | Event Queues QS records. |
QS_MP_RECORDS | Memory Pools QS records. |
QS_TE_RECORDS | Time Events QS records. |
QS_QF_RECORDS | QF QS records. |
QS_SC_RECORDS | Scheduler QS records. |
QS_SEM_RECORDS | Semaphore QS records. |
QS_MTX_RECORDS | Mutex QS records. |
QS_U0_RECORDS | User Group 100-104 records. |
QS_U1_RECORDS | User Group 105-109 records. |
QS_U2_RECORDS | User Group 110-114 records. |
QS_U3_RECORDS | User Group 115-119 records. |
QS_U4_RECORDS | User Group 120-124 records. |
QS_UA_RECORDS | All User records. |
enum QSpyUserOffsets |
QS user record group offsets for QS_GLB_FILTER()
Enumerator | |
---|---|
QS_USER | the first record available to QS users |
QS_USER0 | offset for User Group 0 |
QS_USER1 | offset for User Group 1 |
QS_USER2 | offset for User Group 2 |
QS_USER3 | offset for User Group 3 |
QS_USER4 | offset for User Group 4 |
enum QSpyIdOffsets |
QS ID offsets for QS_LOC_FILTER()
Enumerator | |
---|---|
QS_AO_ID | offset for AO priorities |
QS_EP_ID | offset for event-pool IDs |
QS_EQ_ID | offset for event-queue IDs |
QS_AP_ID | offset for Application-specific IDs |
enum QSpyIdGroups |
QS ID groups for QS_LOC_FILTER()
Enumerator | |
---|---|
QS_ALL_IDS | all QS IDs |
QS_AO_IDS | AO IDs (priorities) |
QS_EP_IDS | event-pool IDs |
QS_EQ_IDS | event-queue IDs |
QS_AP_IDS | Application-specific IDs. |
enum QS_preType |
Enumerates data elements for app-specific trace records.
enum QSResetAction |
void QS_TR_ISR_EXIT | ( | uint_fast8_t | isrnest, |
uint_fast8_t | prio ) |
QCritStatus QF_critEntry | ( | void | ) |
void QF_critExit | ( | QCritStatus | critStat | ) |
QSchedStatus QF_schedLock | ( | uint_fast8_t const | ceiling | ) |
void QF_schedUnlock | ( | QSchedStatus const | prevCeil | ) |
QStateHandler QHsmDummy_getStateHandler_ | ( | QAsm *const | me | ) |
void QS_glbFilter_ | ( | int_fast16_t const | filter | ) |
void QS_locFilter_ | ( | int_fast16_t const | filter | ) |
void QS_beginRec_ | ( | uint_fast8_t const | rec | ) |
void QS_endRec_ | ( | void | ) |
void QS_u8_raw_ | ( | uint8_t const | d | ) |
void QS_2u8_raw_ | ( | uint8_t const | d1, |
uint8_t const | d2 ) |
void QS_u16_raw_ | ( | uint16_t const | d | ) |
void QS_u32_raw_ | ( | uint32_t const | d | ) |
void QS_u64_raw_ | ( | uint64_t const | d | ) |
void QS_obj_raw_ | ( | void const *const | obj | ) |
void QS_str_raw_ | ( | char const *const | str | ) |
void QS_u8_fmt_ | ( | uint8_t const | format, |
uint8_t const | d ) |
void QS_u16_fmt_ | ( | uint8_t const | format, |
uint16_t const | d ) |
void QS_u32_fmt_ | ( | uint8_t const | format, |
uint32_t const | d ) |
void QS_u64_fmt_ | ( | uint8_t const | format, |
uint64_t const | d ) |
void QS_f32_fmt_ | ( | uint8_t const | format, |
float32_t const | f ) |
void QS_f64_fmt_ | ( | uint8_t const | format, |
float64_t const | d ) |
void QS_str_fmt_ | ( | char const *const | str | ) |
void QS_mem_fmt_ | ( | uint8_t const *const | blk, |
uint8_t const | size ) |
void QS_sig_dict_pre_ | ( | QSignal const | sig, |
void const *const | obj, | ||
char const *const | name ) |
void QS_obj_dict_pre_ | ( | void const *const | obj, |
char const *const | name ) |
void QS_obj_arr_dict_pre_ | ( | void const *const | obj, |
uint_fast16_t const | idx, | ||
char const *const | name ) |
void QS_fun_dict_pre_ | ( | QSpyFunPtr const | fun, |
char const *const | name ) |
void QS_usr_dict_pre_ | ( | enum_t const | rec, |
char const *const | name ) |
void QS_enum_dict_pre_ | ( | enum_t const | value, |
uint8_t const | group, | ||
char const *const | name ) |
void QS_assertion_pre_ | ( | char const *const | module, |
int_t const | id, | ||
uint32_t const | delay ) |
void QS_target_info_pre_ | ( | QSResetAction const | act | ) |
void QS_processTestEvts_ | ( | void | ) |
|
extern |