My Project  v0.0.16
SI5326Node.hpp
Go to the documentation of this file.
1 
7 #ifndef MP7_SI5326_HPP
8 #define MP7_SI5326_HPP
9 
10 #include "mp7/OpenCoresI2C.hpp"
11 #include "mp7/I2CMasterNode.hpp"
12 
13 namespace mp7 {
21  class SI5326Node : public OpenCoresI2C {
23  public:
24  SI5326Node( const uhal::Node& aNode );
25  SI5326Node( const uhal::Node& aNode, uint8_t aAddr );
26  virtual ~SI5326Node( );
27 
28  void configure( const std::string& aFilename ) const;
29  void reset( ) const;
30  void intcalib( ) const;
31  void sleep( const bool& s ) const;
32  void debug( ) const;
33 
34  std::map<uint32_t, uint32_t> registers( ) const;
35  private:
36 
37  static const uint8_t m_slaveAddress;
38 
39  };
40 
41  class SI5326Slave : public opencores::I2CSlave {
42  public:
43  SI5326Slave( const opencores::I2CBaseNode* aMaster, uint8_t aSlaveAddress );
44  virtual ~SI5326Slave( );
45 
46  void configure( const std::string& aFilename ) const;
47  void reset( ) const;
48  void intcalib( ) const;
49  void sleep( const bool& s ) const;
50  void debug( ) const;
51 
52  std::map<uint32_t, uint32_t> registers( ) const;
53 
54  };
55 
56  class SI5326Node2g : public opencores::I2CBaseNode, public SI5326Slave {
57  UHAL_DERIVEDNODE( SI5326Node2g );
58  public:
59  SI5326Node2g( const uhal::Node& aNode );
60  SI5326Node2g( const SI5326Node2g& aOther );
61  virtual ~SI5326Node2g();
62 
63 };
64 
65 }
66 
67 #endif /* MP7_SI5326_HPP */
68 
69 
void configure( const std::string& aFilename ) const
Definition: SI5326Node.cpp:47
-test-ipbusaccess
Definition: AlignmentNode.hpp:15
static const uint8_t m_slaveAddress
Definition: SI5326Node.hpp:37
std::map<uint32_t, uint32_t> registers( ) const
Definition: SI5326Node.cpp:707
virtual ~SI5326Node( )
Definition: SI5326Node.cpp:43
void reset( ) const
Definition: SI5326Node.cpp:102
void debug( ) const
Definition: SI5326Node.cpp:144
Brief description.
UHAL_DERIVEDNODE( SI5326Node )
void intcalib( ) const
Definition: SI5326Node.cpp:116
SI5326Node( const uhal::Node& aNode )
Definition: SI5326Node.cpp:31
void sleep( const bool& s ) const
Definition: SI5326Node.cpp:128