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

📄 uicc_uicceh.h

📁 MMI层OBJ不能完全编译
💻 H
字号:
/*=============================================================================
 *    Copyright 2001-2002 Texas Instruments Inc. All rights reserved.
 */

#ifndef UICC_UICCEH_HEADER
#define UICC_UICCEH_HEADER

#include "main_system.h"
#include "main_app.h"

/*===========================================================================
Component Description:
*/

/*!  
 * @ Public interface to the USIM event handler, including the raw primitives
 * and the API.
 */


/*===========================================================================
Constants
*/
#define UICC_UICCEH_CONFDATA_SIZE     255
#define UICC_UICCEH_TESTDATA_SIZE     255

/*===========================================================================
 * Types:
 *   These types contain the primitive structure for each primitive owned 
 *   by the UICC
 */

/*===========================================================================
 */
/*!
 * @typedef Uicc_UiccEh_PhyInitReq
 *
 * @discussion
 * <b> Description </b><br>
 *    The <i> InitReq </i> primitive is used to initialize the UICC Physical Layer
 * 
 * @param  None
 * 
 * @result <br>
 *    A <i>  Uicc_UiccEh_PhyInitCnf </i> primitive is sent upon completion.
 */
typedef struct
{
    Puf_PrimHdr               primHdr;
}Uicc_UiccEh_PhyInitReq;

/*===========================================================================
 */
/*!
 * @typedef Uicc_UiccEh_PhyConfigReq
 *
 * @discussion
 * <b> Description </b><br>
 *    The <i> ConfigReq </i> primitive is used to configure the UICC Physical Layer
 * 
 * @param  None
 * 
 * @result <br>
 *    A <i> Uicc_UiccEh_PhyConfigCnf </i> primitive is sent upon completion.
 */
typedef struct
{
    Puf_PrimHdr               primHdr;
    SYS_UWORD16                    protocol;
    SYS_UWORD16                    sclkDiv;
    SYS_UWORD16                    etuPeriod;
    SYS_UWORD16                    cgt;
    SYS_UWORD16                    cwt;
    SYS_UWORD16                    bwtLsb;
    SYS_UWORD16                    bwtMsb;
    SYS_UWORD16                    fiValue;
    SYS_UWORD16                    diValue;
}Uicc_UiccEh_PhyConfigReq;

/*===========================================================================
 */
/*!
 * @typedef Uicc_UiccEh_PhyReadReq
 *
 * @discussion
 * <b> Description </b><br>
 *    The <i> ReadReq </i> primitive is used to read from the UICC Physical Layer
 * 
 * @param  None
 * 
 * @result <br>
 *    A <i> Uicc_UiccEh_PhyReadCnf </i> primitive is sent upon completion.
 */
typedef struct
{
    Puf_PrimHdr               primHdr;
    SYS_UWORD8                     readSize;
}Uicc_UiccEh_PhyReadReq;

/*===========================================================================
 */
/*!
 * @typedef Uicc_UiccEh_PhyWriteReq
 *
 * @discussion
 * <b> Description </b><br>
 *    The <i> WriteReq </i> primitive is used to read from the UICC Physical Layer
 * 
 * @param  None
 * 
 * @result <br>
 *    A <i> Uicc_UiccEh_PhyWriteCnf </i> primitive is sent upon completion.
 */
typedef struct
{
    Puf_PrimHdr               primHdr;
    SYS_UWORD8                     testData[UICC_UICCEH_TESTDATA_SIZE];
}Uicc_UiccEh_PhyWriteReq;

/*===========================================================================
 */
/*!
 * @typedef Uicc_UiccEh_PhyResetReq
 *
 * @discussion
 * <b> Description </b><br>
 *    The <i> ResetReq </i> primitive is used to reset (start an ATR)
 * 
 * @param  None
 * 
 * @result <br>
 *    A <i> Uicc_UiccEh_PhyResetCnf </i> primitive is sent upon completion.
 */
typedef struct
{
    Puf_PrimHdr               primHdr;
 }Uicc_UiccEh_PhyResetReq;

/*===========================================================================
 */
/*!
 * @typedef Uicc_UiccEh_CardInsertInd
 *
 * @discussion
 * <b> Description </b><br>
 *    The <i> ResetReq </i> primitive indicates insertion of a card
 * 
 * @param  None
 * 
 * @result <br>
 *    A <i> Uicc_UiccEh_CardInsertRsp </i> primitive is sent upon completion.
 */
typedef struct
{
    Puf_PrimHdr               primHdr;
}Uicc_UiccEh_CardInsertInd;

/*===========================================================================
 */
/*!
 * @typedef Uicc_UiccEh_CardRemoveInd
 *
 * @discussion
 * <b> Description </b><br>
 *    The <i> ResetReq </i> primitive indicates insertion of a card
 * 
 * @param  None
 * 
 * @result <br>
 *    A <i> Uicc_UiccEh_CardRemoveRsp </i> primitive is sent upon completion.
 */
typedef struct
{
    Puf_PrimHdr               primHdr;
}Uicc_UiccEh_CardRemoveInd;

/*===========================================================================
 */
/*!
 * @typedef Uicc_UiccEh_InitReq
 *
 * @discussion
 * <b> Description </b><br>
 *    The <i> InitReq </i> primitive is used to initialize from the top layer
 * 
 * @param  None
 * 
 * @result <br>
 *    A <i> Uicc_UiccEh_InitCnf </i> primitive is sent upon completion.
 */
typedef struct
{
    Puf_PrimHdr               primHdr;
}Uicc_UiccEh_InitReq;

/*===========================================================================
 */
/*!
 * @typedef Uicc_UiccEh_ResetReq
 *
 * @discussion
 * <b> Description </b><br>
 *    The <i> ResetReq </i> primitive is used to reset from the top layer
 * 
 * @param  None
 * 
 * @result <br>
 *    A <i> Uicc_UiccEh_ResetCnf </i> primitive is sent upon completion.
 */
typedef struct
{
    Puf_PrimHdr               primHdr;
}Uicc_UiccEh_ResetReq;

/*===========================================================================
 */
/*!
 * @typedef Uicc_UiccEh_SendCommandReq
 *
 * @discussion
 * <b> Description </b><br>
 *    The <i> WriteReq </i> primitive is used to read from the UICC Physical Layer
 * 
 * @param  None
 * 
 * @result <br>
 *    A <i> Uicc_UiccEh_SendCommandCnf </i> primitive is sent upon completion.
 */
typedef struct
{
    Puf_PrimHdr               primHdr;
    SYS_UWORD8                     commandCase;
    SYS_UWORD8                     returnFcp;
    SYS_UWORD8                     selectType;
    SYS_UWORD8                     readSize;
    SYS_UWORD8                     writeSize;
    SYS_UWORD8                     confParam1;
    SYS_UWORD8                     confParam2;
    SYS_UWORD8                     commandData[8];
    SYS_UWORD8                     newCommandData[8];
}Uicc_UiccEh_SendCommandReq;


/*===========================================================================
 */
/*!
 * @typedef Uicc_UiccEh_PhyInitCnf
 *
 * @discussion
 * <b> Description </b><br>
 *    The <i> InitReq </i> primitive is used to confirm sucessful init request
 * 
 * @param  None
 * 
 */
typedef struct
{
    Puf_PrimHdr               primHdr;
}Uicc_UiccEh_PhyInitCnf;

/*===========================================================================
 */
/*!
 * @typedef Uicc_UiccEh_PhyConfigCnf
 *
 * @discussion
 * <b> Description </b><br>
 *    The <i> ConfigCnf </i> primitive is used to confirm the configure request
 * 
 * @param  None
 * 
 */
typedef struct
{
    Puf_PrimHdr               primHdr;
}Uicc_UiccEh_PhyConfigCnf;

/*===========================================================================
 */
/*!
 * @typedef Uicc_UiccEh_PhyReadCnf
 *
 * @discussion
 * <b> Description </b><br>
 *    The <i> ReadCnf </i> primitive is used to confirm the read request along
 * with the read data.
 * 
 * @param  None
 * 
 */
typedef struct
{
    Puf_PrimHdr               primHdr;
    SYS_UWORD8                     testData[ UICC_UICCEH_TESTDATA_SIZE ];
}Uicc_UiccEh_PhyReadCnf;

/*===========================================================================
 */
/*!
 * @typedef Uicc_UiccEh_PhyWriteCnf
 *
 * @discussion
 * <b> Description </b><br>
 *    The <i> WriteCnf </i> primitive is used to confirm the write req
 * 
 * @param  None
 * 
 */

typedef struct
{
    Puf_PrimHdr               primHdr;
}Uicc_UiccEh_PhyWriteCnf;

/*===========================================================================
 */
/*!
 * @typedef Uicc_UiccEh_PhyResetCnf
 *
 * @discussion
 * <b> Description </b><br>
 *    The <i> ResetCnf </i> primitive is used to confirm the Reset req
 * 
 * @param  None
 * 
 */

typedef struct
{
    Puf_PrimHdr               primHdr;
}Uicc_UiccEh_PhyResetCnf;

/*===========================================================================
 */
/*!
 * @typedef Uicc_UiccEh_CardInsertRsp
 *
 * @discussion
 * <b> Description </b><br>
 *    The <i> ResetReq </i> primitive indicates insertion of a card
 * 
 * @param  None
 * 
 */
typedef struct
{
    Puf_PrimHdr               primHdr;
}Uicc_UiccEh_CardInsertRsp;

/*===========================================================================
 */
/*!
 * @typedef Uicc_UiccEh_CardRemoveRsp
 *
 * @discussion
 * <b> Description </b><br>
 *    The <i> ResetReq </i> primitive indicates insertion of a card
 * 
 * @param  None
 * 
 */
typedef struct
{
    Puf_PrimHdr               primHdr;
}Uicc_UiccEh_CardRemoveRsp;

/*===========================================================================
 */
/*!
 * @typedef Uicc_UiccEh_InitCnf
 *
 * @discussion
 * <b> Description </b><br>
 *    The <i> InitCnf </i> primitive indicates insertion of a card
 * 
 * @param  None
 * 
 * @result <br>
 *    A <i> Uicc_UiccEh_InitCnf </i> primitive is sent upon completion.
 */
typedef struct
{
    Puf_PrimHdr               primHdr;
}Uicc_UiccEh_InitCnf;

/*===========================================================================
 */
/*!
 * @typedef Uicc_UiccEh_ResetCnf
 *
 * @discussion
 * <b> Description </b><br>
 *    The <i> ResetCnf </i> primitive indicates insertion of a card
 * 
 * @param  None
 * 
 * @result <br>
 *    A <i> Uicc_UiccEh_ResetCnf </i> primitive is sent upon completion.
 */
typedef struct
{
    Puf_PrimHdr               primHdr;
    SYS_UWORD8                     resetData[32];
}Uicc_UiccEh_ResetCnf;

/*===========================================================================
 */
/*!
 * @typedef Uicc_UiccEh_SendCommandCnf
 *
 * @discussion
 * <b> Description </b><br>
 *    The <i> WriteReq </i> primitive is used to read from the UICC Physical Layer
 * 
 * @param  None
 */
typedef struct
{
    Puf_PrimHdr               primHdr;
    SYS_UWORD16                    status;
    SYS_UWORD8                     commandResult[32];
}Uicc_UiccEh_SendCommandCnf;

/*=============================================================================
 *   Function Prototypes
 *=============================================================================*/


/*===========================================================================
 */
/*!
 * @function uicc_UiccEhInit
 * 
 * @discussion
 * <b> Description  </b><br>
 *   This function initializes the UICC event handler
 *
 * <b> Context </b><br>
 *    Should only be called by the task controller of the task containing the
 *    Usim event handler.
 *
 * <b> Global Variables </b><br>
 *  None
 *
 * <b> Returns </b><br>
 *    None.
 * 
 * @param None 
 */
void uicc_UiccEh_ehInit(void);

/*===========================================================================
 */
/*!
 * @function uicc_UiccEh_ehMain
 * 
 * @discussion
 * <b> Description  </b><br>
 *    This function is run every time the UICC receives a primitive. This
 *    function proceses the primitive.
 *
 * <b> Context </b><br>
 *    Should only be called by the task controller of the task containing the
 *    UICC event handler.
 *
 * <b> Returns </b><br>
 *    None.
 * 
 * @param None 
 */
void uicc_UiccEh_ehMain( Puf_PrimHdr *primHdr );


#endif

⌨️ 快捷键说明

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