EthernetNetIf
Dependents: XBee_WiFi_EA_LPC4088
drv/eth/eth_drv.h@0:62580107d20c, 2014-11-19 (annotated)
- Committer:
- hmike
- Date:
- Wed Nov 19 12:00:42 2014 +0000
- Revision:
- 0:62580107d20c
EthernetNetIf
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hmike | 0:62580107d20c | 1 | |
hmike | 0:62580107d20c | 2 | /* |
hmike | 0:62580107d20c | 3 | Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com) |
hmike | 0:62580107d20c | 4 | |
hmike | 0:62580107d20c | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy |
hmike | 0:62580107d20c | 6 | of this software and associated documentation files (the "Software"), to deal |
hmike | 0:62580107d20c | 7 | in the Software without restriction, including without limitation the rights |
hmike | 0:62580107d20c | 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
hmike | 0:62580107d20c | 9 | copies of the Software, and to permit persons to whom the Software is |
hmike | 0:62580107d20c | 10 | furnished to do so, subject to the following conditions: |
hmike | 0:62580107d20c | 11 | |
hmike | 0:62580107d20c | 12 | The above copyright notice and this permission notice shall be included in |
hmike | 0:62580107d20c | 13 | all copies or substantial portions of the Software. |
hmike | 0:62580107d20c | 14 | |
hmike | 0:62580107d20c | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
hmike | 0:62580107d20c | 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
hmike | 0:62580107d20c | 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
hmike | 0:62580107d20c | 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
hmike | 0:62580107d20c | 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
hmike | 0:62580107d20c | 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
hmike | 0:62580107d20c | 21 | THE SOFTWARE. |
hmike | 0:62580107d20c | 22 | */ |
hmike | 0:62580107d20c | 23 | |
hmike | 0:62580107d20c | 24 | #ifndef ETHDRV_H |
hmike | 0:62580107d20c | 25 | #define ETHDRV_H |
hmike | 0:62580107d20c | 26 | |
hmike | 0:62580107d20c | 27 | #ifdef __cplusplus |
hmike | 0:62580107d20c | 28 | extern "C" { |
hmike | 0:62580107d20c | 29 | #endif |
hmike | 0:62580107d20c | 30 | |
hmike | 0:62580107d20c | 31 | void eth_poll(); |
hmike | 0:62580107d20c | 32 | err_t eth_init(struct netif* netif); |
hmike | 0:62580107d20c | 33 | void eth_address(char* mac); |
hmike | 0:62580107d20c | 34 | void eth_free(); |
hmike | 0:62580107d20c | 35 | |
hmike | 0:62580107d20c | 36 | #ifdef __cplusplus |
hmike | 0:62580107d20c | 37 | }; |
hmike | 0:62580107d20c | 38 | #endif |
hmike | 0:62580107d20c | 39 | |
hmike | 0:62580107d20c | 40 | #endif |