• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

include/nxyter/NxChip.h (r4864/r4162)

Go to the documentation of this file.
00001 //============================================================================
00006 //============================================================================
00007 
00008 #ifndef NXYTER_NXCHIP_H
00009 #define NXYTER_NXCHIP_H
00010 
00011 #include "base/Peripheral.h"
00012 #include "nxyter/NxI2c.h"
00013 
00014 namespace nxyter {
00015 
00016    class NxChip : public base::Peripheral {
00017       protected:
00018          nxyter::NxI2c  fI2c;               
00019          int            fNxNumber;          
00020   
00021       public:
00022          NxChip(base::Board* board, int port, int addr, int nxnum);
00023          virtual ~NxChip();
00024          
00025          void setNxNumber(int nxnum);
00026 
00028          int  getNxNumber() { return fNxNumber; }
00029 
00030          int activate();
00031          int deactivate();
00032 
00033          bool isactive();
00034 
00035          int setChannelDelay(uint32_t val);
00036          int getChannelDelay(uint32_t& val);
00037 
00039          nxyter::NxI2c& i2c() 
00040            { return fI2c; }
00041    };
00042 
00043 }
00044 
00045 #endif

Generated on Tue Dec 10 2013 04:52:22 for ROCsoft by  doxygen 1.7.1