Jun Furutani / libMiMic

Fork of libMiMic by Ryo Iizuka

Revision:
11:c82a7b2899b0
Parent:
3:0a94993be1f6
Child:
13:a71705c5e6fd
--- a/cpp/NetConfig.h	Tue Apr 16 16:10:11 2013 +0000
+++ b/cpp/NetConfig.h	Sat Apr 20 03:47:14 2013 +0000
@@ -9,6 +9,7 @@
 {
     /**
      * Network configulation class.
+     * The class is used for argument of NetConfig constructor.
      */
     class NetConfig
     {
@@ -19,7 +20,7 @@
          * The constructor.
          * This function initializes instance by onchip configulation data.
          * @param i_is_factory_default
-          * Factory default flag.
+         * Factory default flag.
          * <ul>
          * <li>true - The function sets factory default setting.
          * <li>false -The function sets onchip memory configulation (default)
@@ -27,5 +28,22 @@
          */
         NetConfig(bool i_is_factory_default=false);
         virtual ~NetConfig();
+        /**
+         * Set IPv4 ip address to instance.
+         */
+        void setIpAddr(unsigned char ip4,unsigned char ip3,unsigned char ip2,unsigned char ip1);
+        /**
+         * Set IPv4 network mask value to instance.
+         */
+        void setNetMask(unsigned char ip4,unsigned char ip3,unsigned char ip2,unsigned char ip1);
+
+        /**
+         * Set IPv4 default gateway address to instance.
+         */
+        void setGateway(unsigned char ip4,unsigned char ip3,unsigned char ip2,unsigned char ip1);
+        /**
+         * Set ethernet mac address to instance.
+         */
+        void setEmac(unsigned char ip6,unsigned char ip5,unsigned char ip4,unsigned char ip3,unsigned char ip2,unsigned char ip1);
     };
    }
\ No newline at end of file