?? pssi.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 + -