KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
w5500_adapter.h
Go to the documentation of this file.
1/* KallistiOS ##version##
2
3 dc/net/w5500_adapter.h
4 Copyright (C) 2025 Ruslan Rostovtsev
5
6*/
7
8/** \file dc/net/w5500_adapter.h
9 \brief WIZnet W5500 network adapter support.
10 \ingroup w5500_adapter
11
12 This file contains declarations related to support for the WIZnet W5500
13 network adapter on both SCI-SPI and SCIF-SPI interfaces.
14
15 \author Ruslan Rostovtsev
16*/
17
18#ifndef __DC_NET_W5500_ADAPTER_H
19#define __DC_NET_W5500_ADAPTER_H
20
21#include <kos/cdefs.h>
22#include <stdbool.h>
23#include <stdint.h>
24
25__BEGIN_DECLS
26
27/** \defgroup w5500_adapter W5500 Adapter
28 \brief Driver for the WIZnet W5500 Adapter
29 \ingroup networking_drivers
30*/
31
32/** \brief Initialize the W5500 adapter.
33
34 \param mac_addr Optional MAC address (NULL to use default)
35 \param use_thread Enable background RX thread (true) or manual polling (false)
36 \return 0 on success, <0 on failure
37*/
38int w5500_adapter_init(const uint8_t *mac_addr, bool use_thread);
39
40/** \brief Shutdown the W5500 adapter.
41 \return 0 on success
42*/
44
45__END_DECLS
46
47#endif /* __DC_NET_W5500_ADAPTER_H */
Various common macros used throughout the codebase.
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.