summaryrefslogtreecommitdiff
path: root/include/dlt/dlt_user_macros.h
diff options
context:
space:
mode:
authorAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2014-06-17 16:23:49 +0200
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2014-09-09 14:50:50 +0200
commitf1442dd3619c6478862b52f6ee022b8799a55bfe (patch)
tree04d28ce1c10c10d003013a950a7047cc342e4c60 /include/dlt/dlt_user_macros.h
parent87936e5249b2c22eefac0acfc21696e209ee6d35 (diff)
downloadDLT-daemon-f1442dd3619c6478862b52f6ee022b8799a55bfe.tar.gz
New macros for Format of Hex and Binary.
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'include/dlt/dlt_user_macros.h')
-rw-r--r--include/dlt/dlt_user_macros.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/dlt/dlt_user_macros.h b/include/dlt/dlt_user_macros.h
index 8a186ae..a8ceaf4 100644
--- a/include/dlt/dlt_user_macros.h
+++ b/include/dlt/dlt_user_macros.h
@@ -294,6 +294,18 @@ extern DltContext CONTEXT;
*/
#define DLT_RAW(BUF,LEN) \
dlt_user_log_write_raw(&log,BUF,LEN)
+#define DLT_HEX8(BUF,LEN) \
+ dlt_user_log_write_raw_formated(&log,BUF,LEN,DLT_FORMAT_HEX8)
+#define DLT_HEX16(BUF,LEN) \
+ dlt_user_log_write_raw_formated(&log,BUF,LEN,DLT_FORMAT_HEX16)
+#define DLT_HEX32(BUF,LEN) \
+ dlt_user_log_write_raw_formated(&log,BUF,LEN,DLT_FORMAT_HEX32)
+#define DLT_HEX64(BUF,LEN) \
+ dlt_user_log_write_raw_formated(&log,BUF,LEN,DLT_FORMAT_HEX64)
+#define DLT_BIN8(BUF,LEN) \
+ dlt_user_log_write_raw_formated(&log,BUF,LEN,DLT_FORMAT_BIN8)
+#define DLT_BIN16(BUF,LEN) \
+ dlt_user_log_write_raw_formated(&log,BUF,LEN,DLT_FORMAT_BIN16)
/**
* Trace network message