ads1115 only
Fork of mbed by
Diff: Ethernet.h
- Revision:
- 55:d722ed6a4237
- Parent:
- 54:71b101360fb9
- Child:
- 59:0883845fe643
--- a/Ethernet.h Tue Jan 08 12:46:36 2013 +0000 +++ b/Ethernet.h Wed Jan 16 12:56:34 2013 +0000 @@ -33,14 +33,14 @@ * Example: * @code * // Read destination and source from every ethernet packet - * + * * #include "mbed.h" * * Ethernet eth; - * + * * int main() { * char buf[0x600]; - * + * * while(1) { * int size = eth.receive(); * if(size > 0) { @@ -50,7 +50,7 @@ * printf("Source: %02X:%02X:%02X:%02X:%02X:%02X\n", * buf[6], buf[7], buf[8], buf[9], buf[10], buf[11]); * } - * + * * wait(1); * } * } @@ -59,7 +59,7 @@ class Ethernet { public: - + /** Initialise the ethernet interface. */ Ethernet(); @@ -79,7 +79,7 @@ /** Writes into an outgoing ethernet packet. * * It will append size bytes of data to the previously written bytes. - * + * * @param data An array to write. * @param size The size of data. * @@ -101,7 +101,7 @@ /** Recevies an arrived ethernet packet. * - * Receiving an ethernet packet will drop the last received ethernet packet + * Receiving an ethernet packet will drop the last received ethernet packet * and make a new ethernet packet ready to read. * If no ethernet packet is arrived it will return 0. * @@ -117,14 +117,14 @@ * possible to read bytes from this packet. * Read will write up to size bytes into data. * - * It is possible to use read multible times. + * It is possible to use read multible times. * Each time read will start reading after the last read byte before. * * @returns * The number of byte read. */ int read(char *data, int size); - + /** Gives the ethernet address of the mbed. * * @param mac Must be a pointer to a 6 byte char array to copy the ethernet address in. @@ -132,7 +132,7 @@ void address(char *mac); /** Returns if an ethernet link is pressent or not. It takes a wile after Ethernet initializion to show up. - * + * * @returns * 0 if no ethernet link is pressent, * 1 if an ethernet link is pressent. @@ -141,7 +141,7 @@ * @code * // Using the Ethernet link function * #include "mbed.h" - * + * * Ethernet eth; * * int main() {