Forum Discussion
Altera_Forum
Honored Contributor
16 years ago" It would be a good idea to create a pointer to your struct within that init function that you can keep track of rather than rely on the global definition of the struct."
From what Jake had said, it's seems to be two methods to track the struct. But I still have no idea to do it. Would you please give me an example? in a file system driver, there would be a function named fopen. then we could use it like: fp = fopen("/dev/component_name"), after that we can use fp to write and read the component. in my component, there's no function like fopen. but after my component is automatically integrated by alt_sys_init(), I still want to communicate with it: write some parameters to it and get some data from it(my component is something to complete data acquisition). but I don't know how to do it. can you give me some idea about it.