Cat
Proto40MHz_v1.cpp
Go to the documentation of this file.
1 // $Id: $
2 // Include files
3 
4 
5 // local
6 #include "Proto40MHz_v1.h"
7 
8 //-----------------------------------------------------------------------------
9 // Implementation file for class : Proto40MHz_v1
10 //
11 // 2006-10-23 :
12 //-----------------------------------------------------------------------------
13 
14 //=============================================================================
15 // Standard constructor, initializes variables
16 //=============================================================================
18  setName("Proto40MHz_v1");
19  setType("Proto40MHz_v1");
21 
22  m_usb = new UsbFTInterface();
23  m_usbi2c=new UsbI2cBus();
24  m_phaser0 = new Phaser();
25  m_phaser1 = new Phaser();
26  m_phaser2 = new Phaser();
27 
28  m_usb->setName("Usb");
29  m_usbi2c->setName("UsbI2c");
30  m_phaser0->setName("Phaser0");
31  m_phaser1->setName("Phaser1");
32  m_phaser2->setName("Phaser2");
33 
34  addChild(m_usb);
40  m_usbi2c->regData() ->setAddress(5);
41 
42  m_phaser0->reg()->setAddress(65);
43  m_phaser1->reg()->setAddress(66);
44  m_phaser2->reg()->setAddress(68);
45 
46  m_usbspi=new UsbSpiBus();
47  m_usbspi->setName("UsbSpi");
49  m_reg=new Register();
50  m_reg->io()->defDataU8(4);
51  m_reg->setName("SpiReg");
52  m_reg->setAddress(8);
54 
55  m_a3pe=new A3PE();
56  m_a3pe->setName("A3PE");
58 }
59 //=============================================================================
60 // Destructor
61 //=============================================================================
63 
64 }
65 
66 //=============================================================================
Register * regAddress()
Definition: UsbI2cBus.h:54
Definition: Phaser.h:19
Phaser * m_phaser0
Definition: Proto40MHz_v1.h:84
void add(int attribut)
Definition: Attrib.h:67
void setName(std::string name)
Definition: Object.h:51
Register * regData()
Definition: UsbI2cBus.h:58
Register * m_reg
Definition: Proto40MHz_v1.h:87
Register * reg()
Definition: Phaser.h:101
Definition: A3PE.h:20
Phaser * m_phaser2
Definition: Proto40MHz_v1.h:86
void setType(std::string type)
Definition: Object.h:52
UsbFTInterface * m_usb
Definition: Proto40MHz_v1.h:81
void setAddress(U32 address)
Definition: IOobject.h:84
virtual ~Proto40MHz_v1()
Destructor.
virtual void addChild(Hierarchy *element)
Definition: Hierarchy.cpp:83
UsbI2cBus * m_usbi2c
Definition: Proto40MHz_v1.h:82
UsbSpiBus * m_usbspi
Definition: Proto40MHz_v1.h:83
Proto40MHz_v1()
Standard constructor.
Phaser * m_phaser1
Definition: Proto40MHz_v1.h:85
void defDataU8(unsigned long size)
Definition: IOdata.h:179
IOdata * io()
Definition: IOobject.h:66