all repos — mgba @ 362c572009ac74f34eda03b4b4b7b5f93faa1daf

mGBA Game Boy Advance Emulator

src/platform/python/sio.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#ifdef M_CORE_GBA
 7
 8#include <mgba/gba/interface.h>
 9
10struct GBASIOPythonDriver {
11    struct GBASIODriver d;
12    void* pyobj;
13};
14
15struct GBASIODriver* GBASIOPythonDriverCreate(void* pyobj);
16
17PYEXPORT bool _pyGBASIOPythonDriverInit(void* driver);
18PYEXPORT void _pyGBASIOPythonDriverDeinit(void* driver);
19PYEXPORT bool _pyGBASIOPythonDriverLoad(void* driver);
20PYEXPORT bool _pyGBASIOPythonDriverUnload(void* driver);
21PYEXPORT uint16_t _pyGBASIOPythonDriverWriteRegister(void* driver, uint32_t address, uint16_t value);
22
23#endif
24
25#ifdef M_CORE_GB
26
27#include <mgba/gb/interface.h>
28
29struct GBSIOPythonDriver {
30    struct GBSIODriver d;
31    void* pyobj;
32};
33
34struct GBSIODriver* GBSIOPythonDriverCreate(void* pyobj);
35
36PYEXPORT bool _pyGBSIOPythonDriverInit(void* driver);
37PYEXPORT void _pyGBSIOPythonDriverDeinit(void* driver);
38PYEXPORT void _pyGBSIOPythonDriverWriteSB(void* driver, uint8_t value);
39PYEXPORT uint8_t _pyGBSIOPythonDriverWriteSC(void* driver, uint8_t value);
40
41#endif