Go to the documentation of this file.
30 #define CSR_LOG_LEVEL_ENVIRONMENT_OFF ((CsrLogLevelEnvironment) 0x00000000)
31 #define CSR_LOG_LEVEL_ENVIRONMENT_BCI_ACL ((CsrLogLevelEnvironment) 0x00000001)
32 #define CSR_LOG_LEVEL_ENVIRONMENT_BCI_HCI ((CsrLogLevelEnvironment) 0x00000002)
33 #define CSR_LOG_LEVEL_ENVIRONMENT_BCI_SCO ((CsrLogLevelEnvironment) 0x00000004)
34 #define CSR_LOG_LEVEL_ENVIRONMENT_BCI_VENDOR ((CsrLogLevelEnvironment) 0x00000008)
35 #define CSR_LOG_LEVEL_ENVIRONMENT_TRANSPORTS ((CsrLogLevelEnvironment) 0x00000010)
36 #define CSR_LOG_LEVEL_ENVIRONMENT_BGINT_REG ((CsrLogLevelEnvironment) 0x00000020)
37 #define CSR_LOG_LEVEL_ENVIRONMENT_BGINT_UNREG ((CsrLogLevelEnvironment) 0x00000040)
38 #define CSR_LOG_LEVEL_ENVIRONMENT_BGINT_SET ((CsrLogLevelEnvironment) 0x00000080)
39 #define CSR_LOG_LEVEL_ENVIRONMENT_BGINT_START ((CsrLogLevelEnvironment) 0x00000100)
40 #define CSR_LOG_LEVEL_ENVIRONMENT_BGINT_DONE ((CsrLogLevelEnvironment) 0x00000200)
41 #define CSR_LOG_LEVEL_ENVIRONMENT_PROTO ((CsrLogLevelEnvironment) 0x00000400)
42 #define CSR_LOG_LEVEL_ENVIRONMENT_PROTO_LOC ((CsrLogLevelEnvironment) 0x00000800)
44 #define CSR_LOG_LEVEL_ENVIRONMENT_ALL ((CsrLogLevelEnvironment) 0xFFFFFFFF)
50 #define CSR_LOG_LEVEL_TASK_OFF ((CsrLogLevelTask) 0x00000000)
51 #define CSR_LOG_LEVEL_TASK_TEXT ((CsrLogLevelTask) 0x00000001)
52 #define CSR_LOG_LEVEL_TASK_TEXT_LOC ((CsrLogLevelTask) 0x00000002)
53 #define CSR_LOG_LEVEL_TASK_STATE ((CsrLogLevelTask) 0x00000004)
54 #define CSR_LOG_LEVEL_TASK_STATE_NAME ((CsrLogLevelTask) 0x00000008)
55 #define CSR_LOG_LEVEL_TASK_STATE_LOC ((CsrLogLevelTask) 0x00000010)
56 #define CSR_LOG_LEVEL_TASK_TASK_SWITCH ((CsrLogLevelTask) 0x00000020)
57 #define CSR_LOG_LEVEL_TASK_MESSAGE_PUT ((CsrLogLevelTask) 0x00000080)
58 #define CSR_LOG_LEVEL_TASK_MESSAGE_PUT_LOC ((CsrLogLevelTask) 0x00000100)
59 #define CSR_LOG_LEVEL_TASK_MESSAGE_GET ((CsrLogLevelTask) 0x00000200)
60 #define CSR_LOG_LEVEL_TASK_MESSAGE_QUEUE_PUSH ((CsrLogLevelTask) 0x00000400)
61 #define CSR_LOG_LEVEL_TASK_MESSAGE_QUEUE_POP ((CsrLogLevelTask) 0x00000800)
62 #define CSR_LOG_LEVEL_TASK_PRIM_ONLY_TYPE ((CsrLogLevelTask) 0x00001000)
63 #define CSR_LOG_LEVEL_TASK_PRIM_APPLY_LIMIT ((CsrLogLevelTask) 0x00002000)
64 #define CSR_LOG_LEVEL_TASK_TIMER_IN ((CsrLogLevelTask) 0x00004000)
65 #define CSR_LOG_LEVEL_TASK_TIMER_IN_LOC ((CsrLogLevelTask) 0x00008000)
66 #define CSR_LOG_LEVEL_TASK_TIMER_CANCEL ((CsrLogLevelTask) 0x00010000)
67 #define CSR_LOG_LEVEL_TASK_TIMER_CANCEL_LOC ((CsrLogLevelTask) 0x00020000)
68 #define CSR_LOG_LEVEL_TASK_TIMER_FIRE ((CsrLogLevelTask) 0x00040000)
69 #define CSR_LOG_LEVEL_TASK_TIMER_DONE ((CsrLogLevelTask) 0x00080000)
71 #define CSR_LOG_LEVEL_TASK_ALL ((CsrLogLevelTask) 0xFFFFFFFF & ~(CSR_LOG_LEVEL_TASK_PRIM_ONLY_TYPE | CSR_LOG_LEVEL_TASK_PRIM_APPLY_LIMIT))
80 #define CSR_LOG_STRINGIFY_REAL(a) #a
81 #define CSR_LOG_STRINGIFY(a) CSR_LOG_STRINGIFY_REAL(a)
83 #ifdef CSR_LOG_ASSERT_ENABLE
84 #define CSR_LOG_ASSERT(cond) \
88 char *panic_arg = "[" __FILE__ ":" CSR_LOG_STRINGIFY(__LINE__) "] - " CSR_LOG_STRINGIFY(cond); \
89 CsrPanic(CSR_TECH_FW, CSR_PANIC_FW_ASSERTION_FAIL, panic_arg); \
93 #define CSR_LOG_ASSERT(cond)
117 #ifdef CSR_LOG_ENABLE
118 #ifdef CSR_LOG_INCLUDE_FILE_NAME_AND_LINE_NUMBER
120 #define CSR_LOG_TEXT(text) \
122 if (!CsrLogTaskIsFiltered(CsrSchedTaskQueueGet(), CSR_LOG_LEVEL_TASK_TEXT)) \
124 CsrLogTaskText(text, __LINE__, __FILE__); \
129 #define CSR_LOG_TEXT(text) \
131 if (!CsrLogTaskIsFiltered(CsrSchedTaskQueueGet(), CSR_LOG_LEVEL_TASK_TEXT)) \
133 CsrLogTaskText(text, 0, NULL); \
138 #define CSR_LOG_TEXT(text)
146 #define CSR_LOG_STATE_TRANSITION_MASK_FSM_NAME (0x001)
147 #define CSR_LOG_STATE_TRANSITION_MASK_NEXT_STATE (0x002)
148 #define CSR_LOG_STATE_TRANSITION_MASK_NEXT_STATE_STR (0x004)
149 #define CSR_LOG_STATE_TRANSITION_MASK_PREV_STATE (0x008)
150 #define CSR_LOG_STATE_TRANSITION_MASK_PREV_STATE_STR (0x010)
151 #define CSR_LOG_STATE_TRANSITION_MASK_EVENT (0x020)
152 #define CSR_LOG_STATE_TRANSITION_MASK_EVENT_STR (0x040)
157 const char *fsm_name,
159 const char *prev_state_str,
161 const char *in_event_str,
163 const char *next_state_str,
182 #define SYNERGY_SERIALIZER_TYPE_DUMP (0x000)
183 #define SYNERGY_SERIALIZER_TYPE_SER (0x001)