20#ifndef H_BLE_LL_TRACE_
21#define H_BLE_LL_TRACE_
23#include "nimble/porting/nimble/include/os/os_trace_api.h"
29#define BLE_LL_TRACE_ID_SCHED 0
30#define BLE_LL_TRACE_ID_RX_START 1
31#define BLE_LL_TRACE_ID_RX_END 2
32#define BLE_LL_TRACE_ID_WFR_EXP 3
33#define BLE_LL_TRACE_ID_CTRL_RX 4
34#define BLE_LL_TRACE_ID_CONN_EV_START 5
35#define BLE_LL_TRACE_ID_CONN_EV_END 6
36#define BLE_LL_TRACE_ID_CONN_END 7
37#define BLE_LL_TRACE_ID_CONN_TX 8
38#define BLE_LL_TRACE_ID_CONN_RX 9
39#define BLE_LL_TRACE_ID_ADV_TXDONE 10
40#define BLE_LL_TRACE_ID_ADV_HALT 11
41#define BLE_LL_TRACE_ID_AUX_REF 12
42#define BLE_LL_TRACE_ID_AUX_UNREF 13
44#if MYNEWT_VAL(BLE_LL_SYSVIEW)
46extern uint32_t ble_ll_trace_off;
48void ble_ll_trace_init(
void);
51ble_ll_trace_u32(
unsigned id, uint32_t p1)
53 os_trace_api_u32(ble_ll_trace_off +
id, p1);
57ble_ll_trace_u32x2(
unsigned id, uint32_t p1, uint32_t p2)
59 os_trace_api_u32x2(ble_ll_trace_off +
id, p1, p2);
63ble_ll_trace_u32x3(
unsigned id, uint32_t p1, uint32_t p2, uint32_t p3)
65 os_trace_api_u32x3(ble_ll_trace_off +
id, p1, p2, p3);
71ble_ll_trace_init(
void)
76ble_ll_trace_u32(
unsigned id, uint32_t p1)
81ble_ll_trace_u32x2(
unsigned id, uint32_t p1, uint32_t p2)
86ble_ll_trace_u32x3(
unsigned id, uint32_t p1, uint32_t p2, uint32_t p3)