src/fw-logs/fw-log-data.h
Go to the documentation of this file.
1 /* License: Apache 2.0. See LICENSE file in root directory. */
2 /* Copyright(c) 2019 Intel Corporation. All Rights Reserved. */
3 #pragma once
4 #include <stdint.h>
5 #include <string>
6 #include <vector>
7 #include "../types.h" //for rs2_firmware_log_message
8 
9 namespace librealsense
10 {
11  namespace fw_logs
12  {
14  {
15  std::vector<uint8_t> logs_buffer;
17  uint32_t get_timestamp() const;
18  };
19 
21 
22  static const int BINARY_DATA_SIZE = 20;
23 
24  typedef union
25  {
27  struct
28  {
29  uint32_t magic_number : 8;
31  uint32_t thread_id : 3;
32  uint32_t file_id : 11;
33  uint32_t group_id : 5;
34  } bits;
36 
37  typedef union
38  {
40  struct
41  {
42  uint32_t event_id : 16;
43  uint32_t line_id : 12;
44  uint32_t seq_id : 4;
45  } bits;
47 
49  {
52  };
53 
55  {
57  };
58 
60  {
62  };
63 
65  {
71  };
72 
73 
75  {
76  public:
77  fw_log_data(void);
78  ~fw_log_data(void);
79 
91  double _delta;
92 
94 
98 
100  const std::string& get_message() const;
101  const std::string& get_file_name() const;
102  const std::string& get_thread_name() const;
103  uint32_t get_line() const;
104  uint32_t get_timestamp() const;
105  uint32_t get_sequence_id() const;
106  };
107  }
108 }
GLenum GLuint GLenum severity
static const int BINARY_DATA_SIZE
unsigned short uint16_t
Definition: stdint.h:79
GLsizei const GLchar *const * string
unsigned int uint32_t
Definition: stdint.h:80
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const void * bits
Definition: glext.h:6898
unsigned __int64 uint64_t
Definition: stdint.h:90
std::string get_file_name(const std::string &path)
Definition: os.cpp:224
rs2_log_severity fw_logs_severity_to_log_severity(int32_t severity)
signed int int32_t
Definition: stdint.h:77
rs2_log_severity
Severity of the librealsense logger.
Definition: rs_types.h:153


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:15