jbus/classjbus_1_1Endpoint.html

711 lines
39 KiB
HTML
Raw Normal View History

2017-01-07 23:46:40 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>JBus: jbus::Endpoint Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">JBus
</div>
<div id="projectbrief">JoyBus communication server</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classjbus_1_1Endpoint.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classjbus_1_1Endpoint-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">jbus::Endpoint Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="Endpoint_8hpp_source.html">Endpoint.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a1cae93f2e1e097b10b34810a0d04333f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1Endpoint.html#a1cae93f2e1e097b10b34810a0d04333f">stop</a> ()</td></tr>
<tr class="memdesc:a1cae93f2e1e097b10b34810a0d04333f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Request stop of I/O thread and block until joined. Further use of this <a class="el" href="classjbus_1_1Endpoint.html">Endpoint</a> is undefined behavior. The destructor calls this implicitly. <a href="#a1cae93f2e1e097b10b34810a0d04333f">More...</a><br /></td></tr>
<tr class="separator:a1cae93f2e1e097b10b34810a0d04333f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50401a9a9d658f1f68e3dde61d5dfbce"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacejbus.html#a7118bfa3cb9d51e588418220bca20117">EJoyReturn</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1Endpoint.html#a50401a9a9d658f1f68e3dde61d5dfbce">GBAGetProcessStatus</a> (<a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> &amp;percentOut)</td></tr>
<tr class="memdesc:a50401a9a9d658f1f68e3dde61d5dfbce"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get status of last asynchronous operation. <a href="#a50401a9a9d658f1f68e3dde61d5dfbce">More...</a><br /></td></tr>
<tr class="separator:a50401a9a9d658f1f68e3dde61d5dfbce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ba9120b99057be42940b797708b790e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacejbus.html#a7118bfa3cb9d51e588418220bca20117">EJoyReturn</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1Endpoint.html#a4ba9120b99057be42940b797708b790e">GBAGetStatusAsync</a> (<a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *status, <a class="el" href="namespacejbus.html#ae1577e03ea8c6e27361cb389c992280d">FGBACallback</a> &amp;&amp;callback)</td></tr>
<tr class="memdesc:a4ba9120b99057be42940b797708b790e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get JOYSTAT register from GBA asynchronously. <a href="#a4ba9120b99057be42940b797708b790e">More...</a><br /></td></tr>
<tr class="separator:a4ba9120b99057be42940b797708b790e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a779ba524cf30f41e29fd53a626ba2acf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacejbus.html#a7118bfa3cb9d51e588418220bca20117">EJoyReturn</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1Endpoint.html#a779ba524cf30f41e29fd53a626ba2acf">GBAGetStatus</a> (<a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *status)</td></tr>
<tr class="memdesc:a779ba524cf30f41e29fd53a626ba2acf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get JOYSTAT register from GBA synchronously. <a href="#a779ba524cf30f41e29fd53a626ba2acf">More...</a><br /></td></tr>
<tr class="separator:a779ba524cf30f41e29fd53a626ba2acf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81d86608ffb93b3211a915fa1712beb4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacejbus.html#a7118bfa3cb9d51e588418220bca20117">EJoyReturn</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1Endpoint.html#a81d86608ffb93b3211a915fa1712beb4">GBAResetAsync</a> (<a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *status, <a class="el" href="namespacejbus.html#ae1577e03ea8c6e27361cb389c992280d">FGBACallback</a> &amp;&amp;callback)</td></tr>
<tr class="memdesc:a81d86608ffb93b3211a915fa1712beb4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send RESET command to GBA asynchronously. <a href="#a81d86608ffb93b3211a915fa1712beb4">More...</a><br /></td></tr>
<tr class="separator:a81d86608ffb93b3211a915fa1712beb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9065f6189182596a3f5c498e8ef98b40"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacejbus.html#a7118bfa3cb9d51e588418220bca20117">EJoyReturn</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1Endpoint.html#a9065f6189182596a3f5c498e8ef98b40">GBAReset</a> (<a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *status)</td></tr>
<tr class="memdesc:a9065f6189182596a3f5c498e8ef98b40"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send RESET command to GBA synchronously. <a href="#a9065f6189182596a3f5c498e8ef98b40">More...</a><br /></td></tr>
<tr class="separator:a9065f6189182596a3f5c498e8ef98b40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a047d724cc9ccb8253cb8464c24b9ccd4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacejbus.html#a7118bfa3cb9d51e588418220bca20117">EJoyReturn</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1Endpoint.html#a047d724cc9ccb8253cb8464c24b9ccd4">GBAReadAsync</a> (<a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *dst, <a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *status, <a class="el" href="namespacejbus.html#ae1577e03ea8c6e27361cb389c992280d">FGBACallback</a> &amp;&amp;callback)</td></tr>
<tr class="memdesc:a047d724cc9ccb8253cb8464c24b9ccd4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send READ command to GBA asynchronously. <a href="#a047d724cc9ccb8253cb8464c24b9ccd4">More...</a><br /></td></tr>
<tr class="separator:a047d724cc9ccb8253cb8464c24b9ccd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a775c816f52ca45117759b5b23eb45683"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacejbus.html#a7118bfa3cb9d51e588418220bca20117">EJoyReturn</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1Endpoint.html#a775c816f52ca45117759b5b23eb45683">GBARead</a> (<a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *dst, <a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *status)</td></tr>
<tr class="memdesc:a775c816f52ca45117759b5b23eb45683"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send READ command to GBA synchronously. <a href="#a775c816f52ca45117759b5b23eb45683">More...</a><br /></td></tr>
<tr class="separator:a775c816f52ca45117759b5b23eb45683"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06506d0cfa26d461f239ed761264d7b0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacejbus.html#a7118bfa3cb9d51e588418220bca20117">EJoyReturn</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1Endpoint.html#a06506d0cfa26d461f239ed761264d7b0">GBAWriteAsync</a> (const <a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *src, <a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *status, <a class="el" href="namespacejbus.html#ae1577e03ea8c6e27361cb389c992280d">FGBACallback</a> &amp;&amp;callback)</td></tr>
<tr class="memdesc:a06506d0cfa26d461f239ed761264d7b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send WRITE command to GBA asynchronously. <a href="#a06506d0cfa26d461f239ed761264d7b0">More...</a><br /></td></tr>
<tr class="separator:a06506d0cfa26d461f239ed761264d7b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e59373aa28a23097129470deaeb46dd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacejbus.html#a7118bfa3cb9d51e588418220bca20117">EJoyReturn</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1Endpoint.html#a6e59373aa28a23097129470deaeb46dd">GBAWrite</a> (const <a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *src, <a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *status)</td></tr>
<tr class="memdesc:a6e59373aa28a23097129470deaeb46dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send WRITE command to GBA synchronously. <a href="#a6e59373aa28a23097129470deaeb46dd">More...</a><br /></td></tr>
<tr class="separator:a6e59373aa28a23097129470deaeb46dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad76a9374e4e151540f678798548a843"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacejbus.html#a7118bfa3cb9d51e588418220bca20117">EJoyReturn</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1Endpoint.html#aad76a9374e4e151540f678798548a843">GBAJoyBootAsync</a> (<a class="el" href="namespacejbus.html#a33e5022738a0799c066372ce74d04c37">s32</a> paletteColor, <a class="el" href="namespacejbus.html#a33e5022738a0799c066372ce74d04c37">s32</a> paletteSpeed, const <a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *programp, <a class="el" href="namespacejbus.html#a33e5022738a0799c066372ce74d04c37">s32</a> length, <a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *status, <a class="el" href="namespacejbus.html#ae1577e03ea8c6e27361cb389c992280d">FGBACallback</a> &amp;&amp;callback)</td></tr>
<tr class="memdesc:aad76a9374e4e151540f678798548a843"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initiate JoyBoot sequence on this endpoint. <a href="#aad76a9374e4e151540f678798548a843">More...</a><br /></td></tr>
<tr class="separator:aad76a9374e4e151540f678798548a843"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb5167184768ea65d026adc531f237b9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1Endpoint.html#acb5167184768ea65d026adc531f237b9">GetChan</a> () const </td></tr>
<tr class="memdesc:acb5167184768ea65d026adc531f237b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get virtual SI channel assigned to this endpoint. <a href="#acb5167184768ea65d026adc531f237b9">More...</a><br /></td></tr>
<tr class="separator:acb5167184768ea65d026adc531f237b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39ddcbf5ac7078d59a4d99d291e3f0fa"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1Endpoint.html#a39ddcbf5ac7078d59a4d99d291e3f0fa">Endpoint</a> (<a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> chan, <a class="el" href="classjbus_1_1net_1_1Socket.html">net::Socket</a> &amp;&amp;data, <a class="el" href="classjbus_1_1net_1_1Socket.html">net::Socket</a> &amp;&amp;clock)</td></tr>
<tr class="separator:a39ddcbf5ac7078d59a4d99d291e3f0fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad39f268d3bee438e5176cc7f4cf59675"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1Endpoint.html#ad39f268d3bee438e5176cc7f4cf59675">~Endpoint</a> ()</td></tr>
<tr class="separator:ad39f268d3bee438e5176cc7f4cf59675"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:ab5de6af29530791b0b2958002f1d3603"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1Endpoint.html#ab5de6af29530791b0b2958002f1d3603">ThreadLocalEndpoint</a></td></tr>
<tr class="separator:ab5de6af29530791b0b2958002f1d3603"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Main class for performing JoyBoot and subsequent JoyBus I/O operations. Instances should be obtained though the <a class="el" href="classjbus_1_1Listener.html#aca4aeff837a26d69ec7f4dec6572e986" title="Pop jbus::Endpoint off Listener&#39;s queue. ">jbus::Listener::accept</a> method. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a39ddcbf5ac7078d59a4d99d291e3f0fa"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">jbus::Endpoint::Endpoint </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a>&#160;</td>
<td class="paramname"><em>chan</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classjbus_1_1net_1_1Socket.html">net::Socket</a> &amp;&amp;&#160;</td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classjbus_1_1net_1_1Socket.html">net::Socket</a> &amp;&amp;&#160;</td>
<td class="paramname"><em>clock</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classjbus_1_1Endpoint_a39ddcbf5ac7078d59a4d99d291e3f0fa_icgraph.png" border="0" usemap="#classjbus_1_1Endpoint_a39ddcbf5ac7078d59a4d99d291e3f0fa_icgraph" alt=""/></div>
<map name="classjbus_1_1Endpoint_a39ddcbf5ac7078d59a4d99d291e3f0fa_icgraph" id="classjbus_1_1Endpoint_a39ddcbf5ac7078d59a4d99d291e3f0fa_icgraph">
<area shape="rect" id="node2" href="classjbus_1_1Endpoint.html#acb5167184768ea65d026adc531f237b9" title="Get virtual SI channel assigned to this endpoint. " alt="" coords="219,12,386,37"/>
<area shape="rect" id="node3" href="classjbus_1_1ThreadLocalEndpoint.html#a0899b0293f9eb4b69763d8e1e21e58a9" title="Get virtual SI channel assigned to this endpoint. " alt="" coords="434,5,614,44"/>
</map>
</div>
</p>
</div>
</div>
<a class="anchor" id="ad39f268d3bee438e5176cc7f4cf59675"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">jbus::Endpoint::~Endpoint </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classjbus_1_1Endpoint_ad39f268d3bee438e5176cc7f4cf59675_icgraph.png" border="0" usemap="#classjbus_1_1Endpoint_ad39f268d3bee438e5176cc7f4cf59675_icgraph" alt=""/></div>
<map name="classjbus_1_1Endpoint_ad39f268d3bee438e5176cc7f4cf59675_icgraph" id="classjbus_1_1Endpoint_ad39f268d3bee438e5176cc7f4cf59675_icgraph">
<area shape="rect" id="node2" href="classjbus_1_1Endpoint.html#acb5167184768ea65d026adc531f237b9" title="Get virtual SI channel assigned to this endpoint. " alt="" coords="227,12,394,37"/>
<area shape="rect" id="node3" href="classjbus_1_1ThreadLocalEndpoint.html#a0899b0293f9eb4b69763d8e1e21e58a9" title="Get virtual SI channel assigned to this endpoint. " alt="" coords="442,5,622,44"/>
</map>
</div>
</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a50401a9a9d658f1f68e3dde61d5dfbce"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespacejbus.html#a7118bfa3cb9d51e588418220bca20117">EJoyReturn</a> jbus::Endpoint::GBAGetProcessStatus </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> &amp;&#160;</td>
<td class="paramname"><em>percentOut</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get status of last asynchronous operation. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">percentOut</td><td>Reference to output transfer percent of GBAJoyBootAsync. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>GBA_READY when idle, or GBA_BUSY when operation in progress. </dd></dl>
</div>
</div>
<a class="anchor" id="a779ba524cf30f41e29fd53a626ba2acf"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespacejbus.html#a7118bfa3cb9d51e588418220bca20117">EJoyReturn</a> jbus::Endpoint::GBAGetStatus </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *&#160;</td>
<td class="paramname"><em>status</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get JOYSTAT register from GBA synchronously. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">status</td><td>Destination pointer for EJStatFlags. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>GBA_READY if submitted, or GBA_NOT_READY if another operation in progress. </dd></dl>
</div>
</div>
<a class="anchor" id="a4ba9120b99057be42940b797708b790e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespacejbus.html#a7118bfa3cb9d51e588418220bca20117">EJoyReturn</a> jbus::Endpoint::GBAGetStatusAsync </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *&#160;</td>
<td class="paramname"><em>status</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespacejbus.html#ae1577e03ea8c6e27361cb389c992280d">FGBACallback</a> &amp;&amp;&#160;</td>
<td class="paramname"><em>callback</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get JOYSTAT register from GBA asynchronously. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">status</td><td>Destination pointer for EJStatFlags. </td></tr>
<tr><td class="paramname">callback</td><td>Functor to execute when operation completes. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>GBA_READY if submitted, or GBA_NOT_READY if another operation in progress. </dd></dl>
</div>
</div>
<a class="anchor" id="aad76a9374e4e151540f678798548a843"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespacejbus.html#a7118bfa3cb9d51e588418220bca20117">EJoyReturn</a> jbus::Endpoint::GBAJoyBootAsync </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespacejbus.html#a33e5022738a0799c066372ce74d04c37">s32</a>&#160;</td>
<td class="paramname"><em>paletteColor</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespacejbus.html#a33e5022738a0799c066372ce74d04c37">s32</a>&#160;</td>
<td class="paramname"><em>paletteSpeed</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *&#160;</td>
<td class="paramname"><em>programp</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespacejbus.html#a33e5022738a0799c066372ce74d04c37">s32</a>&#160;</td>
<td class="paramname"><em>length</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *&#160;</td>
<td class="paramname"><em>status</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespacejbus.html#ae1577e03ea8c6e27361cb389c992280d">FGBACallback</a> &amp;&amp;&#160;</td>
<td class="paramname"><em>callback</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Initiate JoyBoot sequence on this endpoint. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">paletteColor</td><td>Palette for displaying logo in ROM header [0,6]. </td></tr>
<tr><td class="paramname">paletteSpeed</td><td>Palette interpolation speed for displaying logo in ROM header [-4,4]. </td></tr>
<tr><td class="paramname">programp</td><td>Pointer to program ROM data. </td></tr>
<tr><td class="paramname">length</td><td>Length of program ROM data. </td></tr>
<tr><td class="paramname">status</td><td>Destination pointer for EJStatFlags. </td></tr>
<tr><td class="paramname">callback</td><td>Functor to execute when operation completes. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>GBA_READY if submitted, or GBA_NOT_READY if another operation in progress. </dd></dl>
</div>
</div>
<a class="anchor" id="a775c816f52ca45117759b5b23eb45683"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespacejbus.html#a7118bfa3cb9d51e588418220bca20117">EJoyReturn</a> jbus::Endpoint::GBARead </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *&#160;</td>
<td class="paramname"><em>dst</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *&#160;</td>
<td class="paramname"><em>status</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Send READ command to GBA synchronously. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">dst</td><td>Destination pointer for 4-byte packet of data. </td></tr>
<tr><td class="paramname">status</td><td>Destination pointer for EJStatFlags. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>GBA_READY if submitted, or GBA_NOT_READY if another operation in progress. </dd></dl>
</div>
</div>
<a class="anchor" id="a047d724cc9ccb8253cb8464c24b9ccd4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespacejbus.html#a7118bfa3cb9d51e588418220bca20117">EJoyReturn</a> jbus::Endpoint::GBAReadAsync </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *&#160;</td>
<td class="paramname"><em>dst</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *&#160;</td>
<td class="paramname"><em>status</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespacejbus.html#ae1577e03ea8c6e27361cb389c992280d">FGBACallback</a> &amp;&amp;&#160;</td>
<td class="paramname"><em>callback</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Send READ command to GBA asynchronously. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">dst</td><td>Destination pointer for 4-byte packet of data. </td></tr>
<tr><td class="paramname">status</td><td>Destination pointer for EJStatFlags. </td></tr>
<tr><td class="paramname">callback</td><td>Functor to execute when operation completes. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>GBA_READY if submitted, or GBA_NOT_READY if another operation in progress. </dd></dl>
</div>
</div>
<a class="anchor" id="a9065f6189182596a3f5c498e8ef98b40"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespacejbus.html#a7118bfa3cb9d51e588418220bca20117">EJoyReturn</a> jbus::Endpoint::GBAReset </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *&#160;</td>
<td class="paramname"><em>status</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Send RESET command to GBA synchronously. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">status</td><td>Destination pointer for EJStatFlags. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>GBA_READY if submitted, or GBA_NOT_READY if another operation in progress. </dd></dl>
</div>
</div>
<a class="anchor" id="a81d86608ffb93b3211a915fa1712beb4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespacejbus.html#a7118bfa3cb9d51e588418220bca20117">EJoyReturn</a> jbus::Endpoint::GBAResetAsync </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *&#160;</td>
<td class="paramname"><em>status</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespacejbus.html#ae1577e03ea8c6e27361cb389c992280d">FGBACallback</a> &amp;&amp;&#160;</td>
<td class="paramname"><em>callback</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Send RESET command to GBA asynchronously. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">status</td><td>Destination pointer for EJStatFlags. </td></tr>
<tr><td class="paramname">callback</td><td>Functor to execute when operation completes. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>GBA_READY if submitted, or GBA_NOT_READY if another operation in progress. </dd></dl>
</div>
</div>
<a class="anchor" id="a6e59373aa28a23097129470deaeb46dd"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespacejbus.html#a7118bfa3cb9d51e588418220bca20117">EJoyReturn</a> jbus::Endpoint::GBAWrite </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *&#160;</td>
<td class="paramname"><em>src</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *&#160;</td>
<td class="paramname"><em>status</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Send WRITE command to GBA synchronously. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">src</td><td>Source pointer for 4-byte packet of data. It is not required to keep resident. </td></tr>
<tr><td class="paramname">status</td><td>Destination pointer for EJStatFlags. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>GBA_READY if submitted, or GBA_NOT_READY if another operation in progress. </dd></dl>
</div>
</div>
<a class="anchor" id="a06506d0cfa26d461f239ed761264d7b0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespacejbus.html#a7118bfa3cb9d51e588418220bca20117">EJoyReturn</a> jbus::Endpoint::GBAWriteAsync </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *&#160;</td>
<td class="paramname"><em>src</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespacejbus.html#a19d112b8b9f912fca094b41ce26c4fef">u8</a> *&#160;</td>
<td class="paramname"><em>status</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespacejbus.html#ae1577e03ea8c6e27361cb389c992280d">FGBACallback</a> &amp;&amp;&#160;</td>
<td class="paramname"><em>callback</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Send WRITE command to GBA asynchronously. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">src</td><td>Source pointer for 4-byte packet of data. It is not required to keep resident. </td></tr>
<tr><td class="paramname">status</td><td>Destination pointer for EJStatFlags. </td></tr>
<tr><td class="paramname">callback</td><td>Functor to execute when operation completes. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>GBA_READY if submitted, or GBA_NOT_READY if another operation in progress. </dd></dl>
</div>
</div>
<a class="anchor" id="acb5167184768ea65d026adc531f237b9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int jbus::Endpoint::GetChan </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get virtual SI channel assigned to this endpoint. </p>
<dl class="section return"><dt>Returns</dt><dd>SI channel </dd></dl>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classjbus_1_1Endpoint_acb5167184768ea65d026adc531f237b9_cgraph.png" border="0" usemap="#classjbus_1_1Endpoint_acb5167184768ea65d026adc531f237b9_cgraph" alt=""/></div>
<map name="classjbus_1_1Endpoint_acb5167184768ea65d026adc531f237b9_cgraph" id="classjbus_1_1Endpoint_acb5167184768ea65d026adc531f237b9_cgraph">
<area shape="rect" id="node2" href="classjbus_1_1Endpoint.html#a39ddcbf5ac7078d59a4d99d291e3f0fa" title="jbus::Endpoint::Endpoint" alt="" coords="224,5,390,31"/>
<area shape="rect" id="node3" href="classjbus_1_1Endpoint.html#ad39f268d3bee438e5176cc7f4cf59675" title="jbus::Endpoint::~Endpoint" alt="" coords="220,55,394,80"/>
</map>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classjbus_1_1Endpoint_acb5167184768ea65d026adc531f237b9_icgraph.png" border="0" usemap="#classjbus_1_1Endpoint_acb5167184768ea65d026adc531f237b9_icgraph" alt=""/></div>
<map name="classjbus_1_1Endpoint_acb5167184768ea65d026adc531f237b9_icgraph" id="classjbus_1_1Endpoint_acb5167184768ea65d026adc531f237b9_icgraph">
<area shape="rect" id="node2" href="classjbus_1_1ThreadLocalEndpoint.html#a0899b0293f9eb4b69763d8e1e21e58a9" title="Get virtual SI channel assigned to this endpoint. " alt="" coords="220,5,400,44"/>
</map>
</div>
</p>
</div>
</div>
<a class="anchor" id="a1cae93f2e1e097b10b34810a0d04333f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void jbus::Endpoint::stop </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Request stop of I/O thread and block until joined. Further use of this <a class="el" href="classjbus_1_1Endpoint.html">Endpoint</a> is undefined behavior. The destructor calls this implicitly. </p>
</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a class="anchor" id="ab5de6af29530791b0b2958002f1d3603"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">friend class <a class="el" href="classjbus_1_1ThreadLocalEndpoint.html">ThreadLocalEndpoint</a></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/jbus/<a class="el" href="Endpoint_8hpp_source.html">Endpoint.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespacejbus.html">jbus</a></li><li class="navelem"><a class="el" href="classjbus_1_1Endpoint.html">Endpoint</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
</ul>
</div>
</body>
</html>