Mouse code for the MacroRat
mbed-dev/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/ethernetext_api.h@18:6a4db94011d3, 2017-05-14 (annotated)
- Committer:
- sahilmgandhi
- Date:
- Sun May 14 23:18:57 2017 +0000
- Revision:
- 18:6a4db94011d3
Publishing again
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sahilmgandhi | 18:6a4db94011d3 | 1 | |
sahilmgandhi | 18:6a4db94011d3 | 2 | /* PHY link mode */ |
sahilmgandhi | 18:6a4db94011d3 | 3 | #define NEGO_FAIL (0) |
sahilmgandhi | 18:6a4db94011d3 | 4 | #define HALF_10M (1) |
sahilmgandhi | 18:6a4db94011d3 | 5 | #define FULL_10M (2) |
sahilmgandhi | 18:6a4db94011d3 | 6 | #define HALF_TX (3) |
sahilmgandhi | 18:6a4db94011d3 | 7 | #define FULL_TX (4) |
sahilmgandhi | 18:6a4db94011d3 | 8 | |
sahilmgandhi | 18:6a4db94011d3 | 9 | typedef void (ethernetext_cb_fnc)(void); |
sahilmgandhi | 18:6a4db94011d3 | 10 | |
sahilmgandhi | 18:6a4db94011d3 | 11 | typedef struct tag_ethernet_cfg { |
sahilmgandhi | 18:6a4db94011d3 | 12 | int int_priority; |
sahilmgandhi | 18:6a4db94011d3 | 13 | ethernetext_cb_fnc *recv_cb; |
sahilmgandhi | 18:6a4db94011d3 | 14 | char *ether_mac; |
sahilmgandhi | 18:6a4db94011d3 | 15 | } ethernet_cfg_t; |
sahilmgandhi | 18:6a4db94011d3 | 16 | |
sahilmgandhi | 18:6a4db94011d3 | 17 | extern int ethernetext_init(ethernet_cfg_t *p_ethcfg); |
sahilmgandhi | 18:6a4db94011d3 | 18 | extern void ethernetext_start_stop(int32_t mode); |
sahilmgandhi | 18:6a4db94011d3 | 19 | extern int ethernetext_chk_link_mode(void); |
sahilmgandhi | 18:6a4db94011d3 | 20 | extern void ethernetext_set_link_mode(int32_t link); |