@@ -313,6 +313,21 @@ DltReturnValue dlt_user_log_write_finish(DltContextData *log);
313
313
*/
314
314
DltReturnValue dlt_user_log_write_bool (DltContextData * log , uint8_t data );
315
315
316
+ /**
317
+ * Write a boolean parameter with "name" attribute into a DLT log message.
318
+ * dlt_user_log_write_start has to be called before adding any parameters to the log message.
319
+ * Finish building a log message by calling dlt_user_log_write_finish.
320
+ *
321
+ * If @a name is NULL, this function will add an attribute field with length 0
322
+ * and no content to the message.
323
+ *
324
+ * @param log pointer to an object containing information about logging context data
325
+ * @param data boolean parameter written into log message (mapped to uint8)
326
+ * @param name the "name" attribute (or NULL)
327
+ * @return value from DltReturnValue enum
328
+ */
329
+ DltReturnValue dlt_user_log_write_bool_attr (DltContextData * log , uint8_t data , const char * name );
330
+
316
331
/**
317
332
* Write a float parameter into a DLT log message.
318
333
* dlt_user_log_write_start has to be called before adding any attributes to the log message.
@@ -333,6 +348,38 @@ DltReturnValue dlt_user_log_write_float32(DltContextData *log, float32_t data);
333
348
*/
334
349
DltReturnValue dlt_user_log_write_float64 (DltContextData * log , double data );
335
350
351
+ /**
352
+ * Write a float parameter with attributes into a DLT log message.
353
+ * dlt_user_log_write_start has to be called before adding any parameters to the log message.
354
+ * Finish building a log message by calling dlt_user_log_write_finish.
355
+ *
356
+ * If @a name or @a unit is NULL, this function will add a corresponding attribute field with length 0
357
+ * and no content to the message for that attribute.
358
+ *
359
+ * @param log pointer to an object containing information about logging context data
360
+ * @param data float32_t parameter written into log message
361
+ * @param name the "name" attribute (or NULL)
362
+ * @param unit the "unit" attribute (or NULL)
363
+ * @return value from DltReturnValue enum
364
+ */
365
+ DltReturnValue dlt_user_log_write_float32_attr (DltContextData * log , float32_t data , const char * name , const char * unit );
366
+
367
+ /**
368
+ * Write a double parameter with attributes into a DLT log message.
369
+ * dlt_user_log_write_start has to be called before adding any parameters to the log message.
370
+ * Finish building a log message by calling dlt_user_log_write_finish.
371
+ *
372
+ * If @a name or @a unit is NULL, this function will add a corresponding attribute field with length 0
373
+ * and no content to the message for that attribute.
374
+ *
375
+ * @param log pointer to an object containing information about logging context data
376
+ * @param data float64_t parameter written into log message
377
+ * @param name the "name" attribute (or NULL)
378
+ * @param unit the "unit" attribute (or NULL)
379
+ * @return value from DltReturnValue enum
380
+ */
381
+ DltReturnValue dlt_user_log_write_float64_attr (DltContextData * log , float64_t data , const char * name , const char * unit );
382
+
336
383
/**
337
384
* Write a uint parameter into a DLT log message.
338
385
* dlt_user_log_write_start has to be called before adding any attributes to the log message.
@@ -347,6 +394,26 @@ DltReturnValue dlt_user_log_write_uint16(DltContextData *log, uint16_t data);
347
394
DltReturnValue dlt_user_log_write_uint32 (DltContextData * log , uint32_t data );
348
395
DltReturnValue dlt_user_log_write_uint64 (DltContextData * log , uint64_t data );
349
396
397
+ /**
398
+ * Write a uint parameter with attributes into a DLT log message.
399
+ * dlt_user_log_write_start has to be called before adding any parameters to the log message.
400
+ * Finish building a log message by calling dlt_user_log_write_finish.
401
+ *
402
+ * If @a name or @a unit is NULL, this function will add a corresponding attribute field with length 0
403
+ * and no content to the message for that attribute.
404
+ *
405
+ * @param log pointer to an object containing information about logging context data
406
+ * @param data unsigned int parameter written into log message
407
+ * @param name the "name" attribute (or NULL)
408
+ * @param unit the "unit" attribute (or NULL)
409
+ * @return value from DltReturnValue enum
410
+ */
411
+ DltReturnValue dlt_user_log_write_uint_attr (DltContextData * log , unsigned int data , const char * name , const char * unit );
412
+ DltReturnValue dlt_user_log_write_uint8_attr (DltContextData * log , uint8_t data , const char * name , const char * unit );
413
+ DltReturnValue dlt_user_log_write_uint16_attr (DltContextData * log , uint16_t data , const char * name , const char * unit );
414
+ DltReturnValue dlt_user_log_write_uint32_attr (DltContextData * log , uint32_t data , const char * name , const char * unit );
415
+ DltReturnValue dlt_user_log_write_uint64_attr (DltContextData * log , uint64_t data , const char * name , const char * unit );
416
+
350
417
/**
351
418
* Write a uint parameter into a DLT log message. The output will be formatted as given by the parameter type.
352
419
* dlt_user_log_write_start has to be called before adding any attributes to the log message.
@@ -384,6 +451,27 @@ DltReturnValue dlt_user_log_write_int8(DltContextData *log, int8_t data);
384
451
DltReturnValue dlt_user_log_write_int16 (DltContextData * log , int16_t data );
385
452
DltReturnValue dlt_user_log_write_int32 (DltContextData * log , int32_t data );
386
453
DltReturnValue dlt_user_log_write_int64 (DltContextData * log , int64_t data );
454
+
455
+ /**
456
+ * Write an int parameter with attributes into a DLT log message.
457
+ * dlt_user_log_write_start has to be called before adding any parameters to the log message.
458
+ * Finish building a log message by calling dlt_user_log_write_finish.
459
+ *
460
+ * If @a name or @a unit is NULL, this function will add a corresponding attribute field with length 0
461
+ * and no content to the message for that attribute.
462
+ *
463
+ * @param log pointer to an object containing information about logging context data
464
+ * @param data int parameter written into log message
465
+ * @param name the "name" attribute (or NULL)
466
+ * @param unit the "unit" attribute (or NULL)
467
+ * @return value from DltReturnValue enum
468
+ */
469
+ DltReturnValue dlt_user_log_write_int_attr (DltContextData * log , int data , const char * name , const char * unit );
470
+ DltReturnValue dlt_user_log_write_int8_attr (DltContextData * log , int8_t data , const char * name , const char * unit );
471
+ DltReturnValue dlt_user_log_write_int16_attr (DltContextData * log , int16_t data , const char * name , const char * unit );
472
+ DltReturnValue dlt_user_log_write_int32_attr (DltContextData * log , int32_t data , const char * name , const char * unit );
473
+ DltReturnValue dlt_user_log_write_int64_attr (DltContextData * log , int64_t data , const char * name , const char * unit );
474
+
387
475
/**
388
476
* Write a null terminated ASCII string into a DLT log message.
389
477
* dlt_user_log_write_start has to be called before adding any attributes to the log message.
@@ -449,6 +537,101 @@ DltReturnValue dlt_user_log_write_utf8_string(DltContextData *log, const char *t
449
537
*/
450
538
DltReturnValue dlt_user_log_write_sized_utf8_string (DltContextData * log , const char * text , uint16_t length );
451
539
540
+ /**
541
+ * Write a null-terminated ASCII string with "name" attribute into a DLT log message.
542
+ * dlt_user_log_write_start has to be called before adding any parameters to the log message.
543
+ * Finish building a log message by calling dlt_user_log_write_finish.
544
+ *
545
+ * If @a name is NULL, this function will add an attribute field with length 0
546
+ * and no content to the message.
547
+ *
548
+ * @param log pointer to an object containing information about logging context data
549
+ * @param text pointer to the parameter written into log message containing null termination
550
+ * @param name the "name" attribute (or NULL)
551
+ * @return value from DltReturnValue enum
552
+ */
553
+ DltReturnValue dlt_user_log_write_string_attr (DltContextData * log , const char * text , const char * name );
554
+
555
+ /**
556
+ * Write a potentially non-null-terminated ASCII string with "name" attribute into a DLT log message.
557
+ * dlt_user_log_write_start has to be called before adding any parameters to the log message.
558
+ * Finish building a log message by calling dlt_user_log_write_finish.
559
+ *
560
+ * If @a name is NULL, this function will add an attribute field with length 0
561
+ * and no content to the message.
562
+ *
563
+ * @param log pointer to an object containing information about logging context data
564
+ * @param text pointer to the parameter written into log message
565
+ * @param length length in bytes of @a text (without any termination character)
566
+ * @param name the "name" attribute (or NULL)
567
+ * @return value from DltReturnValue enum
568
+ */
569
+ DltReturnValue dlt_user_log_write_sized_string_attr (DltContextData * log , const char * text , uint16_t length , const char * name );
570
+
571
+ /**
572
+ * Write a constant, null-terminated ASCII string with "name" attribute into a DLT log message.
573
+ * In non-verbose mode, this parameter will not be sent at all.
574
+ * dlt_user_log_write_start has to be called before adding any parameters to the log message.
575
+ * Finish building a log message by calling dlt_user_log_write_finish.
576
+ *
577
+ * If @a name is NULL, this function will add an attribute field with length 0
578
+ * and no content to the message.
579
+ *
580
+ * @param log pointer to an object containing information about logging context data
581
+ * @param text pointer to the parameter written into log message containing null termination
582
+ * @param name the "name" attribute (or NULL)
583
+ * @return value from DltReturnValue enum
584
+ */
585
+ DltReturnValue dlt_user_log_write_constant_string_attr (DltContextData * log , const char * text , const char * name );
586
+
587
+ /**
588
+ * Write a constant, potentially non-null-terminated ASCII string with "name" attribute into a DLT log message.
589
+ * In non-verbose mode, this parameter will not be sent at all.
590
+ * dlt_user_log_write_start has to be called before adding any parameters to the log message.
591
+ * Finish building a log message by calling dlt_user_log_write_finish.
592
+ *
593
+ * If @a name is NULL, this function will add an attribute field with length 0
594
+ * and no content to the message.
595
+ *
596
+ * @param log pointer to an object containing information about logging context data
597
+ * @param text pointer to the parameter written into log message containing null termination
598
+ * @param length length in bytes of @a text (without any termination character)
599
+ * @param name the "name" attribute (or NULL)
600
+ * @return value from DltReturnValue enum
601
+ */
602
+ DltReturnValue dlt_user_log_write_sized_constant_string_attr (DltContextData * log , const char * text , uint16_t length , const char * name );
603
+
604
+ /**
605
+ * Write a null-terminated UTF-8 string with "name" attribute into a DLT log message.
606
+ * dlt_user_log_write_start has to be called before adding any parameters to the log message.
607
+ * Finish building a log message by calling dlt_user_log_write_finish.
608
+ *
609
+ * If @a name is NULL, this function will add an attribute field with length 0
610
+ * and no content to the message.
611
+ *
612
+ * @param log pointer to an object containing information about logging context data
613
+ * @param text pointer to the parameter written into log message containing null termination
614
+ * @param name the "name" attribute (or NULL)
615
+ * @return value from DltReturnValue enum
616
+ */
617
+ DltReturnValue dlt_user_log_write_utf8_string_attr (DltContextData * log , const char * text , const char * name );
618
+
619
+ /**
620
+ * Write a potentially non-null-terminated UTF-8 string with "name" attribute into a DLT log message.
621
+ * dlt_user_log_write_start has to be called before adding any parameters to the log message.
622
+ * Finish building a log message by calling dlt_user_log_write_finish.
623
+ *
624
+ * If @a name is NULL, this function will add an attribute field with length 0
625
+ * and no content to the message.
626
+ *
627
+ * @param log pointer to an object containing information about logging context data
628
+ * @param text pointer to the parameter written into log message
629
+ * @param length length in bytes of @a text (without any termination character)
630
+ * @param name the "name" attribute (or NULL)
631
+ * @return value from DltReturnValue enum
632
+ */
633
+ DltReturnValue dlt_user_log_write_sized_utf8_string_attr (DltContextData * log , const char * text , uint16_t length , const char * name );
634
+
452
635
/**
453
636
* Write a binary memory block into a DLT log message.
454
637
* dlt_user_log_write_start has to be called before adding any attributes to the log message.
@@ -472,6 +655,39 @@ DltReturnValue dlt_user_log_write_raw(DltContextData *log, void *data, uint16_t
472
655
*/
473
656
DltReturnValue dlt_user_log_write_raw_formatted (DltContextData * log , void * data , uint16_t length , DltFormatType type );
474
657
658
+ /**
659
+ * Write a binary memory block with "name" attribute into a DLT log message.
660
+ * dlt_user_log_write_start has to be called before adding any parameters to the log message.
661
+ * Finish building a log message by calling dlt_user_log_write_finish.
662
+ *
663
+ * If @a name is NULL, this function will add an attribute field with length 0
664
+ * and no content to the message.
665
+ *
666
+ * @param log pointer to an object containing information about logging context data
667
+ * @param data pointer to the parameter written into log message.
668
+ * @param length length in bytes of the parameter written into log message
669
+ * @param name the "name" attribute (or NULL)
670
+ * @return value from DltReturnValue enum
671
+ */
672
+ DltReturnValue dlt_user_log_write_raw_attr (DltContextData * log , const void * data , uint16_t length , const char * name );
673
+
674
+ /**
675
+ * Write a binary memory block with "name" attribute into a DLT log message.
676
+ * dlt_user_log_write_start has to be called before adding any parameters to the log message.
677
+ * Finish building a log message by calling dlt_user_log_write_finish.
678
+ *
679
+ * If @a name is NULL, this function will add an attribute field with length 0
680
+ * and no content to the message.
681
+ *
682
+ * @param log pointer to an object containing information about logging context data
683
+ * @param data pointer to the parameter written into log message.
684
+ * @param length length in bytes of the parameter written into log message
685
+ * @param type the format information
686
+ * @param name the "name" attribute (or NULL)
687
+ * @return value from DltReturnValue enum
688
+ */
689
+ DltReturnValue dlt_user_log_write_raw_formatted_attr (DltContextData * log , const void * data , uint16_t length , DltFormatType type , const char * name );
690
+
475
691
/**
476
692
* Trace network message
477
693
* @param handle pointer to an object containing information about one special logging context
0 commit comments