You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to take advantage of our systems SG mode by using your library to perform multiple calls on axidma_oneway_transfer with the usage of a callback previously set for the specified Rx channel. I understand that the callback should be immediately called upon the completion of the requested transfer amount. My question is whether or not we are able to retrieve the returned value of the ioctl in the instance of the function being non-blocking; similarly to a std::future? My reasoning is for the cases where the DMA transfer fails and I need to log the failure and perform additional actions on the buffer before it is used again.
So would something such as the below be possible?
//All handled by a separate thread/process
SomeClass::performOneWayTransfer
(uint dmaChannel, dma_transfer* dmaTransfer) {
future<int> transferResult = async(
axidma_oneway_transfer, SomeClass::StaticAxidmaHandler.axidmaDev,
dmaChannel, dmaTransfer->outputBuf, dmaTransfer->amountToTransfer, false);
transferResult.wait();
if((result = transferResult.get()) != 0){
...//log the failure and other stuff
The text was updated successfully, but these errors were encountered:
Hi, I am trying to take advantage of our systems SG mode by using your library to perform multiple calls on axidma_oneway_transfer with the usage of a callback previously set for the specified Rx channel. I understand that the callback should be immediately called upon the completion of the requested transfer amount. My question is whether or not we are able to retrieve the returned value of the ioctl in the instance of the function being non-blocking; similarly to a std::future? My reasoning is for the cases where the DMA transfer fails and I need to log the failure and perform additional actions on the buffer before it is used again.
So would something such as the below be possible?
The text was updated successfully, but these errors were encountered: