KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Receive packet API for the BBA More...
Typedefs | |
typedef void(* | eth_rx_callback_t) (uint8 *pkt, int len) |
Receive packet callback function type. | |
Functions | |
void | bba_set_rx_callback (eth_rx_callback_t cb) |
Set the ethernet packet receive callback. | |
Receive packet API for the BBA
typedef void(* eth_rx_callback_t) (uint8 *pkt, int len) |
Receive packet callback function type.
When a packet is received by the BBA, the callback function will be called to handle it.
pkt | A pointer to the packet in question. |
len | The length, in bytes, of the packet. |
void bba_set_rx_callback | ( | eth_rx_callback_t | cb | ) |
Set the ethernet packet receive callback.
This function sets the function called when a packet is received by the BBA. Generally, this inputs into the network layer.
cb | A pointer to the new callback function. |