/*****************************************************************************
 * Copyright (C) Gemalto M2M GmbH
 *****************************************************************************
 * Project: IMC-RIL-Driver
 *****************************************************************************
 * Author : Wireless Modules RD SW A2
 *****************************************************************************
 * $Workfile: Y:/z_ms-d/src/working/Quinn/RilDrv/rildbgzone.h $
 * $Revision: /main/ms-d/6 $
 *     $Date: 2010-05-07 10:18:37 $
 *   $Author: ctna0256 $
 *****************************************************************************
 * Target:
 *  Microsoft Windows Mobile 5.0
 *****************************************************************************
 * Description:
 *  Gemalto IMC RIL
 *****************************************************************************
 *
 * $Log: Y:/z_ms-d/src/working/Quinn/RilDrv/rildbgzone.h$ 
 * 
 * /main/ms-d/6   2010-05-07 10:18:37   ctna0256 
 * New PPP trace feature needed to find connection problems (IPIS100064425)
 *
 * /main/ms-d/5   2008-08-22 10:26:43   ctna0256
 * Set Cinterion copyright text
 *
 * /main/ms-d/4   2008-08-21 09:35:14   ctna0256
 * Prepared for new disclaimer handling
 *
 * /main/ms-d/3   2008-05-30 13:34:09   ht37010
 * added ZONE_PRT
 *
 * /main/ms-d/2   2008-04-16 16:24:19   mp49210
 * Debug zones for RHA traces
 *
 * /main/ms-d/1   2008-04-03 14:36:12   mp49210
 * Introduction of new debug zones
 *
 *
*/

//////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2008 Gemalto M2M GmbH
// Copyright (C) 2008 Siemens AG
//
// Version: 1.0
// Date:    dummy
//
//////////////////////////////////////////////////////////////////////////////

#pragma once

//////////////////////////////////////////////////////////////////////////////
//
// Debug Zones.
//
//////////////////////////////////////////////////////////////////////////////

// Debug zones used per default, if not configured with registry:
#define DEFAULT_ZONE_ERROR                      1    // Set to 1 for error messages
#define DEFAULT_ZONE_ATCOMMAND                  2    // Set to 2 for AT command log
#define DEFAULT_ZONE_INFO                       4    // Set to 4 for information texts
#define DEFAULT_ZONE_IOCTL                      0    // Set to 8 for IOCL calls
#define DEFAULT_ZONE_NOTIFICATION               0    // Set to 16 for RIL notifications
#define DEFAULT_ZONE_NMEA                       0    // Set to 32 for NMEA data stream
#define DEFAULT_ZONE_RHA                        0    // Set to 64 for RHA calls (expect RHA_IsRadioPwrOn)
#define DEFAULT_ZONE_RHA_POWER                  0    // Set to 128 for RHA_IsRadioPwrOn() calls
#define DEFAULT_ZONE_PORT                       0    // Set to 256 for virtual ports
#define DEFAULT_ZONE_DATA                       0    // Set to 512 for PPP data
// Availabe debug zones:
#define ZONE_ERROR                      1
#define ZONE_ATCOMMAND                  2
#define ZONE_INFO                       4
#define ZONE_IOCTL                      8
#define ZONE_NOTIFICATION               16
#define ZONE_NMEA                       32
#define ZONE_RHA                        64
#define ZONE_RHA_POWER                  128
#define ZONE_PORT                       256
#define ZONE_DATA                       512

#ifdef WANT_RILDRV_NMEA_DEBUG_MESSAGES
#undef DEFAULT_ZONE_NMEA
#define DEFAULT_ZONE_NMEA 32
#endif
#ifdef WANT_RILDRV_RHA_DEBUG_MESSAGES
#undef DEFAULT_ZONE_RHA
#define DEFAULT_ZONE_RHA 64
#endif
#ifdef WANT_RILDRV_ADDITIONAL_DEBUG_MESSAGES
#undef DEFAULT_ZONE_IOCTL
#define DEFAULT_ZONE_IOCTL 8
#undef DEFAULT_ZONE_NOTIFICATION
#define DEFAULT_ZONE_NOTIFICATION 16
#endif

extern DWORD g_dwDebugZones;

#define RILRetailTraceZone(a, printf_exp)         ((void)((a & g_dwDebugZones) ? (RILRetailTrace(printf_exp)), 1 : 0))


