How to input Pointer parameter in Simulink when using custum code

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to input Pointer parameter in Simulink when using custum code

404件の閲覧回数
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 件の賞賛
返信
0 返答(返信)