MityDSP Documentation Index

tcDspFtdiUsbFs

Introduction

The tcDspFtdiUsbFs class is used to provide compatibility with the Dsp Storage classes via the VNC1 core. An instance of the tcDspFtdiVNC1 class, and an offset to the correct device must be provided.

See also:
MityDSP::tcDspStorageBase
MityDSP::tcDspFtdiVNC1 Class Reference

Example

This is a simple example of tcDspFtdiUsbFs creation and usage:

 {
     unsigned int       RS232_SERIAL_BASE = 0xB0000200;
     int                bytes;
     int                myLatchID[4] = {1,2,4,5};
     char               lpBuffer[1024];
     tcDspOutputLatch   MyClass::mpOutputLatch;
     tcDsperial        *MyClass::mpSerial;
     tcDspFtdiVNC1     *MyClass::mpUsb;

     // create access to the Serial
     mpSerial = new tcDspSerial(tcDspSerial((void *)RS232_SERIAL_BASE,...);

     // create access to VNC1 with provided CS latch
     mpUsb = new tcDspFtdiVNC1(mpSerial, mpOutputLatch, myLatchID);

        // Start the usb receive thread 
        mpUsb->Initialize(2000000, threadpri);

     // create access to port 0 of the VNC1L device
        mpFileSystemDrvr = new tcDspFtdiUsbFs(mpUsb, 0);

        // mpFileSystemDrvr can now be registered as a FAT filesystem

     // do something application-specific

     ...
 } 

  
Generated on Fri Sep 23 16:33:44 2011 for MityDSP Core by  Doxygen Version 1.6.1
Copyright © 2009, Critical Link LLC, All rights reserved.