How to input Pointer parameter in Simulink when using custum code

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to input Pointer parameter in Simulink when using custum code

475 次查看
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 回复数