osdown.h

来自「应用较为广泛的 杉德 刷卡 POS机 的调用示例。」· C头文件 代码 · 共 58 行

H
58
字号
/*
    Operating System
--------------------------------------------------------------------------
    FILE  osdown.h
--------------------------------------------------------------------------
    INTRODUCTION
    ============
    Created :       2005-05-06      Xiaoxi Jiang
    Last modified : 2005-05-06      Xiaoxi Jiang
    Module :
    Purpose :
        Header file.

    List of routines in file :

    File history :
*/

#ifndef __OSDOWN_H_
#define __OSDOWN_H_


#ifdef __cplusplus
extern "C" {
#endif

#define OSDOWNERR_SUCCESS           0x00
#define OSDOWNERR_BADSIZE           0x01
#define OSDOWNERR_BADCHECKSUM       0x02
#define OSDOWNERR_DOWNTIMEOUT       0x03
#define OSDOWNERR_UARTCONFIG        0x04
#define OSDOWNERR_NOTAPP            0x05
#define OSDOWNERR_BADAPPCRC         0x06
#define OSDOWNERR_SAVESOFT          0x07
#define OSDOWNERR_ABORT             0x08

#define OS_STARTADDR                0x10000
#define OS_STARTADDRFONT            0x70000

unsigned char OSDOWN_Rom(void);
unsigned char OSDOWN_Os(void);
unsigned char OSDOWN_FontGB2312(void);
unsigned char OSDOWN_Soft(unsigned int uiSoftMaxSize);
unsigned char OSDOWN_Save(unsigned int uiAddr,
                unsigned char *pucData,
                unsigned int uiDataLen);
unsigned char OSDOWN_SetUART(void);
unsigned char OSDOWN_CheckOS(unsigned char *pucPtr,unsigned int uiFileSize);


#ifdef __cplusplus
}
#endif

#endif


⌨️ 快捷键说明

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