55a4ef917532453cc39576073284cfb60d9752af
Stefan Schuermans begin of ethernet RX implem...

Stefan Schuermans authored 12 years ago

1) #ifndef ETH_H
2) #define ETH_H
3) 
Stefan Schuermans made MAC configurable in et...

Stefan Schuermans authored 12 years ago

4) /** initialize MAC address */
5) void eth_mac_init(void);
6) 
Stefan Schuermans implemented ethernet RX bus...

Stefan Schuermans authored 12 years ago

7) /** initialize receiver */
8) void eth_rx_init(void);
Stefan Schuermans begin of ethernet RX implem...

Stefan Schuermans authored 12 years ago

9) 
Stefan Schuermans added padding of ethernet p...

Stefan Schuermans authored 12 years ago

10) /** initialize transmitter */
11) void eth_tx_init(void);
12) 
Stefan Schuermans begin of ethernet RX implem...

Stefan Schuermans authored 12 years ago

13) /**
Stefan Schuermans implemented ethernet RX bus...

Stefan Schuermans authored 12 years ago

14)  * @brief get next received packet
15)  * @param[out] *pptr pointer to packet data
16)  * @param[out] *psz size of packet
17)  * @return if a packet was received
Stefan Schuermans begin of ethernet RX implem...

Stefan Schuermans authored 12 years ago

18)  */
Stefan Schuermans implemented ethernet RX bus...

Stefan Schuermans authored 12 years ago

19) int eth_rx(void **pptr, unsigned int *psz);
Stefan Schuermans begin of ethernet RX implem...

Stefan Schuermans authored 12 years ago

20) 
Stefan Schuermans implemented ethernet TX fir...

Stefan Schuermans authored 12 years ago

21) /**
22)  * @brief transmit packet
Stefan Schuermans added padding of ethernet p...

Stefan Schuermans authored 12 years ago

23)  * @param[in] ptr pointer to packet data
24)  * @param[in] sz size of packet
25)  *
26)  * Padding will be appended if sz is not a multiple of 4 or smaller 60 bytes.
27)  * The buffer pointed to by ptr must be sufficiently large.
Stefan Schuermans implemented ethernet TX fir...

Stefan Schuermans authored 12 years ago

28)  */
Stefan Schuermans ethernet TX function takes...

Stefan Schuermans authored 12 years ago

29) void eth_tx(const void *ptr, unsigned int sz);
Stefan Schuermans implemented ethernet TX fir...

Stefan Schuermans authored 12 years ago

30) 
Stefan Schuermans added padding of ethernet p...

Stefan Schuermans authored 12 years ago

31) /** get number of received packets */
32) unsigned int eth_rx_get_cnt(void);
33) 
34) /** get number of transmitted packets */
35) unsigned int eth_tx_get_cnt(void);
36)