My application should be able to run in two modes. In the "codec mode", I use the following DSP/BIOS objects:
Whereas in the "host channel mode" I want to replace the mini-driver and the DIO adapter by two HST objects (configured in the tcf-file) and two DHL drivers (configured in the tcf-file), so that I can send and receive data with the computer (instead of using real data from the codec). I want to be able to switch between these two modes at runtime with a dip-switch. To switch I do the following steps:
It works quite well. I can switch from codec mode to host channel mode and back to codec mode. But if I want to switch back to host channel mode, SIO_create fails (SYS_error called: error id = 0x4), which means the the device driver is busy, according to the DSP/BIOS reference guide.
So my question is: How do I have to reinitialize the underlying HST and/or DHL object in order to create the stream successfully?
Thanks for your help!
Kind regards
Robert