How do I pass a pointer as an argument to a function caller in Simulink to extract data?
Show older comments
Hello Everyone. Im working on an AUTOSAR project. If you declare a function that has output arguments, the generator creates a function with a pointer as an argument to return values in there, and the return of the function is used to report error conditions. Right now, I want to use that function to look for data in another module but I have not found the way to do that. Any suggestions. Thanks in advance.
1 Comment
Shanmuga Sundaram
on 29 Jun 2022
Edited: Shanmuga Sundaram
on 29 Jun 2022

Create return parameter name and set direction as error, the function prototype will be created as per type of that parameter. in my case this function returns calculate CRC value with type of uint8
Answers (0)
Categories
Find more on AUTOSAR Blockset in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!