/*                                                                           */
/* Content     : version structure for application                           */
/*                                                                           */


#ifndef _MBDR_DSP_TRACE_SW_MODULE_CODE_H__
#define _MBDR_DSP_TRACE_SW_MODULE_CODE_H__


//INCLUDE FILES
//=============
#include  "windef.h"
#include  "mbdr_dsp_common_status.h"
#include  "mbdr_dsp_cyclic_buffer.h"

/* record status header */
extern mbdr_dsp_cyclic_buf_hdr_t mbdr_dsp_trace_sw_module_cyclic_buffer_hdr;

extern void mbdr_dsp_trace_sw_module_init(void);

#define MBDR_DSP_TRACE_SW_MODULE_BUFFER_SIZE 32

extern mbdr_dsp_common_sw_module_code_t mbdr_dsp_trace_sw_module_cyclic_buffer[MBDR_DSP_TRACE_SW_MODULE_BUFFER_SIZE];

extern const mbdr_dsp_common_sw_module_code_t  mbdr_dsp_trace_sw_module_marker;

#define MBDR_DSP_TRACE_SW_MODULE_M\
        mbdr_dsp_trace_sw_module_cyclic_buffer[MBDR_DSP_CYCLIC_BUFFER_GET_WRITE_INDEX_M(&mbdr_dsp_trace_sw_module_cyclic_buffer_hdr)] =\
          mbdr_dsp_common_status[0].sw_module_code;\
		  MBDR_DSP_CYCLIC_BUF_INCREMENT_WRITE_INDEX_M(&mbdr_dsp_trace_sw_module_cyclic_buffer_hdr);\
        mbdr_dsp_trace_sw_module_cyclic_buffer[MBDR_DSP_CYCLIC_BUFFER_GET_WRITE_INDEX_M(&mbdr_dsp_trace_sw_module_cyclic_buffer_hdr)] =\
          mbdr_dsp_trace_sw_module_marker
		  


#endif
