diff options
Diffstat (limited to 'include/dlt')
-rwxr-xr-x | include/dlt/dlt_common.h | 9 | ||||
-rwxr-xr-x | include/dlt/dlt_protocol.h | 1 | ||||
-rw-r--r-- | include/dlt/dlt_user.h | 5 | ||||
-rw-r--r-- | include/dlt/dlt_user_macros.h | 8 |
4 files changed, 23 insertions, 0 deletions
diff --git a/include/dlt/dlt_common.h b/include/dlt/dlt_common.h index d03eca8..a0d48f6 100755 --- a/include/dlt/dlt_common.h +++ b/include/dlt/dlt_common.h @@ -531,6 +531,15 @@ typedef struct } PACKED DltServiceTimezone; /** + * The structure of the DLT Service Marker + */ +typedef struct +{ + uint32_t service_id; /**< service ID */ + uint8_t status; /**< reponse status */ +} PACKED DltServiceMarker; + +/** * Structure to store filter parameters. * ID are maximal four characters. Unused values are filled with zeros. * If every value as filter is valid, the id should be empty by having only zero values. diff --git a/include/dlt/dlt_protocol.h b/include/dlt/dlt_protocol.h index 1bb5850..b4fff5c 100755 --- a/include/dlt/dlt_protocol.h +++ b/include/dlt/dlt_protocol.h @@ -192,6 +192,7 @@ #define DLT_SERVICE_ID_UNREGISTER_CONTEXT 0xf01 /**< Service ID: Message unregister context */
#define DLT_SERVICE_ID_CONNECTION_INFO 0xf02 /**< Service ID: Message connection info */
#define DLT_SERVICE_ID_TIMEZONE 0xf03 /**< Service ID: Timezone */
+#define DLT_SERVICE_ID_MARKER 0xf04 /**< Service ID: Marker */
#define DLT_SERVICE_ID_CALLSW_CINJECTION 0xFFF /**< Service ID: Message Injection (minimal ID) */
/*
diff --git a/include/dlt/dlt_user.h b/include/dlt/dlt_user.h index 1ed7b25..7126b6a 100644 --- a/include/dlt/dlt_user.h +++ b/include/dlt/dlt_user.h @@ -713,6 +713,11 @@ int dlt_log_uint(DltContext *handle,DltLogLevelType loglevel, unsigned int data) */ int dlt_log_raw(DltContext *handle,DltLogLevelType loglevel, void *data,uint16_t length); +/** + * Write marker message to DLT. + * @return negative value if there was an error + */ +int dlt_log_marker(); /** * Forward a complete DLT message to the DLT daemon diff --git a/include/dlt/dlt_user_macros.h b/include/dlt/dlt_user_macros.h index a8ceaf4..484350e 100644 --- a/include/dlt/dlt_user_macros.h +++ b/include/dlt/dlt_user_macros.h @@ -446,6 +446,14 @@ extern DltContext CONTEXT; } while(0) /** + * Send log message with marker. + */ +#define DLT_LOG_MARKER() \ + do { \ + dlt_log_marker(); \ + } while(0) + +/** * Switch to verbose mode * */ |