📄 atlasusbmsg.h
字号:
// AtlasUsbMsg.h: interface for the CAtlasUsbMsg class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_ATLASUSBMSG_H__6E3546C4_1603_4CA2_88A3_6E988B04EF83__INCLUDED_)
#define AFX_ATLASUSBMSG_H__6E3546C4_1603_4CA2_88A3_6E988B04EF83__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "..\inc\AtlasUsbIO.h"
#define ATLAS_MSG_REQUEST_IMG_BUF 0
#define ATLAS_MSG_SET_NAND_CS 1
#define ATLAS_MSG_SET_CUR_IMG_TYPE 2
#define ATLAS_MSG_WRITE_IMG_2_NAND 3
#define ATLAS_MSG_UPDATE_NAND_TOC 4
#define ATLAS_MSG_GET_BOOT_STAGE 5
#define ATLAS_MSG_WRITE_DATA 6
#define ATLAS_MSG_DOWNLOAD_NK 7
#define ATLAS_MSG_SET_FRAME_LENGTH 8
#define ATLAS_MSG_GET_CPU_INFO 9
#define ATLAS_MSG_GET_HARDWARE_NAME 10
#define ATLAS_MSG_GET_SOFTWARE_NAME 11
#define ATLAS_MSG_GET_IMG_TYPE 12
#define ATLAS_MSG_GET_BOOTLOADER_VERSION 13
#define ATLAS_MSG_GET_NANDXIP_INFO 14
#define ATLAS_MSG_GET_EBOOT_RESERVEDBLOCKS 15
#define ATLAS_MSG_GET_DM_RESERVEDBLOCKS 16
#define ATLAS_MSG_GET_NK_RESERVEDBLOCKS 17
#define ATLAS_MSG_GET_NBOOT_RESERVEDBLOCKS 18
#define ATLAS_MSG_GET_USB_PIPE_INDEX 19
#define ATLAS_MSG_BEGIN_SESSION 20
#define ATLAS_MSG_END_SESSION 21
#define ATLAS_MSG_GET_NF_INFO 22
#define ATLAS_MSG_GET_ONE_BLOCK_DATA 23
#define ATLAS_MSG_GET_EBOOT_POSITION 24
#define ATLAS_BOOT_STAGE_NBOOT 0
#define ATLAS_BOOT_STAGE_EBOOT 1
#define ATLAS_BOOT_STAGE_NORFLASH_EBOOT 2
#define ATLAS_BOOT_STAGE_BOOTSTRAPE 3
//Device is uninited. Just start up or USB cable unconnected in NBOOT
#define ATLAS_DEV_STATUS_UNINITED_NBOOT 0
//Device is registerring with the PC USB driver.
#define ATLAS_DEV_STATUS_INITING_NBOOT 1
//Device is being registered with PC USB driver.
#define ATLAS_DEV_STATUS_IDLE_NBOOT 2
//Device is registered with PC driver, but USB session is not started by AtlasMgr with NBOOT
#define ATLAS_DEV_STATUS_IN_USB_SESSION_NBOOT 3
//Device is registered with PC driver, in USB session and currently in the middle of sending a USB message
#define ATLAS_DEV_STATUS_SENDING_MSG_NBOOT 4
//Device is uninited. Just start up or USB cable unconnected in EBOOT
#define ATLAS_DEV_STATUS_UNINITED_EBOOT 10
//Device is registerring with the PC USB driver.
#define ATLAS_DEV_STATUS_INITING_EBOOT 11
//Device is being registered with PC USB driver.
#define ATLAS_DEV_STATUS_IDLE_EBOOT 12
//Device is registered with PC driver, but USB session is not started by AtlasMgr with EBOOT
#define ATLAS_DEV_STATUS_IN_USB_SESSION_EBOOT 13
//Device is registered with PC driver, in USB session and currently in the middle of sending a USB message
#define ATLAS_DEV_STATUS_SENDING_MSG_EBOOT 14
//Device is ready for downloading 5.0 above CE image
#define ATLAS_DEV_STATUS_DOWNLOADING_CE_5_IMG_EBOOT 15
//Device is ready for downloading 4.0 CE image
#define ATLAS_DEV_STATUS_DOWNLOADING_CE_4_IMG_EBOOT 16
//Device is ready for dump nandflash
#define ATLAS_DEV_STATUS_DUMP_NF 17
#define WM_ATLAS_DBG_OUT_MESSAGE WM_USER+300
#define WM_ATLAS_DBG_IN_MESSAGE WM_USER+301
#define WM_ATLAS_DBG_ENTER_EBOOT WM_USER+302
#define WM_ATLAS_DBG_DOWNLOAD_NK_5 WM_USER+303
#define WM_ATLAS_DBG_DOWNLOAD_NK_4 WM_USER+304
#define WM_ATLAS_DUMP_NF WM_USER+305
#define WM_ATLAS_GET_ONE_SECTOR_DATA WM_USER+306
#define WM_ATALS_CONNECT_BROKEN WM_USER+307
class CAtlasUsbMsg
{
public:
CAtlasUsbMsg();
virtual ~CAtlasUsbMsg();
void FormatMsg(BYTE dwMsg, PBYTE pContext);
PATLAS_USB_MESSAGE GetMsg(){return m_pVendorMsg;};
protected:
void AllocateMsg(BYTE dwMsg);
PATLAS_USB_MESSAGE m_pVendorMsg;
DWORD m_dwMsgSize;
DWORD m_dwInLength;
DWORD m_dwOutLength;
};
#endif // !defined(AFX_ATLASUSBMSG_H__6E3546C4_1603_4CA2_88A3_6E988B04EF83__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -