I encountered an issue while using the Lcu_Ip_SetSyncOutputRiseFilter function. I was able to configure the LCU successfully, but I needed to dynamically update the rise dead-time parameter through code using this function.
Although I referred to the documentation, I couldn't clearly understand where or how to pass the value for the rise dead-time filter. The function seems to take a list and its dimensions as input, but it’s unclear how this relates to configuring the dead-time parameter.
Could you please provide more details or examples to clarify this functionality?
已解决! 转到解答。
Hi @GaneshBhagwat,
You need to create an instance of this structure:
Lcu_Ip_SyncOutputValueType lcuOutputRiseFilter[6U]; lcuEnable[0].LogicOutputId = LCU_LOGIC_OUTPUT_0; lcuEnable[0].Value = 1U; lcuEnable[1].LogicOutputId = LCU_LOGIC_OUTPUT_1; lcuEnable[1].Value = 3U; lcuEnable[2].LogicOutputId = LCU_LOGIC_OUTPUT_2; lcuEnable[2].Value =5U; lcuEnable[3].LogicOutputId = LCU_LOGIC_OUTPUT_3; lcuEnable[3].Value = 7U; lcuEnable[4].LogicOutputId = LCU_LOGIC_OUTPUT_4; lcuEnable[4].Value = 10U; lcuEnable[5].LogicOutputId = LCU_LOGIC_OUTPUT_5; lcuEnable[5].Value = 15U;
The Dimension paremeter is just the number of entries in the List
Lcu_Ip_SetSyncOutputRiseFilter(lcuOutputRiseFilter, 6);
Regards,
Daniel
Hi @GaneshBhagwat,
You need to create an instance of this structure:
Lcu_Ip_SyncOutputValueType lcuOutputRiseFilter[6U]; lcuEnable[0].LogicOutputId = LCU_LOGIC_OUTPUT_0; lcuEnable[0].Value = 1U; lcuEnable[1].LogicOutputId = LCU_LOGIC_OUTPUT_1; lcuEnable[1].Value = 3U; lcuEnable[2].LogicOutputId = LCU_LOGIC_OUTPUT_2; lcuEnable[2].Value =5U; lcuEnable[3].LogicOutputId = LCU_LOGIC_OUTPUT_3; lcuEnable[3].Value = 7U; lcuEnable[4].LogicOutputId = LCU_LOGIC_OUTPUT_4; lcuEnable[4].Value = 10U; lcuEnable[5].LogicOutputId = LCU_LOGIC_OUTPUT_5; lcuEnable[5].Value = 15U;
The Dimension paremeter is just the number of entries in the List
Lcu_Ip_SetSyncOutputRiseFilter(lcuOutputRiseFilter, 6);
Regards,
Daniel