Download User Manual for the Universal Register Debugger (URD)
Transcript
Chapter 15 Appendix 56 15.2.5 UrdGetReg Syntax BOOL URDAPI_EXPORT UrdGetReg( int nAdrBytes, int nDataBytes, const LPBYTE pucAdr, LPDWORD pdwData ) To receive several data bytes from a specific location (address) this function will be called. Here occurs the data transfer. Return Value Parameters The result of the operation of this function. TRUE The operation was successful. No error occurred. FALSE The operation was not successful. An error occurred. Please use the UrdGetStatus function for more details of the error. nAdrBytes Number of bytes in the device address. nDataBytes Number of bytes in the data (max. 4). pucAdr This pointer points to an array which holds the # of address bytes. pdwData The data bytes will be retrieved in this parameter. The most significant byte contains the first data by. Comments There are at most 4 data bytes (DWORD). 15.2.6 UrdGetStatus Syntax Parameters void URDAPI_EXPORT UrdGetStatus ( LPSTR pMessage ) This function has to report the current error status. If no error has occurred after the last call of this function the return string has to be "No Error". pMessage Pointer to a character array that will receive the error message. The buffer has to be at least 50 characters large. CSH - DEV / SW 13-Dec-00