view cdg211/cdginc/p_mnsms.h @ 629:3231dd9b38c1

armio.c: make GPIOs 8 & 13 outputs driving 1 on all "classic" targets Calypso GPIOs 8 & 13 are pinmuxed with MCUEN1 & MCUEN2, respectively, and on powerup these pins are MCUEN, i.e., outputs driving 1. TI's code for C-Sample and earlier turns them into GPIOs configured as outputs also driving 1 - so far, so good - but TI's code for BOARD 41 (which covers D-Sample, Leonardo and all real world Calypso devices derived from the latter) switches them from MCUEN to GPIOs, but then leaves them as inputs. Given that the hardware powerup state of these two pins is outputs driving 1, every Calypso board design MUST be compatible with such driving; typically these GPIO signals will be either unused and unconnected or connected as outputs driving some peripheral. Turning these pins into GPIO inputs will result in floating inputs on every reasonably-wired board, thus I am convinced that this configuration is nothing but a bug on the part of whoever wrote this code at TI. This floating input bug had already been fixed earlier for GTA modem and FCDEV3B targets; the present change makes the fix unconditional for all "classic" targets. The newly affected targets are D-Sample, Leonardo, Tango and GTM900.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 02 Jan 2020 05:38:26 +0000
parents 56abf6cf8a0b
children
line wrap: on
line source

/*
+--------------------------------------------------------------------------+
| PROJECT : PROTOCOL STACK                                                 |
| FILE    : p_mnsms.h                                                      |
| SOURCE  : "__out__\g23m_dfile\prim\mnsms.pdf"                            |
| LastModified : "2002-04-19"                                              |
| IdAndVersion : "6147.103.96.107"                                         |
| SrcFileTime  : "Fri Jan 20 15:37:02 2006"                                |
| Generated by CCDGEN_2.5.5 on Fri Jun 08 13:59:15 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_MNSMS_H
#define P_MNSMS_H


#define CDG_ENTER__P_MNSMS_H

#define CDG_ENTER__FILENAME _P_MNSMS_H
#define CDG_ENTER__P_MNSMS_H__FILE_TYPE CDGINC
#define CDG_ENTER__P_MNSMS_H__LAST_MODIFIED _2002_04_19
#define CDG_ENTER__P_MNSMS_H__ID_AND_VERSION _6147_103_96_107

#define CDG_ENTER__P_MNSMS_H__SRC_FILE_TIME _Fri_Jan_20_15_37_02_2006

#include "CDG_ENTER.h"

#undef CDG_ENTER__P_MNSMS_H

#undef CDG_ENTER__FILENAME


#include "p_mnsms.val"

#include "m_sms.h"

#ifndef __T_sms_sdu__
#define __T_sms_sdu__
/*
 * SIM-PDU
 * CCDGEN:WriteStruct_Count==1542
 */
typedef struct
{
  U16                       l_buf;                    /*<  0:  2> command length                                     */
  U16                       o_buf;                    /*<  2:  2> command offset                                     */
  U8                        buf[SIM_PDU_LEN];         /*<  4:175> command data                                       */
  U8                        _align0;                  /*<179:  1> alignment                                          */
} T_sms_sdu;
#endif


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

#ifndef __T_MNSMS_MESSAGE_IND__
#define __T_MNSMS_MESSAGE_IND__
/*
 * 
 * CCDGEN:WriteStruct_Count==1543
 */
typedef struct
{
  U8                        mem_type;                 /*<  0:  1> memory type                                        */
  U8                        rec_num;                  /*<  1:  1> record number                                      */
  U8                        rec_max;                  /*<  2:  1> maximum number of records (1..255) in EF(SMS) or other memory */
  U8                        status;                   /*<  3:  1> message status                                     */
  T_sms_sdu                 sms_sdu;                  /*<  4:180> SIM-PDU                                            */
} T_MNSMS_MESSAGE_IND;
#endif

#ifndef __T_MNSMS_REPORT_IND__
#define __T_MNSMS_REPORT_IND__
/*
 * 
 * CCDGEN:WriteStruct_Count==1544
 */
typedef struct
{
  U8                        state;                    /*<  0:  1> State of the SMS Entity                            */
  U8                        v_cmms_mode;              /*<  1:  1> valid-flag                                         */
  U8                        cmms_mode;                /*<  2:  1> Specifies the mode for +CMMS                       */
  U8                        _align0;                  /*<  3:  1> alignment                                          */
} T_MNSMS_REPORT_IND;
#endif

#ifndef __T_MNSMS_STATUS_IND__
#define __T_MNSMS_STATUS_IND__
/*
 * 
 * CCDGEN:WriteStruct_Count==1545
 */
typedef struct
{
  T_sms_sdu                 sms_sdu;                  /*<  0:180> SIM-PDU                                            */
} T_MNSMS_STATUS_IND;
#endif

#ifndef __T_MNSMS_DELETE_REQ__
#define __T_MNSMS_DELETE_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==1546
 */
typedef struct
{
  U8                        mem_type;                 /*<  0:  1> memory type                                        */
  U8                        rec_num;                  /*<  1:  1> record number                                      */
  U8                        delete_status;            /*<  2:  1> Delete flag                                        */
  U8                        _align0;                  /*<  3:  1> alignment                                          */
} T_MNSMS_DELETE_REQ;
#endif

#ifndef __T_MNSMS_DELETE_CNF__
#define __T_MNSMS_DELETE_CNF__
/*
 * 
 * CCDGEN:WriteStruct_Count==1547
 */
typedef struct
{
  U8                        mem_type;                 /*<  0:  1> memory type                                        */
  U8                        rec_num;                  /*<  1:  1> record number                                      */
  U16                       cause;                    /*<  2:  2> error code                                         */
  U8                        delete_rec_next;          /*<  4:  1> Next Record to be deleted.                         */
  U8                        _align0;                  /*<  5:  1> alignment                                          */
  U8                        _align1;                  /*<  6:  1> alignment                                          */
  U8                        _align2;                  /*<  7:  1> alignment                                          */
} T_MNSMS_DELETE_CNF;
#endif

#ifndef __T_MNSMS_READ_REQ__
#define __T_MNSMS_READ_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==1548
 */
typedef struct
{
  U8                        mem_type;                 /*<  0:  1> memory type                                        */
  U8                        rec_num;                  /*<  1:  1> record number                                      */
  U8                        read_mode;                /*<  2:  1> Read Mode                                          */
  U8                        status;                   /*<  3:  1> message status                                     */
} T_MNSMS_READ_REQ;
#endif

#ifndef __T_MNSMS_READ_CNF__
#define __T_MNSMS_READ_CNF__
/*
 * 
 * CCDGEN:WriteStruct_Count==1549
 */
typedef struct
{
  U8                        mem_type;                 /*<  0:  1> memory type                                        */
  U8                        rec_num;                  /*<  1:  1> record number                                      */
  U8                        rec_next;                 /*<  2:  1> number of a following record with a valid message, if existent */
  U8                        rec_max;                  /*<  3:  1> maximum number of records (1..255) in EF(SMS) or other memory */
  U16                       cause;                    /*<  4:  2> error code                                         */
  U8                        rec_status;               /*<  6:  1> number of a record in EF(SMSR) related to the given stored message */
  U8                        status;                   /*<  7:  1> message status                                     */
  T_sms_sdu                 sms_sdu;                  /*<  8:180> SIM-PDU                                            */
} T_MNSMS_READ_CNF;
#endif

#ifndef __T_MNSMS_STORE_REQ__
#define __T_MNSMS_STORE_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==1550
 */
typedef struct
{
  U8                        mem_type;                 /*<  0:  1> memory type                                        */
  U8                        rec_num;                  /*<  1:  1> record number                                      */
  U8                        condx;                    /*<  2:  1> write condition                                    */
  U8                        status;                   /*<  3:  1> message status                                     */
  T_sms_sdu                 sms_sdu;                  /*<  4:180> SIM-PDU                                            */
} T_MNSMS_STORE_REQ;
#endif

#ifndef __T_MNSMS_STORE_CNF__
#define __T_MNSMS_STORE_CNF__
/*
 * 
 * CCDGEN:WriteStruct_Count==1551
 */
typedef struct
{
  U8                        mem_type;                 /*<  0:  1> memory type                                        */
  U8                        rec_num;                  /*<  1:  1> record number                                      */
  U16                       cause;                    /*<  2:  2> error code                                         */
} T_MNSMS_STORE_CNF;
#endif

#ifndef __T_MNSMS_SUBMIT_REQ__
#define __T_MNSMS_SUBMIT_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==1552
 */
typedef struct
{
  U8                        mem_type;                 /*<  0:  1> memory type                                        */
  U8                        rec_num;                  /*<  1:  1> record number                                      */
  U8                        condx;                    /*<  2:  1> write condition                                    */
  U8                        modify;                   /*<  3:  1> Modifier                                           */
  T_sms_sdu                 sms_sdu;                  /*<  4:180> SIM-PDU                                            */
} T_MNSMS_SUBMIT_REQ;
#endif

#ifndef __T_MNSMS_SUBMIT_CNF__
#define __T_MNSMS_SUBMIT_CNF__
/*
 * 
 * CCDGEN:WriteStruct_Count==1553
 */
typedef struct
{
  U8                        mem_type;                 /*<  0:  1> memory type                                        */
  U8                        rec_num;                  /*<  1:  1> record number                                      */
  U16                       cause;                    /*<  2:  2> error code                                         */
  U8                        tp_mr;                    /*<  4:  1> TP message reference                               */
  U8                        _align0;                  /*<  5:  1> alignment                                          */
  U8                        _align1;                  /*<  6:  1> alignment                                          */
  U8                        _align2;                  /*<  7:  1> alignment                                          */
  T_sms_sdu                 sms_sdu;                  /*<  8:180> SIM-PDU                                            */
} T_MNSMS_SUBMIT_CNF;
#endif

#ifndef __T_MNSMS_COMMAND_REQ__
#define __T_MNSMS_COMMAND_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==1554
 */
typedef struct
{
  T_sms_sdu                 sms_sdu;                  /*<  0:180> SIM-PDU                                            */
} T_MNSMS_COMMAND_REQ;
#endif

#ifndef __T_MNSMS_COMMAND_CNF__
#define __T_MNSMS_COMMAND_CNF__
/*
 * 
 * CCDGEN:WriteStruct_Count==1555
 */
typedef struct
{
  U16                       cause;                    /*<  0:  2> error code                                         */
  U8                        tp_mr;                    /*<  2:  1> TP message reference                               */
  U8                        _align0;                  /*<  3:  1> alignment                                          */
  T_sms_sdu                 sms_sdu;                  /*<  4:180> SIM-PDU                                            */
} T_MNSMS_COMMAND_CNF;
#endif

#ifndef __T_MNSMS_ACK_RES__
#define __T_MNSMS_ACK_RES__
/*
 * 
 * CCDGEN:WriteStruct_Count==1556
 */
typedef struct
{
  U8                        resp;                     /*<  0:  1> type of response                                   */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
  T_sms_sdu                 sms_sdu;                  /*<  4:180> SIM-PDU                                            */
} T_MNSMS_ACK_RES;
#endif

#ifndef __T_MNSMS_CONFIGURE_REQ__
#define __T_MNSMS_CONFIGURE_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==1557
 */
typedef struct
{
  U8                        pref_mem_3;               /*<  0:  1> memory type                                        */
  U8                        mt;                       /*<  1:  1> mobile terminated message handling                 */
  U8                        ds;                       /*<  2:  1> status report message handling                     */
  U8                        mhc;                      /*<  3:  1> status report message handling                     */
  U8                        v_cmms_mode;              /*<  4:  1> valid-flag                                         */
  U8                        cmms_mode;                /*<  5:  1> Specifies the mode for +CMMS                       */
  U8                        _align0;                  /*<  6:  1> alignment                                          */
  U8                        v_tmms_val;               /*<  7:  1> valid-flag                                         */
  U16                       tmms_val;                 /*<  8:  2> Timer value for +CMMS command                      */
  U8                        _align1;                  /*< 10:  1> alignment                                          */
  U8                        _align2;                  /*< 11:  1> alignment                                          */
} T_MNSMS_CONFIGURE_REQ;
#endif

#ifndef __T_MNSMS_ERROR_IND__
#define __T_MNSMS_ERROR_IND__
/*
 * 
 * CCDGEN:WriteStruct_Count==1558
 */
typedef struct
{
  U16                       cause;                    /*<  0:  2> error code                                         */
  U8                        _align0;                  /*<  2:  1> alignment                                          */
  U8                        _align1;                  /*<  3:  1> alignment                                          */
} T_MNSMS_ERROR_IND;
#endif

#ifndef __T_MNSMS_MO_SERV_REQ__
#define __T_MNSMS_MO_SERV_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==1559
 */
typedef struct
{
  U8                        mo_sms_serv;              /*<  0:  1> MO SMS Service                                     */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
} T_MNSMS_MO_SERV_REQ;
#endif

#ifndef __T_MNSMS_MO_SERV_CNF__
#define __T_MNSMS_MO_SERV_CNF__
/*
 * 
 * CCDGEN:WriteStruct_Count==1560
 */
typedef struct
{
  U8                        mo_sms_serv;              /*<  0:  1> MO SMS Service                                     */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
} T_MNSMS_MO_SERV_CNF;
#endif

#ifndef __T_MNSMS_PAUSE_REQ__
#define __T_MNSMS_PAUSE_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==1561
 */
typedef struct
{
  U8                        dummy;                    /*<  0:  1> no parameters                                      */
} T_MNSMS_PAUSE_REQ;
#endif

#ifndef __T_MNSMS_RESUME_REQ__
#define __T_MNSMS_RESUME_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==1562
 */
typedef struct
{
  U8                        dummy;                    /*<  0:  1> no parameters                                      */
} T_MNSMS_RESUME_REQ;
#endif

#ifndef __T_MNSMS_RESUME_CNF__
#define __T_MNSMS_RESUME_CNF__
/*
 * 
 * CCDGEN:WriteStruct_Count==1563
 */
typedef struct
{
  U16                       cause;                    /*<  0:  2> error code                                         */
  U8                        _align0;                  /*<  2:  1> alignment                                          */
  U8                        _align1;                  /*<  3:  1> alignment                                          */
} T_MNSMS_RESUME_CNF;
#endif

#ifndef __T_MNSMS_QUERY_REQ__
#define __T_MNSMS_QUERY_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==1564
 */
typedef struct
{
  U8                        query_type;               /*<  0:  1> specifies to which status the query request refers to */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
} T_MNSMS_QUERY_REQ;
#endif

#ifndef __T_MNSMS_QUERY_CNF__
#define __T_MNSMS_QUERY_CNF__
/*
 * 
 * CCDGEN:WriteStruct_Count==1565
 */
typedef struct
{
  U8                        query_type;               /*<  0:  1> specifies to which status the query request refers to */
  U8                        v_deliver_status;         /*<  1:  1> valid-flag                                         */
  U8                        deliver_status;           /*<  2:  1> sms delivery status - pause or resume              */
  U8                        _align0;                  /*<  3:  1> alignment                                          */
} T_MNSMS_QUERY_CNF;
#endif

#ifndef __T_MNSMS_OTA_DECODE_IND__
#define __T_MNSMS_OTA_DECODE_IND__
/*
 * 
 * CCDGEN:WriteStruct_Count==1566
 */
typedef struct
{
  T_tp_ud                   tp_ud;                    /*<  0:164> TP User Data (type defined in "m_sms.h")           */
} T_MNSMS_OTA_DECODE_IND;
#endif

#ifndef __T_MNSMS_OTA_DECODE_RES__
#define __T_MNSMS_OTA_DECODE_RES__
/*
 * 
 * CCDGEN:WriteStruct_Count==1567
 */
typedef struct
{
  U8                        ota_status;               /*<  0:  1> Indicates the pesonalization status                */
  U8                        imei[16];                 /*<  1: 16> IMEI of the mobile to be extracted from TP user data */
  U8                        _align0;                  /*< 17:  1> alignment                                          */
  U8                        _align1;                  /*< 18:  1> alignment                                          */
  U8                        _align2;                  /*< 19:  1> alignment                                          */
} T_MNSMS_OTA_DECODE_RES;
#endif


#include "CDG_LEAVE.h"


#endif