KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
w5500_adapter.h File Reference

WIZnet W5500 network adapter support. More...

#include <kos/cdefs.h>
#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

Functions

int w5500_adapter_init (const uint8_t *mac_addr, bool use_thread)
 Initialize the W5500 adapter.
 
int w5500_adapter_shutdown (void)
 Shutdown the W5500 adapter.
 

Detailed Description

WIZnet W5500 network adapter support.

This file contains declarations related to support for the WIZnet W5500 network adapter on both SCI-SPI and SCIF-SPI interfaces.

Author
Ruslan Rostovtsev

Function Documentation

◆ w5500_adapter_init()

int w5500_adapter_init ( const uint8_t * mac_addr,
bool use_thread )

Initialize the W5500 adapter.

Parameters
mac_addrOptional MAC address (NULL to use default)
use_threadEnable background RX thread (true) or manual polling (false)
Returns
0 on success, <0 on failure

◆ w5500_adapter_shutdown()

int w5500_adapter_shutdown ( void )

Shutdown the W5500 adapter.

Returns
0 on success