📄 errorhandling.h
字号:
/* * 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -