📄 sprsts.h
字号:
/*
* description : Sapporo common status code
* Maker : Michiru.Kagaya
* Copyright : (C)2003,SEIKO EPSON Corp. All Rights Reserved.
*/
#ifndef SPRSTS_H
#define SPRSTS_H
#ifdef __cplusplus
extern "C" {
#endif /* cplusplus */
/*
////////////////////////////////////////////////////////////////////////
//
// Standard Success values
//
////////////////////////////////////////////////////////////////////////
*/
/* Success */
#define STATUS_SUCCESS ( 0L )
/* Registered already */
#define STAUTS_ALREADY_RESISTERED ( 1L )
/* Device is not connected */
#define STATUS_NOTCONNECTED ( 2L )
/* Pending */
#define STATUS_PENDING ( 3L )
/* Specified port is locked */
#define STATUS_LOCKED_PORT ( 4L )
/* Specified port is not locked */
#define STATUS_UNLOCK_PORT ( 5L )
/* Specified port is on execution */
#define STATUS_EXECUTION_PORT ( 6L )
/* Unregistered */
#define STATUS_UNREGISTERED ( 7L )
/* No receiving data */
#define STATUS_NODATA ( 8L )
/* Specified port is inactive */
#define STATUS_INACTIVE_PORT ( 9L )
/* Device is not exist */
#define STATUS_NO_DEVICE ( 10L )
/*
////////////////////////////////////////////////////////////////////////
//
// Standard Error values
//
////////////////////////////////////////////////////////////////////////
*/
/* General error status */
#define STATUS_UNSUCCESSFUL ( -1L )
/* Not opened */
#define STATUS_NOT_OPENED ( -2L )
/* Not implement */
#define STATUS_NOT_IMPLEMENTED ( -3L )
/* Parameter error */
#define STATUS_INVALID_PARAMETER ( -4L )
/* Unable to register */
#define STATUS_UNABLE_TO_REGISTER ( -5L )
/* Timie out error */
#define STATUS_TIMEOUT ( -6L )
/* Unable to assign ID */
#define STATUS_NOT_ALLOCATE_ID ( -7L )
/* Unable to free ID */
#define STATUS_NOT_FREE_ID ( -8L )
/* Specified port is not exist */
#define STATUS_NO_EXISTENCE_PORT ( -9L )
/* Not ready */
#define STATUS_NOT_READY ( -10L )
/* Can't setup */
#define STATUS_CANNOT_SETUP ( -11L )
/* Memory error */
#define STATUS_MEM_ERROR ( -12L )
#ifdef __cplusplus
}
#endif /* cplusplus */
#endif /* SPRSTS_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -