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

📄 pssi.h

📁 SIM卡的驱动程序,有利于开发一些与SIM相通的一些工具,或者手机软件SIM驱动的开发
💻 H
字号:

///////////////////////////////////////////////////////////////////////////////
//
//   ROCKWELL SEMICONDUCTOR SYSTEMS - WIRELESS COMMUNICATIONS DIVISION
//
///////////////////////////////////////////////////////////////////////////////
//
//  File:   si\pssi.h
//
//  $Log:   W:\UC\Ph2Sw\Rockwell\base\Ps\generic\archives\Pssi.h_v  $ dmk 
//   
//      Rev 1.1   01 Oct 1998 11:36:58   LIG
//   Project: UC SCRs ( GSM )
//   SCR 36 - PH2 - SIM driver supporting  3v SIM card
//   
//   
//      Rev 1.0   31 Aug 1998 09:40:32   dangmk
//   Initial Checkin
///////////////////////////////////////////////////////////////////////////////
//
//   ROCKWELL CONFIDENTIAL AND PROPRIETARY
//
//   This source is the sole property of Rockwell International.  Reproduction
//   or utilization of this source in whole or in part is forbidden without
//   the written consent of Rockwell International.
//
//   (c) Copyright Rockwell International, 1997.  All Rights Reserved.
//
///////////////////////////////////////////////////////////////////////////////

#ifndef PSGENERIC_PSSI_H
#define PSGENERIC_PSSI_H

/*--------------------------- Global Defines: ----------------------------*/

/* Direction codes for PSDoCommand */

#define PS_READ  0     /* Data transferred from SIM to Host */
#define PS_WRITE 1     /* Data transferred from Host to SIM */

/*--------------------------- Global Typedefs: ---------------------------*/

/* PS_COMMAND buffer structure used to hold details of a SIM Command */

typedef struct
   {
   UINT8 INS;
   UINT8 P1;
   UINT8 P2;
   UINT8 P3;
   } PS_COMMAND;

/* PS_STATUS buffer structure used to store result status from SIM */

typedef struct
   {
   UINT8 SW1;
   UINT8 SW2;
   } PS_STATUS;

/* PS_STATE enumeration tp indicate the state of the SIM interface */

typedef enum
   {
   PSNoMess,    /* Special for the SIM driver.  Implies no message to send */
   PSSIM,       /* SIM present, no physical problems detected */
   PSNoSIM,     /* No SIM present */
   PSDefectSIM  /* SIM present, physical communication problems detected */
   } PS_STATE;

/*-------------------- Global Buffers for Comunication -------------------*/

extern PS_COMMAND PSCommandBuffer;
extern PS_STATUS  PSStatusBuffer;
extern UINT8      *PSDataBuffer;

/*----------------------- Global Function Prototypes: --------------------*/

void PSDoCommand(INT16 Direction);
void PSDoReset(void);
void PSDoStartUp(void);
void PSDoShutDown(void);
void PSStopClock(UINT8 DirChar);
void PSDoNoSIM( void );

void DEF(PSSIInd)(PS_STATE *SIMState);

/*------------------------------------------------------------------------*/
#endif

⌨️ 快捷键说明

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