ixstatus.h

来自「Windows CE 6.0 BSP for VOIP sample phone」· C头文件 代码 · 共 54 行

H
54
字号
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use this sample source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the LICENSE.RTF on your install media or the root of your tools installation.
// THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES OR INDEMNITIES.
//
/******************* (c) Marvell Semiconductor, Inc., 2004 ********************
 *
 *
 *  Purpose:    Contains commonalized error codes for networking.
 *
 *
 *	$Author: schiu $
 *
 *	$Date: 2004/08/23 $
 *
 *	$Revision: #2 $
 *
 *****************************************************************************/

#ifndef IX_STAUTS_H
#define IX_STATUS_H


/* Status/ error codes returned by the abstracted interfaces */
typedef enum 
{
    IX_STATUS_SUCCESS = 0,
    IX_STATUS_DEVICE_BUSY,				// Device is busy... must wait.
    IX_STATUS_NO_RESP,					// No response is waiting from the device.
    IX_STATUS_NO_DATA,					// No data available at the device.
    IX_STATUS_RESOURCES,            	// Out of whatever resource is being asked for
    IX_STATUS_PENDING,              	// Unable to complete immediately
    IX_STATUS_FAILURE,              	// Function call unsuccessful
    IX_STATUS_INVALID_ARG,          	// Invalid argument passed by the caller
    IX_STATUS_ERROR_UNKNOWN,        	// Unknown system error occurred
    IX_STATUS_HWINIT_FAIL,          	// Hardware failed to initialize
    IX_STATUS_BOOT_READY,               // boot loader ready
	IX_STATUS_HOST_BOOT_READY,

    /* Add new entries above this */
	IX_STATUS_INVALID_STATUS_VALUE		// Anything equal or above this is invalid status.
} IX_STATUS;

#define IX_SUCCESS(stat) ((stat)==IX_STATUS_SUCCESS)
#endif  /* IX_STATUS_H */

⌨️ 快捷键说明

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