diff options
| author | Peter Lawrence <[email protected]> | 2020-03-03 10:31:46 -0600 |
|---|---|---|
| committer | Peter Lawrence <[email protected]> | 2020-03-03 10:31:46 -0600 |
| commit | 4a4682a80a2bd3d6d607d5a960443656de32955d (patch) | |
| tree | ef0fa610bdeb7e7509b73302962446520d283429 /src/class/net/net_device.h | |
| parent | fee79d746604f671483f5872337ea366f2d2c1a2 (diff) | |
update net class to follow API naming convention
Diffstat (limited to 'src/class/net/net_device.h')
| -rw-r--r-- | src/class/net/net_device.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/class/net/net_device.h b/src/class/net/net_device.h index c61efc86c..fee54163f 100644 --- a/src/class/net/net_device.h +++ b/src/class/net/net_device.h @@ -49,22 +49,22 @@ //--------------------------------------------------------------------+ // client must provide this: initialize any network state back to the beginning -void network_init_callback(void); +void tud_network_init_cb(void); // client must provide this: return false if the packet buffer was not accepted -bool network_recv_callback(struct pbuf *p); +bool tud_network_recv_cb(struct pbuf *p); // client must provide this: 48-bit MAC address -extern const uint8_t network_mac_address[6]; +extern const uint8_t tud_network_mac_address[6]; -// indicate to network driver that client has finished with the packet provided to network_recv_callback() -void network_recv_renew(void); +// indicate to network driver that client has finished with the packet provided to network_recv_cb() +void tud_network_recv_renew(void); // poll network driver for its ability to accept another packet to transmit -bool network_can_xmit(void); +bool tud_network_can_xmit(void); // if network_can_xmit() returns true, network_xmit() can be called once -void network_xmit(struct pbuf *p); +void tud_network_xmit(struct pbuf *p); //--------------------------------------------------------------------+ // INTERNAL USBD-CLASS DRIVER API |
