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

Transmit packet API for the BBA. More...

Modules

 Return Values
 Return values for bba_tx()
 
 Wait Modes
 Wait modes for bba_tx()
 

Functions

int bba_tx (const uint8 *pkt, int len, int wait)
 Transmit a single packet.
 

Detailed Description

Transmit packet API for the BBA.

Function Documentation

◆ bba_tx()

int bba_tx ( const uint8 pkt,
int  len,
int  wait 
)

Transmit a single packet.

This function transmits a single packet on the bba, waiting for the link to become stable, if requested.

Parameters
pktThe packet to transmit.
lenThe length of the packet, in bytes.
waitBBA_TX_WAIT if you don't mind blocking for the all clear to transmit, BBA_TX_NOWAIT otherwise.
Return values
BBA_TX_OKOn success.
BBA_TX_ERRORIf there was an error transmitting the packet.
BBA_TX_AGAINIf BBA_TX_NOWAIT was specified and it is not ok to transmit right now.