- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The Cypress USBFS component doesn't have enough custom code sections in it to customize handling all the different requests that USB can make. I can modify the Generated_Source files, but then those changes get overwritten every time I build the project, and I have to restore the modifications from version control.
I see from https://community.cypress.com/docs/DOC-12381 that we should be able to modify the original source code for the component, which should let us add our own custom code sections where necessary, but when I try this, I get a C# error in file cyaudio2_0.cs, and I know nothing about C#:
The type or namespace name 'ArrayEditor' does not exist in the namespace 'System.ComponentModel.Design' (are you missing an assembly reference?)
Any idea what I need to do to customize this code?
Solved! Go to Solution.
- Tags:
- c
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I suggest to make your own component out of USBFS, by lmporting it into the project an renaming. Then it can be modified as needed. Unfortunately, the USBFS is a big component, and that won't be an easy task.
/odissey1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please use Skip Code Generation Option in Creator to prevent your changes from being overwritten.
Right click on your project > Build Settings > Skip Code Generation = True
You can make modifications to the source code of the component but it requires prior knowledge of C# and I would not recommend changing anything if you aren't familiar with it. You can refer to "Component Author Guide" present under Help > Documentation.
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I suggest to make your own component out of USBFS, by lmporting it into the project an renaming. Then it can be modified as needed. Unfortunately, the USBFS is a big component, and that won't be an easy task.
/odissey1