MityDSP Documentation Index
tcDspFtdiVNC1

Introduction

The tcDspFtdiVNC1 class is used to provide access to the FTDI VNC1 USB host controller device via the MityDSP generic uart interface. An instance of the tcDspSerial class, and an output latch selector and ID must be provided in the constructor.

See also:
MityDSP::tcDsperial Class Reference
MityDSP::tcDspOutputLatch Class Reference
MityDSP::tcDspFtdiVNC1 Class Reference

Example

This is a simple example of tcDspFtdiVNC1 creation and usage:

{
unsigned int RS232_SERIAL_BASE = 0xB0000200;
int threadpri = 7;
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);
// do something application-specific
...
}

  
Generated on Mon Apr 22 2013 11:33:02 for MityDSP Core by  Doxygen Version 1.8.1.1
Copyright © 2009, Critical Link LLC, All rights reserved.