view cdg211/cdginc/p_smreg.h @ 632:d968a3216ba0

new tangomdm build target TCS211/Magnetite built for target leonardo runs just fine on the Tango-based Caramel board, but a more proper tangomdm build target is preferable in order to better market these Tango modems to prospective commercial customers. The only differences are in GPIO and MCSI config: * MCSI is enabled in the tangomdm build config. * GPIO 1 is loudspeaker amplifier control on Leonardo, but on Tango platforms it can be used for anything. On Caramel boards this GPIO should be configured as an output driving high. * GPIO 2 needs to be configured as Calypso input on Leonardo, but on Tango platforms it can be used for anything. On Caramel boards this GPIO should be configured as an output, either high or low is OK.
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 04 Jan 2020 19:27:41 +0000
parents 56abf6cf8a0b
children
line wrap: on
line source

/*
+--------------------------------------------------------------------------+
| PROJECT : PROTOCOL STACK                                                 |
| FILE    : p_smreg.h                                                      |
| SOURCE  : "__out__\g23m_dfile\prim\smreg.pdf"                            |
| LastModified : "2002-04-26"                                              |
| IdAndVersion : "8441.108.99.007"                                         |
| SrcFileTime  : "Mon Jul 26 13:29:38 2004"                                |
| Generated by CCDGEN_2.5.5 on Fri Jun 08 13:59:16 2007                    |
|           !!DO NOT MODIFY!!DO NOT MODIFY!!DO NOT MODIFY!!                |
+--------------------------------------------------------------------------+
*/

/* PRAGMAS
 * PREFIX                 : NONE
 * COMPATIBILITY_DEFINES  : NO (require PREFIX)
 * ALWAYS_ENUM_IN_VAL_FILE: NO
 * ENABLE_GROUP: NO
 * CAPITALIZE_TYPENAME: NO
 */


#ifndef P_SMREG_H
#define P_SMREG_H


#define CDG_ENTER__P_SMREG_H

#define CDG_ENTER__FILENAME _P_SMREG_H
#define CDG_ENTER__P_SMREG_H__FILE_TYPE CDGINC
#define CDG_ENTER__P_SMREG_H__LAST_MODIFIED _2002_04_26
#define CDG_ENTER__P_SMREG_H__ID_AND_VERSION _8441_108_99_007

#define CDG_ENTER__P_SMREG_H__SRC_FILE_TIME _Mon_Jul_26_13_29_38_2004

#include "CDG_ENTER.h"

#undef CDG_ENTER__P_SMREG_H

#undef CDG_ENTER__FILENAME


#include "p_smreg.val"

#ifndef __T_smreg_min_qos__
#define __T_smreg_min_qos__
/*
 * quality of service
 * CCDGEN:WriteStruct_Count==2135
 */
typedef struct
{
  U8                        delay;                    /*<  0:  1> delay class                                        */
  U8                        relclass;                 /*<  1:  1> reliablility class                                 */
  U8                        peak;                     /*<  2:  1> peak throughput                                    */
  U8                        preced;                   /*<  3:  1> precedence class                                   */
  U8                        mean;                     /*<  4:  1> main throughput                                    */
  U8                        _align0;                  /*<  5:  1> alignment                                          */
  U8                        _align1;                  /*<  6:  1> alignment                                          */
  U8                        _align2;                  /*<  7:  1> alignment                                          */
} T_smreg_min_qos;
#endif

/*
 * quality of service
 * CCDGEN:WriteStruct_Count==2136
 */
#ifndef __T_smreg_qos__
#define __T_smreg_qos__
typedef T_smreg_min_qos T_smreg_qos;
#endif
#ifndef __T_pdp_address__
#define __T_pdp_address__
/*
 * PDP address
 * CCDGEN:WriteStruct_Count==2137
 */
typedef struct
{
  U8                        c_buff;                   /*<  0:  1> counter                                            */
  U8                        buff[16];                 /*<  1: 16> buff                                               */
  U8                        _align0;                  /*< 17:  1> alignment                                          */
  U8                        _align1;                  /*< 18:  1> alignment                                          */
  U8                        _align2;                  /*< 19:  1> alignment                                          */
} T_pdp_address;
#endif

#ifndef __T_smreg_apn__
#define __T_smreg_apn__
/*
 * access point name
 * CCDGEN:WriteStruct_Count==2138
 */
typedef struct
{
  U8                        c_buffer;                 /*<  0:  1> counter                                            */
  U8                        buffer[102];              /*<  1:102> Access point name value                            */
  U8                        _align0;                  /*<103:  1> alignment                                          */
} T_smreg_apn;
#endif


/*
 * End of substructure section, begin of primitive definition section
 */

#ifndef __T_SMREG_PDP_ACTIVATE_REQ__
#define __T_SMREG_PDP_ACTIVATE_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==2141
 */
typedef struct
{
  U8                        direc;                    /*<  0:  1> Initiator of the activation                        */
  U8                        ppp_hc;                   /*<  1:  1> header compression of PPP connection               */
  U8                        msid;                     /*<  2:  1> max slot identifier                                */
  U8                        dcomp;                    /*<  3:  1> Data compression used/requested                    */
  U8                        hcomp;                    /*<  4:  1> Header compression used/requested                  */
  U8                        pdp_type;                 /*<  5:  1> PDP type                                           */
  U8                        _align0;                  /*<  6:  1> alignment                                          */
  U8                        _align1;                  /*<  7:  1> alignment                                          */
  T_smreg_qos               smreg_qos;                /*<  8:  8> quality of service                                 */
  T_smreg_min_qos           smreg_min_qos;            /*< 16:  8> quality of service                                 */
  U8                        smreg_nsapi;              /*< 24:  1> network layer service access point identifier      */
  U8                        smreg_ti;                 /*< 25:  1> transaction identifier                             */
  U8                        _align2;                  /*< 26:  1> alignment                                          */
  U8                        _align3;                  /*< 27:  1> alignment                                          */
  T_pdp_address             pdp_address;              /*< 28: 20> PDP address                                        */
  T_smreg_apn               smreg_apn;                /*< 48:104> access point name                                  */
  U32                       dti_linkid;               /*<152:  4> DTI link identifier                                */
  U32                       dti_neighbor;             /*<156:  4> DTI neighbor entity name                           */
  U8                        dti_direction;            /*<160:  1> direction of DTI connection                        */
  U8                        _align4;                  /*<161:  1> alignment                                          */
  U8                        _align5;                  /*<162:  1> alignment                                          */
  U8                        _align6;                  /*<163:  1> alignment                                          */
  T_sdu                     sdu;                      /*<164: ? > Service Data Unit                                  */
} T_SMREG_PDP_ACTIVATE_REQ;
#endif

#ifndef __T_SMREG_PDP_ACTIVATE_CNF__
#define __T_SMREG_PDP_ACTIVATE_CNF__
/*
 * 
 * CCDGEN:WriteStruct_Count==2142
 */
typedef struct
{
  U8                        ppp_hc;                   /*<  0:  1> header compression of PPP connection               */
  U8                        msid;                     /*<  1:  1> max slot identifier                                */
  U8                        dcomp;                    /*<  2:  1> Data compression used/requested                    */
  U8                        hcomp;                    /*<  3:  1> Header compression used/requested                  */
  U8                        pdp_type;                 /*<  4:  1> PDP type                                           */
  U8                        _align0;                  /*<  5:  1> alignment                                          */
  U8                        _align1;                  /*<  6:  1> alignment                                          */
  U8                        _align2;                  /*<  7:  1> alignment                                          */
  T_smreg_qos               smreg_qos;                /*<  8:  8> quality of service                                 */
  U8                        smreg_nsapi;              /*< 16:  1> network layer service access point identifier      */
  U8                        _align3;                  /*< 17:  1> alignment                                          */
  U8                        _align4;                  /*< 18:  1> alignment                                          */
  U8                        _align5;                  /*< 19:  1> alignment                                          */
  T_pdp_address             pdp_address;              /*< 20: 20> PDP address                                        */
  T_sdu                     sdu;                      /*< 40: ? > Service Data Unit                                  */
} T_SMREG_PDP_ACTIVATE_CNF;
#endif

#ifndef __T_SMREG_PDP_ACTIVATE_REJ__
#define __T_SMREG_PDP_ACTIVATE_REJ__
/*
 * 
 * CCDGEN:WriteStruct_Count==2143
 */
typedef struct
{
  U16                       smreg_cause;              /*<  0:  2> cause                                              */
  U8                        smreg_nsapi;              /*<  2:  1> network layer service access point identifier      */
  U8                        _align0;                  /*<  3:  1> alignment                                          */
} T_SMREG_PDP_ACTIVATE_REJ;
#endif

#ifndef __T_SMREG_PDP_ACTIVATE_IND__
#define __T_SMREG_PDP_ACTIVATE_IND__
/*
 * 
 * CCDGEN:WriteStruct_Count==2144
 */
typedef struct
{
  T_smreg_qos               smreg_qos;                /*<  0:  8> quality of service                                 */
  U8                        smreg_ti;                 /*<  8:  1> transaction identifier                             */
  U8                        _align0;                  /*<  9:  1> alignment                                          */
  U8                        _align1;                  /*< 10:  1> alignment                                          */
  U8                        _align2;                  /*< 11:  1> alignment                                          */
  T_smreg_apn               smreg_apn;                /*< 12:104> access point name                                  */
  U8                        pdp_type;                 /*<116:  1> PDP type                                           */
  U8                        _align3;                  /*<117:  1> alignment                                          */
  U8                        _align4;                  /*<118:  1> alignment                                          */
  U8                        _align5;                  /*<119:  1> alignment                                          */
  T_pdp_address             pdp_address;              /*<120: 20> PDP address                                        */
} T_SMREG_PDP_ACTIVATE_IND;
#endif

#ifndef __T_SMREG_PDP_DEACTIVATE_REQ__
#define __T_SMREG_PDP_DEACTIVATE_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==2145
 */
typedef struct
{
  U16                       nsapi_set;                /*<  0:  2> set of network layer service access point identifiers */
  U8                        smreg_local;              /*<  2:  1> is (de)activation local                            */
  U8                        _align0;                  /*<  3:  1> alignment                                          */
} T_SMREG_PDP_DEACTIVATE_REQ;
#endif

#ifndef __T_SMREG_PDP_DEACTIVATE_CNF__
#define __T_SMREG_PDP_DEACTIVATE_CNF__
/*
 * 
 * CCDGEN:WriteStruct_Count==2146
 */
typedef struct
{
  U16                       nsapi_set;                /*<  0:  2> set of network layer service access point identifiers */
  U8                        _align0;                  /*<  2:  1> alignment                                          */
  U8                        _align1;                  /*<  3:  1> alignment                                          */
} T_SMREG_PDP_DEACTIVATE_CNF;
#endif

#ifndef __T_SMREG_PDP_DEACTIVATE_IND__
#define __T_SMREG_PDP_DEACTIVATE_IND__
/*
 * 
 * CCDGEN:WriteStruct_Count==2147
 */
typedef struct
{
  U16                       nsapi_set;                /*<  0:  2> set of network layer service access point identifiers */
  U8                        _align0;                  /*<  2:  1> alignment                                          */
  U8                        _align1;                  /*<  3:  1> alignment                                          */
} T_SMREG_PDP_DEACTIVATE_IND;
#endif

#ifndef __T_SMREG_PDP_MODIFY_IND__
#define __T_SMREG_PDP_MODIFY_IND__
/*
 * 
 * CCDGEN:WriteStruct_Count==2148
 */
typedef struct
{
  T_smreg_qos               smreg_qos;                /*<  0:  8> quality of service                                 */
  U16                       nsapi_set;                /*<  8:  2> set of network layer service access point identifiers */
  U8                        _align0;                  /*< 10:  1> alignment                                          */
  U8                        _align1;                  /*< 11:  1> alignment                                          */
} T_SMREG_PDP_MODIFY_IND;
#endif

#ifndef __T_SMREG_PDP_ACTIVATE_RES__
#define __T_SMREG_PDP_ACTIVATE_RES__
/*
 * 
 * CCDGEN:WriteStruct_Count==2149
 */
typedef struct
{
  U8                        smreg_ti;                 /*<  0:  1> transaction identifier                             */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U16                       smreg_cause;              /*<  2:  2> cause                                              */
} T_SMREG_PDP_ACTIVATE_RES;
#endif


#include "CDG_LEAVE.h"


#endif