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

📄 osstruct.h

📁 应用较为广泛的 杉德 刷卡 POS机 的调用示例。
💻 H
📖 第 1 页 / 共 2 页
字号:

typedef struct {
    uint    speed;
    uchar   cfg;
} typ_vit_cfg;

typedef struct {
    uchar   sg_chx_commerce;
    uchar   chx_commerce;       // n. de commerce choisie (multi-commerce)
    uchar   multi_commerce;     // indic si multi-commerce
    uchar   max_commerce;       // nbr max du multi-commerce detecte
    uchar   cpt_commerce[MAX_APPLI+1];  // compteur balayage commerce
    uchar   nbp_commerce[MAX_APPLI+1];  // nbr page data par commerce
} typ_info_multi_commerce;

typedef struct {
    DOWNLOAD_PARAM  para_telec_appli;
    uint            crc;
} typ_sav_para_telec_appli;

/* DATA FOR PARAMETER TRANSMISSION BETWEEN OS SYSTEM AND OS APPLI */
union param1 {
    uchar   in_uchar;
    uint    in_uint;
};

union param2 {
    uchar   in_uchar;
    uint    in_uint;
    uchar * in_pt;
};

typedef struct {
    union param1    FirstParameter;
    union param1    SecondParameter;
    union param2    ThirdParameter;
} OS3P_INPUT_PARAM;

typedef struct {
    uchar   out_uchar;
    uint    out_uint;
    uchar * out_pt;
} OS3P_OUTPUT_PARAM;

typedef struct {
    uchar   NumAppli;
    uchar * pt_data;
} EMV2_EXCHANGE;

// structure for receiving a buffer
typedef struct
{
    uchar   length_to_receive;
    uchar * pt_rxbuf;
    uint    timer;
    uchar   last_rx_status;
    uchar   length_received;
} RX_BUFFER;

// structure for sending a buffer
typedef struct
{
    uchar   length_to_send;
    uchar * pt_txbuf;
    uchar   last_tx_status;
    uchar   length_sent;
} TX_BUFFER;

union var_uti {
    uchar           buffer_4[4];
    uchar           buffer_20[20];
    uchar           buffer_16[16];
    OS_CLE_RNIS     buf_cle;
    SOPT            para__options;
    EMV2_EXCHANGE   emv2__exchange;
    RX_BUFFER       rx_buffer;
    TX_BUFFER       tx_buffer;
};

typedef struct {
    uchar   line;
    uchar   col;
    uchar   font;
    uchar   doubleHeight;
    uchar   text[34];
    uchar   inverted;
} s_graphic;

typedef struct {
    uchar   font;
    uchar   TPE_or_PINPAD;
    uchar   charac_nb;
    uchar   drawing[17];
} NEW_PROP_CHAR;

typedef struct {
    uchar   x;
    uchar   y;
    uchar   repeat;
    uchar   pattern;
} HORIZONTAL;

typedef struct {
    uchar   index;
    uchar   line;
} MENU_ANSWER;

union answertype {
    uchar       var_uc;
    uint        var_ui;
    MENU_ANSWER menuAnswer;
};

typedef struct {
    uchar   registrationStatus; // of the SIM on the GSM network
    uint    operator;           // GSM operator identification number
    uchar   rssi;               // GSM signal quality (in percent)
    uchar   sessionStatus;      // for the current GSM one
    uchar   unreadSms;          // OK if there is an unread SMS
    uchar   dataSpeed;          // selected in the GSM menu
    uchar   dialMode;           // selected in the GSM menu
} s_gsmInfo;

// structure definition for testing all public BIOS functions and variables
// from an application (cf MONOS__TEST_BIOS_FUNCTIONS)
typedef struct {
    uchar           bios_fct_index;
    uchar           bios_entry_point_fct_index;
    // in paramaters
    uchar           first_uchar;
    uchar           second_uchar;
    uint            first_uint;
    uint            second_uint;
    uchar *         first_pt_uchar;
    uchar *         second_pt_uchar;
    uint *          pt_uint;
    void *          pt_void;
    uint xdata *    pt_uint_xdata;
    struct seven *  pt_seven;
    COM_PARAM *     pt_com_param;
    DRIVER *        pt_driver;
    // out parameters
    uchar           uchar_status;
    uint            uint_status;
    uchar xdata *   APPEL_ENTRANT;
    uchar xdata *   ADRDRVSOR;
    void (code* xdata* ADRADTRTI10)(void);
} S_TEST_BIOS;

// bar code structure
typedef struct
{
    uchar   bar_code_type;
    uchar   repeat_number;
    uchar   length;
    uchar   description[48];
} BAR_CODE;

// application description structure for OS (only 5 code pages supported
// for osappli and EMV2 module
typedef struct
{
    uchar   AppliNbr;
    uchar   Version;
    uchar   NbCodePages;
    uchar   NbDataPages;
    ushort  Crc[3];         // of each code page
} OS_INFO_APPLI;

// application description structure for application
typedef struct
{
    uchar   AppliNbr;
    uchar   Version;
    uchar   NbCodePages;
    uchar   NbDataPages;
    ushort  Crc[25];        // of each code page
    uchar   Status[25];     // of each code page
} INFO_APPLI;

// OS description structure
typedef struct
{
    uchar   Status;
    uchar   Version;
    ushort  Crc;
} INFO_OS;

// software description structure
typedef struct
{
    INFO_OS     Os[5];    // 0:BIOS, 1:BIOS EXT, 2: EMV, 3:MONOS, 4:RFU
    INFO_APPLI  Appli[16];
} SOFT_CONFIG;

typedef struct
{
    uchar   phone_nr[OSMODEM_MAXPHONELEN];   // number to call 16 digits followed by 0
    uint    crc;
} OS_MANUAL_DWNLD;

typedef struct
{
    uchar   only_v22;       // '0' or '1'
    uchar   type_modem;     // '0'=RNIS CLE, '1'=internal modem, '2'=external modem
    uchar   external_com;   // '0'=com2 '1'=com3
    uchar   speed;          // 0=1200, 1=2400, 2=4800, 3=9600, 4=14400, 5=19200
    uchar   cle_DTR_type;   // '0'=managed by hardware, '1'=by software (with AT command)
    uchar   dial_duration;  // between 20 and 199 seconds
    uchar   level[3];       // modem level
    uchar   docked_needed;  // 0 or 1
    uchar   eeprom_config;  // b0:BELL 212A, b2:V32BIS, b3:ISDN, b4:busy line detection, b5:RS485 on COM3
} TELECOM_PARAMETERS;


⌨️ 快捷键说明

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