JBus
JoyBus communication server
jbus::ThreadLocalEndpoint Class Reference

#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
 

Detailed Description

Lockless wrapper interface for jbus::Endpoint. This class is constructed internally and supplied as a callback argument. It should not be constructed directly.

Member Function Documentation

EJoyReturn jbus::ThreadLocalEndpoint::GBAGetStatusAsync ( u8 status,
FGBACallback &&  callback 
)

Get JOYSTAT register from GBA asynchronously.

Parameters
statusDestination pointer for EJStatFlags.
callbackFunctor to execute when operation completes.
Returns
GBA_READY if submitted, or GBA_NOT_READY if another operation in progress.
EJoyReturn jbus::ThreadLocalEndpoint::GBAReadAsync ( u8 dst,
u8 status,
FGBACallback &&  callback 
)

Send READ command to GBA asynchronously.

Parameters
dstDestination pointer for 4-byte packet of data.
statusDestination pointer for EJStatFlags.
callbackFunctor to execute when operation completes.
Returns
GBA_READY if submitted, or GBA_NOT_READY if another operation in progress.
EJoyReturn jbus::ThreadLocalEndpoint::GBAResetAsync ( u8 status,
FGBACallback &&  callback 
)

Send RESET command to GBA asynchronously.

Parameters
statusDestination pointer for EJStatFlags.
callbackFunctor to execute when operation completes.
Returns
GBA_READY if submitted, or GBA_NOT_READY if another operation in progress.
EJoyReturn jbus::ThreadLocalEndpoint::GBAWriteAsync ( const u8 src,
u8 status,
FGBACallback &&  callback 
)

Send WRITE command to GBA asynchronously.

Parameters
srcSource pointer for 4-byte packet of data. It is not required to keep resident.
statusDestination pointer for EJStatFlags.
callbackFunctor to execute when operation completes.
Returns
GBA_READY if submitted, or GBA_NOT_READY if another operation in progress.
int jbus::ThreadLocalEndpoint::GetChan ( ) const
inline

Get virtual SI channel assigned to this endpoint.

Returns
SI channel

Here is the call graph for this function:

Friends And Related Function Documentation

friend class Endpoint
friend

The documentation for this class was generated from the following file: