//----------------------------------------------------------------------------
///
///
///
//----------------------------------------------------------------------------


#include <fosh/command.h>
   // #include <stdio.h>
#include <stdlib.h>
#if defined(STM32)
   //#include <arena/platform.h>
   #include <biwak/voc.h>
   #include <biwak/flash_spi.hpp>
#else
   #include <biwak/i2c.hpp>
   #include <biwak/i2c_slave.h>
#endif

#include <string.h>

class CCommandI2c: public CCommand
{
      CI2c &m_i2c;
   public:
      CCommandI2c(const char *_name, CI2c &i2c)
         :CCommand( _name, "   i2c: scan devices\n" )
         ,m_i2c(i2c)
      {}
      virtual int exec(int argc, const char *argv[]) const;
      void dump(const CI2cSlave &slave) const;
      virtual void printHelp() const;
};


//---fin----------------------------------------------------------------------
