How to access component parameters in API?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

How do you access the component parameters in the component API for a custom component? I have been looking for this for about an hour now, but I can't find any documentation on it. Even the tutorial videos don't seem to talk about this.

0 Likes
2 Replies
Anonymous
Not applicable

Nevermind. I just figured it out.

   

If anyone else is confused by this, here is an example.

   

If you name a component parameter INPUTS, then in your API you use `$INPUTS`. When the API is generated, this gets replaced with the value that is put into the component parameters for that instance.

0 Likes
RaAl_264636
Level 6
Level 6
50 sign-ins 25 sign-ins 10 solutions authored

Hi Fredjikrang,

   

 

   

for component creation, I found the following documents helpful:

   
        
  • AN82156 -  PSoC 3, PSoC 4, and PSoC 5LP Designing PSoC Creator Components with UDB Datapaths
  •     
  • AN82250 - PSoC 3, PSoC 4, and PSoC 5LP Implementing Programmable Logic Designs with Verilog
  •     
  • PSoC Creator Component Author Guide
  •    
   

 

   

Regards,

   

 

   

Ralf

0 Likes