errors.h

来自「Analog Device ADSP21346平台下对AMD Flash操作的例」· C头文件 代码 · 共 33 行

H
33
字号
/*******************************************************************************/
/*                                                                             */
/*   (C) Copyright 2004 - Analog Devices, Inc.  All rights reserved.           */
/*                                                                             */
/*    FILE:     e r r o r s . h ( )        					                   */
/*                                                                             */
/*    CHANGES:  1.00.0  - initial release    								   */
/*																			   */
/*    PURPOSE:  This header file defines the possible errors				   */
/*                                                                             */
/*******************************************************************************/

#ifndef __ERRORS_H__
#define __ERRORS_H__

// enum of possible errors
typedef enum
{
	NO_ERR,					// No Error
	POLL_TIMEOUT,			// Polling toggle bit failed
	VERIFY_WRITE,			// Verifying write to flash failed
	INVALID_SECTOR,			// Invalid Sector
	INVALID_BLOCK,			// Invalid Block
	UNKNOWN_COMMAND,		// Unknown Command
	PROCESS_COMMAND_ERR,	// Processing command
	NOT_READ_ERROR,			// Could not read memory from target
	DRV_NOTAT_BREAK,		// The drive was not at AFP_BreakReady
	BUFFER_IS_NULL,			// Could not allocate storage for the buffer
	NUM_ERROR_CODES,
}ERROR_CODE;

#endif // __ERRORS_H__

⌨️ 快捷键说明

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