#include <Endpoint.hpp>
|
| void | stop () |
| | Request stop of I/O thread and block until joined. Further use of this Endpoint is undefined behavior. The destructor calls this implicitly. More...
|
| |
| EJoyReturn | GBAGetProcessStatus (u8 &percentOut) |
| | Get status of last asynchronous operation. More...
|
| |
| EJoyReturn | GBAGetStatusAsync (u8 *status, FGBACallback &&callback) |
| | Get JOYSTAT register from GBA asynchronously. More...
|
| |
| EJoyReturn | GBAGetStatus (u8 *status) |
| | Get JOYSTAT register from GBA synchronously. More...
|
| |
| EJoyReturn | GBAResetAsync (u8 *status, FGBACallback &&callback) |
| | Send RESET command to GBA asynchronously. More...
|
| |
| EJoyReturn | GBAReset (u8 *status) |
| | Send RESET command to GBA synchronously. More...
|
| |
| EJoyReturn | GBAReadAsync (u8 *dst, u8 *status, FGBACallback &&callback) |
| | Send READ command to GBA asynchronously. More...
|
| |
| EJoyReturn | GBARead (u8 *dst, u8 *status) |
| | Send READ command to GBA synchronously. More...
|
| |
| EJoyReturn | GBAWriteAsync (const u8 *src, u8 *status, FGBACallback &&callback) |
| | Send WRITE command to GBA asynchronously. More...
|
| |
| EJoyReturn | GBAWrite (const u8 *src, u8 *status) |
| | Send WRITE command to GBA synchronously. More...
|
| |
| EJoyReturn | GBAJoyBootAsync (s32 paletteColor, s32 paletteSpeed, const u8 *programp, s32 length, u8 *status, FGBACallback &&callback) |
| | Initiate JoyBoot sequence on this endpoint. More...
|
| |
| int | GetChan () const |
| | Get virtual SI channel assigned to this endpoint. More...
|
| |
| | Endpoint (u8 chan, net::Socket &&data, net::Socket &&clock) |
| |
| | ~Endpoint () |
| |
Main class for performing JoyBoot and subsequent JoyBus I/O operations. Instances should be obtained though the jbus::Listener::accept method.
| jbus::Endpoint::~Endpoint |
( |
| ) |
|
| EJoyReturn jbus::Endpoint::GBAGetProcessStatus |
( |
u8 & |
percentOut | ) |
|
Get status of last asynchronous operation.
- Parameters
-
| percentOut | Reference to output transfer percent of GBAJoyBootAsync. |
- Returns
- GBA_READY when idle, or GBA_BUSY when operation in progress.
Get JOYSTAT register from GBA synchronously.
- Parameters
-
| status | Destination pointer for EJStatFlags. |
- Returns
- GBA_READY if submitted, or GBA_NOT_READY if another operation in progress.
Get JOYSTAT register from GBA asynchronously.
- Parameters
-
| status | Destination pointer for EJStatFlags. |
| callback | Functor to execute when operation completes. |
- Returns
- GBA_READY if submitted, or GBA_NOT_READY if another operation in progress.
Initiate JoyBoot sequence on this endpoint.
- Parameters
-
| paletteColor | Palette for displaying logo in ROM header [0,6]. |
| paletteSpeed | Palette interpolation speed for displaying logo in ROM header [-4,4]. |
| programp | Pointer to program ROM data. |
| length | Length of program ROM data. |
| status | Destination pointer for EJStatFlags. |
| callback | Functor to execute when operation completes. |
- Returns
- GBA_READY if submitted, or GBA_NOT_READY if another operation in progress.
Send READ command to GBA synchronously.
- Parameters
-
| dst | Destination pointer for 4-byte packet of data. |
| status | Destination pointer for EJStatFlags. |
- Returns
- GBA_READY if submitted, or GBA_NOT_READY if another operation in progress.
Send READ command to GBA asynchronously.
- Parameters
-
| dst | Destination pointer for 4-byte packet of data. |
| status | Destination pointer for EJStatFlags. |
| callback | Functor to execute when operation completes. |
- Returns
- GBA_READY if submitted, or GBA_NOT_READY if another operation in progress.
Send RESET command to GBA synchronously.
- Parameters
-
| status | Destination pointer for EJStatFlags. |
- Returns
- GBA_READY if submitted, or GBA_NOT_READY if another operation in progress.
Send RESET command to GBA asynchronously.
- Parameters
-
| status | Destination pointer for EJStatFlags. |
| callback | Functor to execute when operation completes. |
- Returns
- GBA_READY if submitted, or GBA_NOT_READY if another operation in progress.
Send WRITE command to GBA synchronously.
- Parameters
-
| src | Source pointer for 4-byte packet of data. It is not required to keep resident. |
| status | Destination pointer for EJStatFlags. |
- Returns
- GBA_READY if submitted, or GBA_NOT_READY if another operation in progress.
Send WRITE command to GBA asynchronously.
- Parameters
-
| 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. |
- Returns
- GBA_READY if submitted, or GBA_NOT_READY if another operation in progress.
| int jbus::Endpoint::GetChan |
( |
| ) |
const |
|
inline |
Get virtual SI channel assigned to this endpoint.
- Returns
- SI channel
| void jbus::Endpoint::stop |
( |
| ) |
|
Request stop of I/O thread and block until joined. Further use of this Endpoint is undefined behavior. The destructor calls this implicitly.
The documentation for this class was generated from the following file: