/space/home/slher/rel/Beken/v6_4_5/macsw/modules/dbg/src/trace.h File Reference

Declaration for trace buffer. More...

#include "rwnx_config.h"
#include "co_int.h"
#include "co_bool.h"
#include "trace_compo.h"

Go to the source code of this file.

Defines

#define TRACE(a,...)
 Macro used to add a unfiltered trace point in the trace buffer.
#define TRACE_BUF(format, size, buf)
 Macro used to add a unfiltered trace containing a dump of a buffer in the trace buffer.
#define TR_32(a)   (uint16_t)((uint32_t)(a) >> 16), (uint16_t)((uint32_t)(a))
 Macro to trace a 32bits parameters.
#define TR_64(a)   TR_32(((uint64_t)(a) >> 32)), TR_32(a)
 Macro to trace a 64bits parameters.
#define TR_PTR(p)   TR_32(p)
 Macro to trace a pointer.
#define TR_MAC(m)   ((uint16_t *)(m))[0], ((uint16_t *)(m))[1], ((uint16_t *)(m))[2]
 Macro to trace a MAC address.
#define TR_IP4(m)   TR_32(*((uint32_t *)m))
 Macro to trace a IPv4 address.
#define TR_IP6(m)
 Macro to trace a IPv6 address.
#define _PTR_ALIGN(p)   ((uint16_t *)((uint32_t)p & ~0x1))
 internal
#define TR_STR_8(s)
 Macro to trace a string.
#define TRACE_FILT(compo, lvl,...)
 Acts like TRACE macro if bit lvl is set in trace level for compo.
#define TRACE_BUF_FILT(compo, lvl,...)
 Acts like TRACE_BUF macro if bit lvl is set in trace level for compo.

Functions

void trace_init (bool force, bool loop)
 Initialize trace buffer.
void trace (uint32_t id, uint16_t nb_param, uint16_t *param, bool trace_buf)
 Add a trace point in the buffer.
void trace_set_filter (unsigned int compo_id, unsigned int level)
 Modify trace level on a given component.

Detailed Description

Declaration for trace buffer.

Copyright (C) RivieraWaves 2011-2019

Definition in file trace.h.


Generated on 14 Jan 2020 for Ceva-RW WLAN FullMAC SW documentation by  doxygen 1.6.1