msdps.h

来自「MSTAR03的数码相框的代码」· C头文件 代码 · 共 62 行

H
62
字号
#ifndef __MSDPS_H
#define __MSDPS_H

void pbStartJob(__u16 ImgW,__u16 ImgH,__u32 ImageCSize,__u32 ImageSrcAddr,__u32 ThumbCSize);
__u8 pbIsPntSevAcpt(void);
void pbAbortJob(void);
void pbContinueJob(void);
__u8 pbIsUSBDetect(void);
__u8 pbIsSndOptComp(void);

extern __u8 volatile pbAbortJobFlag;
extern __u8 volatile pbContinueJobFlag;
extern __u8 volatile pbSendOptionComFlag;

void pbDPSDiscovery(void);
void pbDPSConfPntSevCmd(void);
void pbDPSGetDevStsCmd(void);
void pbDPSStartJobCmd(void);
void pbDPSAbortJobCmd(void);
void pbDPSContinueJobCmd(void);
void pbDPSPnt2DSC(void);
void pbDPSGetFileInfo(void);
void pbDPSGetFile(void);
void pbDPSGetPartFile(void);
void pbDPSGetThumb(void);

typedef struct {
        __u32 ImageCompressSize;
        __u32	ThmbCompressSize;
        __u32	ThmbPixWidth;
        __u32 ThmbPixHeight;
        __u32 ImgPixWidth;
        __u32	ImgPixHeight;
        __u32	ImgSrcAddr;
        char  *ImgFilePtr;
        __u8  ImgIsExif;
        __u8  ImgSrcPlace;
} PB_FileInfo;

typedef struct {
        __u32  Paper_Sizes;
        __u32  Paper_Types;
        __u32  Paper_Layouts;
        __u32  Paper_Copies;
} PB_JobInfo;

#define DPS_OBJ_HDISCVRY 0
#define DPS_OBJ_HREQUEST 1
#define DPS_OBJ_HRSPONSE 2
#define DPS_OBJ_DDISCVRY 3
#define DPS_OBJ_DREQUEST 4
#define DPS_OBJ_DRSPONSE 5

#define DPS_configurePrintService 6
#define DPS_GetDevice_Sts 12
#define DPS_Device_Sts 14
#define DPS_Job_Sts 15
#define DPS_Start_Job 16
#define DPS_Abort_Job 17
#define DPS_Continue_Job 18

#endif /* __MSDPS_H */

⌨️ 快捷键说明

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