JBus
JoyBus communication server
|
#include <Endpoint.hpp>
Public Member Functions | |
EJoyReturn | GBAGetStatusAsync (u8 *status, FGBACallback &&callback) |
Get JOYSTAT register from GBA asynchronously. More... | |
EJoyReturn | GBAResetAsync (u8 *status, FGBACallback &&callback) |
Send RESET command to GBA asynchronously. More... | |
EJoyReturn | GBAReadAsync (u8 *dst, u8 *status, FGBACallback &&callback) |
Send READ command to GBA asynchronously. More... | |
EJoyReturn | GBAWriteAsync (const u8 *src, u8 *status, FGBACallback &&callback) |
Send WRITE command to GBA asynchronously. More... | |
int | GetChan () const |
Get virtual SI channel assigned to this endpoint. More... | |
Friends | |
class | Endpoint |
Lockless wrapper interface for jbus::Endpoint. This class is constructed internally and supplied as a callback argument. It should not be constructed directly.
EJoyReturn jbus::ThreadLocalEndpoint::GBAGetStatusAsync | ( | u8 * | status, |
FGBACallback && | callback | ||
) |
Get JOYSTAT register from GBA asynchronously.
status | Destination pointer for EJStatFlags. |
callback | Functor to execute when operation completes. |
EJoyReturn jbus::ThreadLocalEndpoint::GBAReadAsync | ( | u8 * | dst, |
u8 * | status, | ||
FGBACallback && | callback | ||
) |
Send READ command to GBA asynchronously.
dst | Destination pointer for 4-byte packet of data. |
status | Destination pointer for EJStatFlags. |
callback | Functor to execute when operation completes. |
EJoyReturn jbus::ThreadLocalEndpoint::GBAResetAsync | ( | u8 * | status, |
FGBACallback && | callback | ||
) |
Send RESET command to GBA asynchronously.
status | Destination pointer for EJStatFlags. |
callback | Functor to execute when operation completes. |
EJoyReturn jbus::ThreadLocalEndpoint::GBAWriteAsync | ( | const u8 * | src, |
u8 * | status, | ||
FGBACallback && | callback | ||
) |
Send WRITE command to GBA asynchronously.
src | Source pointer for 4-byte packet of data. It is not required to keep resident. |
status | Destination pointer for EJStatFlags. |
callback | Functor to execute when operation completes. |
|
inline |
Get virtual SI channel assigned to this endpoint.
|
friend |