KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches

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.
 

Detailed Description

Receive packet API for the BBA

Typedef Documentation

◆ eth_rx_callback_t

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.

Parameters
pktA pointer to the packet in question.
lenThe length, in bytes, of the packet.

Function Documentation

◆ bba_set_rx_callback()

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.

Parameters
cbA pointer to the new callback function.