/*                                                                          */
/* Function    : fill values of SW version                                  */
/*                                                                          */

#include  "windef.h"
#ifndef _MBDR_DSP_SW_VERSION_H__
#define _MBDR_DSP_SW_VERSION_H__

/* official version that was a little abused in laboratory */
#define MBDR_DSP_VERSION_NUMBER_ABUSE_F   (1<<30)

/* version that was not updated to source safe yet */
#define MBDR_DSP_VERSION_NUMBER_BETA_F    (1<<31)

#define MBDR_DSP_VERSION_NUMBER_TO_32BIT_M(	PI_PROJECT_NUMBER,\
											PI_MOST_NUMBER,\
                                           	PI_MIDDLE_NUMBER,\
                                           	PI_LEAST_NUMBER)\
        ( (((PI_LEAST_NUMBER )&0X0FFFF)<< 0)\
		 |(((PI_MIDDLE_NUMBER)&0X000FF)<<16)\
		 |(((PI_MOST_NUMBER  )&0X0000F)<<24)\
		 |(((PI_PROJECT_NUMBER  )&0X0000F)<<28))


typedef struct
{
  LONG number;   /* 0  version number */
  LONG date;     /* 1  version date   */
}mbdr_dsp_sw_version_t;

/* application SW version */
extern mbdr_dsp_sw_version_t mbdr_dsp_application_sw_version;

/* common library sw version */
extern mbdr_dsp_sw_version_t mbdr_dsp_common_lib_sw_version;

#endif
