Beispiel #1
0
        /// <summary>
        /// This is the first function that should be called when using the DSP. It announces the API and the driver that a specific range of resources in the DSP is required by the application so no other application will be allowed to access the same resources until they are freed. It also registers a callback function to the API that will be used when interrupts are generated by the DSP.
        /// </summary>
        /// <param name="resource"><see cref="DspResource"/> Specified segment.</param>
        public void Open(DspResource resource = DspResource.One)
        {
            _dspResource = (G313Definitions.G313DspMask)resource;

            _dspHandle = G313DspApi.dspOpen(_parent.Handle.ToInt32(), _dspResource, DspCallback, IntPtr.Zero);
            if (_dspHandle == 0)
            {
                throw new OperationFailedException("failed to open dsp", _parent);
            }
        }
Beispiel #2
0
 public static extern bool dspWrite(int radioHandle, UInt32 dspHandle, G313Definitions.G313DspMask mask, UInt32 offset, IntPtr data, UInt32 size);
Beispiel #3
0
 public static extern bool dspBoot(int radioHandle, UInt32 dspHandle, G313Definitions.G313DspMask mask, IntPtr data, UInt32 size);
Beispiel #4
0
 public static extern bool dspReset(int radioHandle, UInt32 dspHandle, G313Definitions.G313DspMask mask);
Beispiel #5
0
 public static extern UInt32 dspOpen(int radioHandle, G313Definitions.G313DspMask mask, NativeDefinitions.CallbackFunc callbackFunc, IntPtr callbackTarget);