JBus
JoyBus communication server
|
#include <functional>
#include <stdint.h>
#include <stdlib.h>
Go to the source code of this file.
Namespaces | |
jbus | |
Typedefs | |
using | jbus::s8 = int8_t |
using | jbus::u8 = uint8_t |
using | jbus::s16 = int16_t |
using | jbus::u16 = uint16_t |
using | jbus::s32 = int32_t |
using | jbus::u32 = uint32_t |
using | jbus::s64 = int64_t |
using | jbus::u64 = uint64_t |
using | jbus::FGBACallback = std::function< void(ThreadLocalEndpoint &endpoint, EJoyReturn status)> |
Standard callback for asynchronous jbus::Endpoint APIs. More... | |
Enumerations | |
enum | jbus::EJStatFlags { jbus::GBA_JSTAT_MASK = 0x3a, jbus::GBA_JSTAT_FLAGS_SHIFT = 4, jbus::GBA_JSTAT_FLAGS_MASK = 0x30, jbus::GBA_JSTAT_PSF1 = 0x20, jbus::GBA_JSTAT_PSF0 = 0x10, jbus::GBA_JSTAT_SEND = 0x08, jbus::GBA_JSTAT_RECV = 0x02 } |
enum | jbus::EJoyReturn { jbus::GBA_READY = 0, jbus::GBA_NOT_READY = 1, jbus::GBA_BUSY = 2, jbus::GBA_JOYBOOT_UNKNOWN_STATE = 3, jbus::GBA_JOYBOOT_ERR_INVALID = 4 } |
Functions | |
u64 | jbus::GetGCTicks () |
Get host system's timebase scaled into Dolphin ticks. More... | |
void | jbus::WaitGCTicks (u64 ticks) |
Wait an approximate Dolphin tick duration (avoid using, it's rather inaccurate). More... | |
void | jbus::Initialize () |
Initialize platform specifics of JBus library. More... | |