<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to ENC28J60</title><link>https://sourceforge.net/p/chipkitnetwork/wiki/ENC28J60/</link><description>Recent changes to ENC28J60</description><atom:link href="https://sourceforge.net/p/chipkitnetwork/wiki/ENC28J60/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 07 Jul 2012 14:06:50 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/chipkitnetwork/wiki/ENC28J60/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage ENC28J60 modified by Majenko Technologies</title><link>https://sourceforge.net/p/chipkitnetwork/wiki/ENC28J60/</link><description>&lt;pre&gt;--- v2
+++ v3
@@ -28,7 +28,7 @@
 
 Once you have created and configured the card object you have to add it to the network stack:
 
-    Network.addCard(&amp;myCard);
+    Network.addInterface(&amp;myCard);
 
 This will activate packet reception on the card.
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Majenko Technologies</dc:creator><pubDate>Sat, 07 Jul 2012 14:06:50 -0000</pubDate><guid>https://sourceforge.netc20f682ee1b0381529b3468236cdc83d231cfd05</guid></item><item><title>WikiPage ENC28J60 modified by Majenko Technologies</title><link>https://sourceforge.net/p/chipkitnetwork/wiki/ENC28J60/</link><description>&lt;pre&gt;--- v1
+++ v2
@@ -4,7 +4,7 @@
 
     ENC28J60 myCard(spi,cs);
 
-Where *spi* is the SPI channel number (1 thru 4)m and *cs* is the digital pin number to use for the chip-select line.
+Where *spi* is the SPI channel number (1 thru 4) and *cs* is the digital pin number to use for the chip-select line.
 
 For example, to use SPI bus 1 and chip-select line D10 you would use:
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Majenko Technologies</dc:creator><pubDate>Sat, 07 Jul 2012 13:57:57 -0000</pubDate><guid>https://sourceforge.netc4dc57c750ad8fc770f28b299cb7927915455cf0</guid></item><item><title>WikiPage ENC28J60 modified by Majenko Technologies</title><link>https://sourceforge.net/p/chipkitnetwork/wiki/ENC28J60/</link><description>The ENC28J60 is the main ethernet card this library supports.

You create a new ethernet object with:

    ENC28J60 myCard(spi,cs);

Where *spi* is the SPI channel number (1 thru 4)m and *cs* is the digital pin number to use for the chip-select line.

For example, to use SPI bus 1 and chip-select line D10 you would use:

    ENC28J60 myCard(1,10);

Now you have a card you need to configure it:

    myCard.init(m1,m2,m3,m4,m5,m6);

That will set the card up and configure it with the MAC address m1:m2:m3:m4:m5:m6.  For example, to use the MAC address 12:34:56:78:9A:BC you would use:

    myCard.init(0x12,0x34,0x56,0x78,0x9A,0xBC);

Now you can assign an IP address:

    myCard.setIP(192,168,0,44);

and a netmask:

    myCard.setNetmask(255,255,255,0);

Once you have created and configured the card object you have to add it to the network stack:

    Network.addCard(&amp;myCard);

This will activate packet reception on the card.

You can test the status of the network link any time with:

    myCard.linkup();

which returns 1 if the link is up, or 0 if it is down.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Majenko Technologies</dc:creator><pubDate>Sat, 07 Jul 2012 13:57:41 -0000</pubDate><guid>https://sourceforge.net48b45ef8d3334f5836698a530223726bf2302782</guid></item></channel></rss>