⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 custom.h

📁 GSM手机设计软件代码
💻 H
📖 第 1 页 / 共 2 页
字号:
#define TRACE_STATE
#define TC_STATE           8
#else
#undef TRACE_STATE
#endif

#endif /* NEW_FRAME */

/*
 * SIM Application Toolkit
 *
 * Description :  Depending of the general activation of SIM application
 *                Toolkit, specific parts can be activated
 *
 * Options:       #define SAT_CBM_DNL_SUPPORT   Cell Broadcast Data
 *                                              Download shall be supported
 *                #define SAT_SMS_DNL_SUPPORT   SMS Data Download shall
 *                                              be supported
 *                #define SAT_CALL_CTRL_SUPPORT Call Control by SIM shall
 *                                              be supported
 *                #define SAT_CALL_REQ_SUPPORT  Setup Call and Send SS/USSD
 *                                              shall be supported
 */

#ifdef SIM_TOOLKIT
#define SAT_CBM_DNL_SUPPORT
#define SAT_SMS_DNL_SUPPORT
#define SAT_CALL_CTRL_SUPPORT
#define SAT_CALL_REQ_SUPPORT
#endif

/*
 * Engineering Mode
 *
 * Description :  The configuration enables feature flag for engineering mode under WIN32.
 *
 * Options:       #define FF_EM_MODE       engineering mode is supported
 *
 */

#if defined (WIN32)
#define FF_EM_MODE
#endif

/*
 * OPTION_REF
 *
 * Description :  There are two ways defined to communicate
 *                between protocol stack entities. Either by
 *                copying buffers or by exchanging buffer
 *                addresses. This options defines which
 *                way is used.
 *
 * Options:       #define OPTION_REF    communication is
 *                                      carried out by
 *                                      exchanging buffer addresses
 *                #undef  OPTION_REF    communication is
 *                                      carried out by
 *                                      copying buffers
 */

#define OPTION_REF

/*
 * OPTION_LENGTH
 *
 * Description :  If the communication is carried out by
 *                exchanging buffer addresses it is not
 *                necessary to calculate the length of
 *                the buffer. This option suppresses
 *                the calculation of the size parameter
 *                of the sending communication buffer.
 *
 * Options:       #undef  OPTION_LENGTH  size parameter is set
 *                                       to zero.
 *                #define OPTION_LENGTH  size parameter is set
 *                                       to buffer size
 */

#define OPTION_LENGTH

/*
 * OPTION_SET_CONFIG_ONLY
 *
 * Description :  The pei_config () function is used
 *                to set and/or to read dynamic configuration.
 *                The possibility to read a dynamic configuration
 *                is switched off by this configuration.
 *
 * Options:       #define OPTION_SET_CONFIG_ONLY
 *                                       It is not possible to read
 *                                       a dynamic configuration
 *                #undef  OPTION_SET_CONFIG_ONLY
 *                                       It is possible to read
 *                                       a dynamic configuration
 */

#define OPTION_SET_CONFIG_ONLY

/*
 * OPTION_GSM_ONLY
 *
 * Description :  If the environment ensures that only GSM
 *                primitives are forwarded to the protocol
 *                stack entity this option suppresses the
 *                use of the vsi_c_primitive() function.
 *
 * Options:       #define OPTION_GSM_ONLY
 *                                       The environment sends
 *                                       only GSM primitives
 *                #undef  OPTION_GSM_ONLY
 *                                       The environment sends
 *                                       GSM and SYSTEM primitives
 */

#undef OPTION_GSM_ONLY

/*
 * OPTION_TIMEOUT_SYNC
 *
 * Description :  If the environment ensures that the
 *                pei_primitive and pei_timeout function
 *                not called at the same time this option
 *                suppresses the use of the vsi_c_awake()
 *                function. The timeout-handling is started
 *                directly by the pei_timeout() function.
 *
 * Options:       #define OPTION_TIMOUT_SYNC
 *                                       direct timeout-handling
 *                #undef  OPTION_TIMEOUT_SYNC
 *                                       indirect timeout-handling
 *                                       by using vsi_c_awake ()
 */

#undef OPTION_TIMEOUT_SYNC

/*
 * OPTION_SIGNAL
 *
 * Description :  The options defines whether signal processing
 *                in the entity is possible or not.
 *
 * Options:       #define OPTION_SIGNAL
 *                                       Signal processing is possible
 *                #undef  OPTION_SIGNAL
 *                                       Signal processing is not possible
 *
 */

#define OPTION_SIGNAL

/*
 * OPTION_TIMER
 *
 * Description :  The options defines whether timer values are
 *                changeable by dynamic configuration or not.
 *
 * Options:       #define OPTION_TIMER
 *                                       Timer values are changeable
 *                #undef  OPTION_TIMER
 *                                       Timer values are not
 *                                       changeable
 */

#if !defined (NCONFIG)
#define OPTION_TIMER
#else
#undef OPTION_TIMER
#endif

/*
 * OPTION_RELATIVE
 *
 * Description :  If the compiler for the target system
 *                uses relative addressing it is possible
 *                that the offset at run-time must be
 *                added to some jump tables containing only
 *                the offset at compile-time.
 *
 * Options:       #define OPTION_RELATIVE
 *                                       add run-time offset
 *                #undef  OPTION_RELATIVE
 *                                       don't add run-time offset
 */

#undef OPTION_RELATIVE

/*
 * OPTION_MULTI_INSTANCE
 * MAX_INSTANCES
 *
 *
 * Description :  The option is used if multiple instances are
 *                used. The routing information is stored in the
 *                header (T_ROUTE route). The routing information
 *                consists of instance number (inst_no),
 *                channel number (chan_no) and timeslot number
 *                (ts_no). The upper layer uses instance number
 *                for routing, at the interface to physical layer
 *                the channel and timeslot number are used. The
 *                constant MAX_INSTANCES defines the maximum of
 *                instances.
 *
 * Options:       #define OPTION_MULTI_INSTANCE
 *                                       use multi instances
 *                #undef  OPTION_MULTI_INSTANCE
 *                                       only one instance
 */

#undef OPTION_MULTI_INSTANCE
#define MAX_INSTANCES      1

/*==== TYPES ======================================================*/
/*
 * T_PRIM_HEADER
 *
 * Description :  This type definition defines the custom specific
 *                part of a primitive. All primitives have the
 *                general format: header followed by data. The
 *                header of a primitive is changeable according to
 *                the requirements of the target system.
 * Hints:         Only the operation code opc as a USHORT value must
 *                be present. For multi-instance protocol stacks
 *                the routing information must be include in the
 *                header (T_ROUTE route).
 */

#ifdef OPTION_MULTI_INSTANCES

typedef struct
{
  USHORT  inst_no;
  USHORT  chan_no;
  UBYTE   ts_no;
} T_ROUTE;

#endif

#if !defined (T_PRIM_HEADER_DEFINED)

#define T_PRIM_HEADER_DEFINED

#ifdef _TMS470

typedef struct
{
   USHORT opc;         /* equal to int SignalCode */
   USHORT opc2;
   USHORT len;
   USHORT idx;
   T_sdu *sdu;
   UBYTE * Sender;     /* not used                */
   UBYTE * SigP;       /* Pointer to data area    */
} T_PRIM_HEADER;

#else
typedef struct
{
   UBYTE  ps;
   UBYTE  fill;
   UBYTE  snd;
   UBYTE  rcv;
   ULONG  timestamp;
   USHORT len;
   USHORT idx;
   T_sdu *sdu;
   USHORT lng;
#ifdef OPTION_MULTI_INSTANCES
   T_ROUTE route;
#endif
   USHORT opc;
   USHORT opc2;
} T_PRIM_HEADER;

#endif

#endif /* T_PRIM_HEADER_DEFINED */

#endif /* CUSTOM_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -