errorhandling.h
来自「摩托罗拉Motolola公司网络处理器C3的示范代码.实现了ATM的AAL2层交」· C头文件 代码 · 共 50 行
H
50 行
/* * Copyright (c) 2000, 2001, 2002 C-Port Corporation, a Motorola Company * All Rights Reserved * * The information contained in this file is C-Port Corporation confidential and proprietary. * Any reproduction, use or disclosure, in whole or in part, of this * program, including any attempt to obtain a human-readable version of this * program, without the express, prior written consent of C-Port * Corporation or Motorola Incorporated is strictly prohibited. *//* * Function: qsErrorPoll() * * Description: Return true if an error occurred on the last read/write operation * * Arguments: rdwr (IN) - indicates either the read or write operation * values are QS_ERROR_WRITE or QS_ERROR_READ * * Returns: true if an error occurred on the last read/write operation */SINLINE BooleanqsErrorPoll(int32u rdwr){ return ((dcpCregs.cpMode & rdwr) == rdwr);}/* * Function: bsErrorWritePoll() * * Description: Retrieve the completion code of the last completed operation * directly from the hardware registers. This call assumes that * the application is making buffer write calls from only one * context. If multiple contexts are making buffer write calls, * then this call is inappropriate. See bsErrorWritePollMultiContext() * * Arguments: none * * Returns: Boolean, true if there was an error */SINLINE BooleanbsErrorWritePoll(){ return (BitIsSet(dcpCregs.wrCB[0].wrCB_Ctl, RDWRCB_CTL_ERROR));}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?