Slide 1 Slide 2 Slide 3 Slide 4 Slide 5 Product List
Introduction to SYS/BIOS Threading Slide 4

Here is a summary of the runtime API of the SYS/BIOS Hwi module and how to create a Hwi during runtime. In the code snippet shown here, three different variables have been created. The first two are types defined by the Hwi module itself, the first being a structure that holds all of the various Hwi parameters. The second variable is used to store the handle of the Hwi that will be created. By calling Hwi_Params_init(), the params structure can be filled with all of the default params values. The desired parameters can then be easily updated without worrying about the others. An error block variable has also been set up so that if the create failed, more information could be retrieved concerning why it failed. Finally, Hwi_create() is called which will instantiate the Hwi instance and return back the handle to the new Hwi. Also on this slide is a summary of the other API calls used to control a Hwi.

PTM Published on: 2012-07-03