Last change
on this file since 473 was 374, checked in by coas-nagasima, 5 years ago |
mbed関連を更新
シリアルドライバをmbedのHALを使うよう変更
ファイルディスクリプタの処理を更新
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-chdr;charset=UTF-8
|
File size:
964 bytes
|
Line | |
---|
1 |
|
---|
2 | #ifndef ETHERNETEXT_H
|
---|
3 | #define ETHERNETEXT_H
|
---|
4 |
|
---|
5 | #ifdef __cplusplus
|
---|
6 | extern "C" {
|
---|
7 | #endif
|
---|
8 |
|
---|
9 | /* PHY link mode */
|
---|
10 | #define NEGO_FAIL (0)
|
---|
11 | #define HALF_10M (1)
|
---|
12 | #define FULL_10M (2)
|
---|
13 | #define HALF_TX (3)
|
---|
14 | #define FULL_TX (4)
|
---|
15 |
|
---|
16 | #define PROMISCUOUS_MODE (0x80000000)
|
---|
17 |
|
---|
18 | typedef void (ethernetext_cb_fnc)(void);
|
---|
19 |
|
---|
20 | typedef struct tag_ethernet_cfg {
|
---|
21 | int int_priority;
|
---|
22 | ethernetext_cb_fnc *recv_cb;
|
---|
23 | char *ether_mac;
|
---|
24 | } ethernet_cfg_t;
|
---|
25 |
|
---|
26 | extern int ethernetext_init(ethernet_cfg_t *p_ethcfg);
|
---|
27 | extern void ethernetext_start_stop(int32_t mode);
|
---|
28 | extern int ethernetext_chk_link_mode(void);
|
---|
29 | extern void ethernetext_set_link_mode(int32_t link);
|
---|
30 | extern void ethernetext_add_multicast_group(const uint8_t *addr);
|
---|
31 | extern void ethernetext_remove_multicast_group(const uint8_t *addr);
|
---|
32 | extern void ethernetext_set_all_multicast(int all);
|
---|
33 | #ifdef __cplusplus
|
---|
34 | }
|
---|
35 | #endif
|
---|
36 |
|
---|
37 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.