mirror of
https://github.com/preble/libpinproc
synced 2026-02-24 18:25:23 +01:00
Added public PRWriteData and PRReadData for low level debug
This commit is contained in:
@@ -110,6 +110,18 @@ PR_EXPORT PRResult PRFlushWriteData(PRHandle handle)
|
||||
return handleAsDevice->FlushWriteData();
|
||||
}
|
||||
|
||||
/** Write data out to the P-ROC immediately (does not require a call to PRFlushWriteData */
|
||||
PR_EXPORT PRResult PRWriteData(PRHandle handle, uint32_t moduleSelect, uint32_t startingAddr, int32_t numWriteWords, uint32_t * writeBuffer)
|
||||
{
|
||||
return handleAsDevice->WriteDataRaw(moduleSelect, startingAddr, numWriteWords, writeBuffer);
|
||||
}
|
||||
|
||||
/** Read data from the P-ROC. */
|
||||
PR_EXPORT PRResult PRReadData(PRHandle handle, uint32_t moduleSelect, uint32_t startingAddr, int32_t numReadWords, uint32_t * readBuffer)
|
||||
{
|
||||
return handleAsDevice->ReadDataRaw(moduleSelect, startingAddr, numReadWords, readBuffer);
|
||||
}
|
||||
|
||||
// Events
|
||||
|
||||
/** Get all of the available events that have been received. */
|
||||
|
||||
Reference in New Issue
Block a user