📄 blmsgdef.h
字号:
/**************************(c) STMicroelectronics *****************************/
/*! \file
*
* CVS ID: $Id: blmsgdef.h,v 1.7 2007/02/15 13:09:57 marcucci Exp $
* Author: Maurizio Marcucci [MM] - STM
* Date: $Date: 2007/02/15 13:09:57 $
* Revision: $Revision: 1.7 $
*
* Project Scope: CDM M8
*
* Organisation: Optical Media Storage B.U.
* AGRATE ITALY Application Lab
*
* Version Control:
* \source sources/bootloader/blmsgdef.h
* \version 0.1
* \author ST Agrate
* \date 00-00-00
*
*******************************************************************************
* \brief PC Inetrface Definition
*
* \par Change History:
*
***************************************************
*
* STM CVS Log:
*
* $Log: blmsgdef.h,v $ * Revision 1.7 2007/02/15 13:09:57 marcucci * Bootloader Optimization *
* Revision 1.6 2006/09/18 09:55:20 belardi
* Corrected CVS keyword usage
*
* Revision 1.5 2006/09/18 09:22:15 belardi
* Added Log CVS keyword into file header
*
*
******************************************************************************/
/* TEST Message Definitions */
#define BL_TEST_MSG_OP_CODE 0x75 /* Laser Off Mag Op Code */
#define BL_TEST_MSG_LEN 0x05 /* Length of the LASER OFF Message */
#define BL_TEST_MSG_ACK_LEN 0x04 /* Length of the LASER OFF response message */
#define BL_TEST_MSG_PARM_1 0x02
#define BL_TEST_MSG_PARM_2 0x03
/* BER ON */
#define BL_BER_ON_MSG_OP_CODE 0x8A
#define BL_BER_ON_MSG_LEN 0x02
#define BL_BER_ON_ACK_MSG_LEN 0x02
/* WRITE NEAR MEMORY Message Definitions */
#define BL_WRNM_MSG_OP_CODE 0x70 /* Write Near Memory Msg Op Code */
#define BL_WRNM_MSG_LEN 0x09 /* Write Near Memory Msg Length */
#define BL_WRNM_ACK_LEN 0x06 /* Write Near Memory Msg Response*/
/* READ NEAR MEMORY Message Definitions */
#define BL_RDNM_MSG_OP_CODE 0x71 /* Read Near Memory Msg Op Code */
#define BL_RDNM_MSG_LEN 0x05 /* Read Near Memory Length */
#define BL_RDNM_ACK_LEN 0x06 /* Read Near Memory Msg Response */
/* ERROR CODES */
#define BL_NO_ERROR 0x00
#define BL_ILL_CMND_MSG_LEN 0x02
#define BL_ILL_CMND_ERR_CODE 0x01 /* Illegal Command Error Code */
#define BL_INV_CKSUM 0x02 /* Invalid Checksum Error Code */
#define BL_MICRO_COMMAND_BUSY 0x0E
#define BL_TEST_NOT_IMPLEMENTED 0x0E /* Test Not Implemented Error Code */
#define BL_INV_CODE 0x04
#define BL_INV_STATUS 0x05
#define BL_STORING_FAILS 0x06
#define BL_CODE_VERIFY_ERROR 0x07
/* GENERIC Definitions */
#define BL_DEBUG_MSG 0x70
#define BL_S2B 0x00
#define BL_PCIF 0x01
#define BL_BYTE_WISE 0x00
#define BL_WORD_WISE 0x01
#define BL_LONG_WISE 0x02
#define BL_BYTE_WISE_WR 0x03
#define BL_MAX_MSG_LEN 0x10 /* Maximum expected message length */
#define BL_BYTE_COUNT 0x00 /* Position of the Message Byte Count into the */
/* s2b_tx/rx_msg_buf & pf_tx/rx_msg_buf arrays */
#define BL_OP_CODE 0x01 /* Position of the Message Op code into the */
/* s2b_tx/rx_msg_buf & pf_tx/rx_msg_buf arrays */
#define BL_ERROR_CODE 0x01 /* Position of the Message Op code into the */
/* s2b_tx_msg_buf & pf_tx_msg_buf arrays */
#define BL_SPARE_TIME 0xFF
#define BL_EJECT_PRESSED 0x02
#define BL_FUN_MSG_OP_CODE 0x00
/*** (c) 2003 STMicroelectronics **************************** END OF FILE ***/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -