How to get a return as an argument instead of void in the generated code when using a Simulink Function in AUTOSAR Blockset?
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
MathWorks Support Team
il 30 Set 2022
Modificato: MathWorks Support Team
il 30 Set 2022
I would like to get the following function prototype according to AUTOSAR Basic-SW(BSW) module Diagnostic Communication Manager(DCM).
uint8 xxx (uint8 *Data)
In the above data requested by DCM is put, and whether the value is normal is returned in the datatype of uint8.
But I get the following function prototype which returning does not work the way I want it to in the generated code.
void xxx (uint8 *Data, uint8 *Error)
Risposta accettata
MathWorks Support Team
il 30 Set 2022
Modificato: MathWorks Support Team
il 30 Set 2022
In AUTOSAR Dictionary, please configure AUTOSAR communication interfaces appropriately by following the steps.
1. In the leftmost pane of the AUTOSAR Dictionary, select C-S Interfaces.
2. Expand repeatedly until you see Arguments and select it.
3. Set Direction value to 'Error' as you want to get the operation argument returns application error status.
For more information, see Configure AUTOSAR Client-Server Error Handling.
0 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!