Hello!
I'm researching the filetestdemo in Desktop Linux SDK 1.0.0.7 and reading the source files.
I notice the following code is where the copy is made of the data in the test.file
for(;;) { /* check and wait for message from host */ ... /* read mailbox to see if any messages */ ... /* INSERT PROCESSING HERE */ memcpy(&process_buf[DNUM*TESTMSG_MAX_BUFFER], (void *)testMsg.input_addr, testMsg.input_size); testMsg.output_size = testMsg.input_size; memcpy((void *)testMsg.output_addr, &process_buf[DNUM*TESTMSG_MAX_BUFFER], testMsg.output_size); /* write mailbox to send message to host */ ... }
How do I modify this to, say, +1 to the data in the file before I send it back out? (let's assume I create the test.file with whatever data I want, so it's just a bunch of "floats"). Thanks for your help!!