How to input Pointer parameter in Simulink when using custum code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to input Pointer parameter in Simulink when using custum code

403 Views
RegulusCheng
Contributor III

Hi,

I am still trying to use PWM Input with S32K3X4EVB-Q172 in MCSPTE1AK344. I am using Simulink 2022b.

From the BLDC control example, I learned that we can use Matlab function with coder.ceval function to call C functions in S32K3 API. However, I wonder how to use the Icu_getDutycycleValues API, since it asks a pointer input parameter. I don't know how to trans a pointer of  the structure into a matlab function. can any body give me some suggestions? Or maybe I should use other methods to call " Icu_getDutycycleValues()"?

Can anybody tell me how to get the duty cycle of a PWM input signal in detail? I really appreciate it.

0 Kudos
Reply
0 Replies