include/mgba/internal/ds/wifi.h (view raw)
1/* Copyright (c) 2013-2017 Jeffrey Pfau
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6#ifndef DS_WIFI_H
7#define DS_WIFI_H
8
9#include <mgba-util/common.h>
10
11CXX_GUARD_START
12
13#include <mgba/core/log.h>
14
15mLOG_DECLARE_CATEGORY(DS_WIFI);
16
17struct DSWifi {
18 uint16_t io[0x800];
19 uint16_t wram[0x1000];
20 uint8_t baseband[0x100];
21};
22
23struct DS;
24void DSWifiReset(struct DS* ds);
25void DSWifiWriteIO(struct DS* ds, uint32_t address, uint16_t value);
26uint16_t DSWifiReadIO(struct DS* ds, uint32_t address);
27
28CXX_GUARD_END
29
30#endif