Host API. More...
Go to the source code of this file.
Classes | |
struct | QSpyRecord |
struct | QSpyConfig |
struct | QSPY_LastOutput |
struct | DictEntry |
struct | Dictionary |
struct | SigDictEntry |
struct | SigDictionary |
Macros | |
#define | QSPY_VER "7.4.0" |
#define | SIG_NOT_FOUND ((SigType)-1) |
#define | KEY_NOT_FOUND ((KeyType)-1) |
#define | QS_LINE_OFFSET 8 |
#define | SNPRINTF_LINE(format_, ...) |
#define | SNPRINTF_APPEND(format_, ...) |
#define | CONFIG_UPDATE(member_, new_, diff_) |
Typedefs | |
typedef uint16_t | QSignal |
typedef int(* | QSPY_CustParseFun) (QSpyRecord *const me) |
typedef void(* | QSPY_resetFun) (void) |
typedef uint64_t | KeyType |
typedef uint32_t | SigType |
typedef uint64_t | ObjType |
Enumerations | |
enum | QSpyStatus { QSPY_ERROR , QSPY_SUCCESS } |
enum | { QS_RECORD_SIZE_MAX = 512 , QS_LINE_LEN_MAX = 1000 , QS_FNAME_LEN_MAX = 256 , QS_SEQ_LIST_LEN_MAX = 300 , QS_DNAME_LEN_MAX = 64 } |
enum | { CMD_OPT_OFF , CMD_OPT_ON , CMD_OPT_TOGGLE } |
enum | QSPY_LastOutputType { REG_OUT , ERR_OUT , BE_OUT , INF_OUT , USR_OUT , TST_OUT } |
enum | QSRreRecGroup { GRP_ERR , GRP_INF , GRP_DIC , GRP_TST , GRP_SM , GRP_AO , GRP_EQ , GRP_MP , GRP_TE , GRP_QF , GRP_SC , GRP_SEM , GRP_MTX , GRP_USR } |
Functions | |
void | QSpyRecord_init (QSpyRecord *const me, uint8_t const *start, uint32_t tot_len) |
QSpyStatus | QSpyRecord_OK (QSpyRecord *const me) |
uint32_t | QSpyRecord_getUint32 (QSpyRecord *const me, uint8_t size) |
int32_t | QSpyRecord_getInt32 (QSpyRecord *const me, uint8_t size) |
uint64_t | QSpyRecord_getUint64 (QSpyRecord *const me, uint8_t size) |
int64_t | QSpyRecord_getInt64 (QSpyRecord *const me, uint8_t size) |
char const * | QSpyRecord_getStr (QSpyRecord *const me) |
uint8_t const * | QSpyRecord_getMem (QSpyRecord *const me, uint8_t size, uint32_t *pNum) |
void | QSPY_config (QSpyConfig const *config, QSPY_CustParseFun custParseFun) |
void | QSPY_configTxReset (QSPY_resetFun txResetFun) |
void | QSPY_configMatFile (void *matFile) |
void | QSPY_reset (void) |
void | QSPY_parse (uint8_t const *buf, uint32_t nBytes) |
void | QSPY_txReset (void) |
bool | QSPY_command (uint8_t cmdId, uint8_t opt) |
void | QSPY_sendEvt (QSpyRecord const *const qrec) |
void | QSPY_sendObj (QSpyRecord const *const qrec) |
void | QSPY_sendCmd (QSpyRecord const *const qrec) |
void | QSPY_sendTP (QSpyRecord const *const qrec) |
void | QSPY_showNote (QSpyRecord const *const qrec) |
uint32_t | QSPY_encode (uint8_t *dstBuf, uint32_t dstSize, uint8_t const *srcBuf, uint32_t srcBytes) |
uint32_t | QSPY_encodeResetCmd (uint8_t *dstBuf, uint32_t dstSize) |
uint32_t | QSPY_encodeInfoCmd (uint8_t *dstBuf, uint32_t dstSize) |
uint32_t | QSPY_encodeTickCmd (uint8_t *dstBuf, uint32_t dstSize, uint8_t rate) |
SigType | QSPY_findSig (char const *name, ObjType obj) |
KeyType | QSPY_findObj (char const *name) |
KeyType | QSPY_findFun (char const *name) |
KeyType | QSPY_findUsr (char const *name) |
KeyType | QSPY_findEnum (char const *name, uint8_t group) |
void | QSPY_cleanup (void) |
char const * | QSPY_tstampStr (void) |
void | QSPY_onPrintLn (void) |
void | QSPY_printInfo (void) |
void | QSPY_printError (void) |
QSRreRecGroup | QSPY_getGroup (int recId) |
void | Dictionary_ctor (Dictionary *const me, DictEntry *sto, uint32_t capacity) |
void | Dictionary_config (Dictionary *const me, int keySize) |
char const * | Dictionary_at (Dictionary *const me, unsigned idx) |
void | Dictionary_put (Dictionary *const me, KeyType key, char const *name) |
char const * | Dictionary_get (Dictionary *const me, KeyType key, char *buf) |
int | Dictionary_find (Dictionary *const me, KeyType key) |
KeyType | Dictionary_findKey (Dictionary *const me, char const *name) |
void | Dictionary_reset (Dictionary *const me) |
void | SigDictionary_ctor (SigDictionary *const me, SigDictEntry *sto, uint32_t capacity) |
void | SigDictionary_config (SigDictionary *const me, int ptrSize) |
void | SigDictionary_put (SigDictionary *const me, SigType sig, ObjType obj, char const *name) |
char const * | SigDictionary_get (SigDictionary *const me, SigType sig, ObjType obj, char *buf) |
int | SigDictionary_find (SigDictionary *const me, SigType sig, ObjType obj) |
SigType | SigDictionary_findSig (SigDictionary *const me, char const *name, ObjType obj) |
void | SigDictionary_reset (SigDictionary *const me) |
void | QSPY_resetAllDictionaries (void) |
Variables | |
QSPY_LastOutput | QSPY_output |
char const *const | QSPY_line |
Host API.
Definition in file qspy.h.
#define SNPRINTF_LINE | ( | format_, | |
... ) |
#define SNPRINTF_APPEND | ( | format_, | |
... ) |
#define CONFIG_UPDATE | ( | member_, | |
new_, | |||
diff_ ) |
typedef int(* QSPY_CustParseFun) (QSpyRecord *const me) |
enum QSpyStatus |
anonymous enum |
anonymous enum |
enum QSPY_LastOutputType |
enum QSRreRecGroup |
void QSpyRecord_init | ( | QSpyRecord *const | me, |
uint8_t const * | start, | ||
uint32_t | tot_len ) |
QSpyStatus QSpyRecord_OK | ( | QSpyRecord *const | me | ) |
uint32_t QSpyRecord_getUint32 | ( | QSpyRecord *const | me, |
uint8_t | size ) |
int32_t QSpyRecord_getInt32 | ( | QSpyRecord *const | me, |
uint8_t | size ) |
uint64_t QSpyRecord_getUint64 | ( | QSpyRecord *const | me, |
uint8_t | size ) |
int64_t QSpyRecord_getInt64 | ( | QSpyRecord *const | me, |
uint8_t | size ) |
char const * QSpyRecord_getStr | ( | QSpyRecord *const | me | ) |
uint8_t const * QSpyRecord_getMem | ( | QSpyRecord *const | me, |
uint8_t | size, | ||
uint32_t * | pNum ) |
void QSPY_config | ( | QSpyConfig const * | config, |
QSPY_CustParseFun | custParseFun ) |
void QSPY_configTxReset | ( | QSPY_resetFun | txResetFun | ) |
void QSPY_configMatFile | ( | void * | matFile | ) |
void QSPY_reset | ( | void | ) |
void QSPY_parse | ( | uint8_t const * | buf, |
uint32_t | nBytes ) |
void QSPY_txReset | ( | void | ) |
bool QSPY_command | ( | uint8_t | cmdId, |
uint8_t | opt ) |
void QSPY_sendEvt | ( | QSpyRecord const *const | qrec | ) |
void QSPY_sendObj | ( | QSpyRecord const *const | qrec | ) |
void QSPY_sendCmd | ( | QSpyRecord const *const | qrec | ) |
void QSPY_sendTP | ( | QSpyRecord const *const | qrec | ) |
void QSPY_showNote | ( | QSpyRecord const *const | qrec | ) |
uint32_t QSPY_encode | ( | uint8_t * | dstBuf, |
uint32_t | dstSize, | ||
uint8_t const * | srcBuf, | ||
uint32_t | srcBytes ) |
uint32_t QSPY_encodeResetCmd | ( | uint8_t * | dstBuf, |
uint32_t | dstSize ) |
uint32_t QSPY_encodeInfoCmd | ( | uint8_t * | dstBuf, |
uint32_t | dstSize ) |
uint32_t QSPY_encodeTickCmd | ( | uint8_t * | dstBuf, |
uint32_t | dstSize, | ||
uint8_t | rate ) |
KeyType QSPY_findObj | ( | char const * | name | ) |
KeyType QSPY_findFun | ( | char const * | name | ) |
KeyType QSPY_findUsr | ( | char const * | name | ) |
KeyType QSPY_findEnum | ( | char const * | name, |
uint8_t | group ) |
void QSPY_cleanup | ( | void | ) |
char const * QSPY_tstampStr | ( | void | ) |
void QSPY_onPrintLn | ( | void | ) |
void QSPY_printInfo | ( | void | ) |
void QSPY_printError | ( | void | ) |
QSRreRecGroup QSPY_getGroup | ( | int | recId | ) |
void Dictionary_ctor | ( | Dictionary *const | me, |
DictEntry * | sto, | ||
uint32_t | capacity ) |
void Dictionary_config | ( | Dictionary *const | me, |
int | keySize ) |
char const * Dictionary_at | ( | Dictionary *const | me, |
unsigned | idx ) |
void Dictionary_put | ( | Dictionary *const | me, |
KeyType | key, | ||
char const * | name ) |
char const * Dictionary_get | ( | Dictionary *const | me, |
KeyType | key, | ||
char * | buf ) |
int Dictionary_find | ( | Dictionary *const | me, |
KeyType | key ) |
KeyType Dictionary_findKey | ( | Dictionary *const | me, |
char const * | name ) |
void Dictionary_reset | ( | Dictionary *const | me | ) |
void SigDictionary_ctor | ( | SigDictionary *const | me, |
SigDictEntry * | sto, | ||
uint32_t | capacity ) |
void SigDictionary_config | ( | SigDictionary *const | me, |
int | ptrSize ) |
void SigDictionary_put | ( | SigDictionary *const | me, |
SigType | sig, | ||
ObjType | obj, | ||
char const * | name ) |
char const * SigDictionary_get | ( | SigDictionary *const | me, |
SigType | sig, | ||
ObjType | obj, | ||
char * | buf ) |
int SigDictionary_find | ( | SigDictionary *const | me, |
SigType | sig, | ||
ObjType | obj ) |
SigType SigDictionary_findSig | ( | SigDictionary *const | me, |
char const * | name, | ||
ObjType | obj ) |
void SigDictionary_reset | ( | SigDictionary *const | me | ) |
void QSPY_resetAllDictionaries | ( | void | ) |
|
extern |
|
extern |