\hypertarget{classComSquare_1_1APU_1_1DSP_1_1DSP}{}\doxysection{Com\+Square\+::A\+PU\+::D\+SP\+::D\+SP Class Reference}
\label{classComSquare_1_1APU_1_1DSP_1_1DSP}\index{ComSquare::APU::DSP::DSP@{ComSquare::APU::DSP::DSP}}


{\ttfamily \#include $<$D\+S\+P.\+hpp$>$}



Inheritance diagram for Com\+Square\+::A\+PU\+::D\+SP\+::D\+SP\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=230pt]{classComSquare_1_1APU_1_1DSP_1_1DSP__inherit__graph}
\end{center}
\end{figure}


Collaboration diagram for Com\+Square\+::A\+PU\+::D\+SP\+::D\+SP\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=348pt]{classComSquare_1_1APU_1_1DSP_1_1DSP__coll__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classComSquare_1_1APU_1_1DSP_1_1DSP_a486750b4821dfdfb98fff9273462d1f2}{D\+SP}} ()
\item 
uint8\+\_\+t \mbox{\hyperlink{classComSquare_1_1APU_1_1DSP_1_1DSP_acee7abd47b8b5d2f4971ddcfceb26111}{read}} (\mbox{\hyperlink{Ints_8hpp_a89f009aaf5d1964a000f44f09fa0bcf8}{uint24\+\_\+t}} addr) override
\begin{DoxyCompactList}\small\item\em Read from the internal \mbox{\hyperlink{classComSquare_1_1APU_1_1DSP_1_1DSP}{D\+SP}} register. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classComSquare_1_1APU_1_1DSP_1_1DSP_a5dcd5917875b1dbb0e6b9185aa8bfef2}{write}} (\mbox{\hyperlink{Ints_8hpp_a89f009aaf5d1964a000f44f09fa0bcf8}{uint24\+\_\+t}} addr, uint8\+\_\+t data) override
\begin{DoxyCompactList}\small\item\em Write data to the internal \mbox{\hyperlink{classComSquare_1_1APU_1_1DSP_1_1DSP}{D\+SP}} register. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{structComSquare_1_1APU_1_1DSP_1_1Registers}{Registers}} \mbox{\hyperlink{classComSquare_1_1APU_1_1DSP_1_1DSP_a65e76db7e52c15d195cbe4469b51cd5f}{\+\_\+registers}} \{\}
\begin{DoxyCompactList}\small\item\em All registers of the \mbox{\hyperlink{classComSquare_1_1APU_1_1DSP_1_1DSP}{D\+SP}}. \end{DoxyCompactList}\item 
sf\+::\+Sound \mbox{\hyperlink{classComSquare_1_1APU_1_1DSP_1_1DSP_aa0539ae8604e369da70fa7f49476e28c}{\+\_\+channels}} \mbox{[}8\mbox{]}
\begin{DoxyCompactList}\small\item\em 8x channels of sample used to make sound \end{DoxyCompactList}\item 
sf\+::\+Sound\+Buffer \mbox{\hyperlink{classComSquare_1_1APU_1_1DSP_1_1DSP_ac153734bc63349159d8f972ef426f39a}{\+\_\+sound\+Buffer}}
\begin{DoxyCompactList}\small\item\em A buffer containing current wave. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classComSquare_1_1APU_1_1DSP_1_1DSP_a486750b4821dfdfb98fff9273462d1f2}\label{classComSquare_1_1APU_1_1DSP_1_1DSP_a486750b4821dfdfb98fff9273462d1f2}} 
\index{ComSquare::APU::DSP::DSP@{ComSquare::APU::DSP::DSP}!DSP@{DSP}}
\index{DSP@{DSP}!ComSquare::APU::DSP::DSP@{ComSquare::APU::DSP::DSP}}
\doxysubsubsection{\texorpdfstring{DSP()}{DSP()}}
{\footnotesize\ttfamily Com\+Square\+::\+A\+P\+U\+::\+D\+S\+P\+::\+D\+S\+P\+::\+D\+SP (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [explicit]}}



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classComSquare_1_1APU_1_1DSP_1_1DSP_acee7abd47b8b5d2f4971ddcfceb26111}\label{classComSquare_1_1APU_1_1DSP_1_1DSP_acee7abd47b8b5d2f4971ddcfceb26111}} 
\index{ComSquare::APU::DSP::DSP@{ComSquare::APU::DSP::DSP}!read@{read}}
\index{read@{read}!ComSquare::APU::DSP::DSP@{ComSquare::APU::DSP::DSP}}
\doxysubsubsection{\texorpdfstring{read()}{read()}}
{\footnotesize\ttfamily uint8\+\_\+t Com\+Square\+::\+A\+P\+U\+::\+D\+S\+P\+::\+D\+S\+P\+::read (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{Ints_8hpp_a89f009aaf5d1964a000f44f09fa0bcf8}{uint24\+\_\+t}}}]{addr }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [virtual]}}



Read from the internal \mbox{\hyperlink{classComSquare_1_1APU_1_1DSP_1_1DSP}{D\+SP}} register. 


\begin{DoxyParams}{Parameters}
{\em addr} & The address to read from. The address 0x0 should refer to the first byte of the register. \\
\hline
\end{DoxyParams}

\begin{DoxyExceptions}{Exceptions}
{\em \mbox{\hyperlink{classComSquare_1_1InvalidAddress}{Invalid\+Address}}} & will be thrown if the address is more than \$7F (the number of register). \\
\hline
\end{DoxyExceptions}
\begin{DoxyReturn}{Returns}
Return the value of the register. 
\end{DoxyReturn}


Implements \mbox{\hyperlink{classComSquare_1_1Memory_1_1IMemory_a8459ed12c4172ee29ecdc84330f99ff7}{Com\+Square\+::\+Memory\+::\+I\+Memory}}.

\mbox{\Hypertarget{classComSquare_1_1APU_1_1DSP_1_1DSP_a5dcd5917875b1dbb0e6b9185aa8bfef2}\label{classComSquare_1_1APU_1_1DSP_1_1DSP_a5dcd5917875b1dbb0e6b9185aa8bfef2}} 
\index{ComSquare::APU::DSP::DSP@{ComSquare::APU::DSP::DSP}!write@{write}}
\index{write@{write}!ComSquare::APU::DSP::DSP@{ComSquare::APU::DSP::DSP}}
\doxysubsubsection{\texorpdfstring{write()}{write()}}
{\footnotesize\ttfamily void Com\+Square\+::\+A\+P\+U\+::\+D\+S\+P\+::\+D\+S\+P\+::write (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{Ints_8hpp_a89f009aaf5d1964a000f44f09fa0bcf8}{uint24\+\_\+t}}}]{addr,  }\item[{uint8\+\_\+t}]{data }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [virtual]}}



Write data to the internal \mbox{\hyperlink{classComSquare_1_1APU_1_1DSP_1_1DSP}{D\+SP}} register. 


\begin{DoxyParams}{Parameters}
{\em addr} & The address to write to. The address 0x0 should refer to the first byte of register. \\
\hline
{\em data} & The new value of the register. \\
\hline
\end{DoxyParams}

\begin{DoxyExceptions}{Exceptions}
{\em \mbox{\hyperlink{classComSquare_1_1InvalidAddress}{Invalid\+Address}}} & will be thrown if the address is more than \$7F (the number of register). \\
\hline
\end{DoxyExceptions}


Implements \mbox{\hyperlink{classComSquare_1_1Memory_1_1IMemory_a449bc89798a0b86028bb0413106514d9}{Com\+Square\+::\+Memory\+::\+I\+Memory}}.



\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{classComSquare_1_1APU_1_1DSP_1_1DSP_aa0539ae8604e369da70fa7f49476e28c}\label{classComSquare_1_1APU_1_1DSP_1_1DSP_aa0539ae8604e369da70fa7f49476e28c}} 
\index{ComSquare::APU::DSP::DSP@{ComSquare::APU::DSP::DSP}!\_channels@{\_channels}}
\index{\_channels@{\_channels}!ComSquare::APU::DSP::DSP@{ComSquare::APU::DSP::DSP}}
\doxysubsubsection{\texorpdfstring{\_channels}{\_channels}}
{\footnotesize\ttfamily sf\+::\+Sound Com\+Square\+::\+A\+P\+U\+::\+D\+S\+P\+::\+D\+S\+P\+::\+\_\+channels\mbox{[}8\mbox{]}\hspace{0.3cm}{\ttfamily [private]}}



8x channels of sample used to make sound 

\mbox{\Hypertarget{classComSquare_1_1APU_1_1DSP_1_1DSP_a65e76db7e52c15d195cbe4469b51cd5f}\label{classComSquare_1_1APU_1_1DSP_1_1DSP_a65e76db7e52c15d195cbe4469b51cd5f}} 
\index{ComSquare::APU::DSP::DSP@{ComSquare::APU::DSP::DSP}!\_registers@{\_registers}}
\index{\_registers@{\_registers}!ComSquare::APU::DSP::DSP@{ComSquare::APU::DSP::DSP}}
\doxysubsubsection{\texorpdfstring{\_registers}{\_registers}}
{\footnotesize\ttfamily \mbox{\hyperlink{structComSquare_1_1APU_1_1DSP_1_1Registers}{Registers}} Com\+Square\+::\+A\+P\+U\+::\+D\+S\+P\+::\+D\+S\+P\+::\+\_\+registers \{\}\hspace{0.3cm}{\ttfamily [private]}}



All registers of the \mbox{\hyperlink{classComSquare_1_1APU_1_1DSP_1_1DSP}{D\+SP}}. 

\mbox{\Hypertarget{classComSquare_1_1APU_1_1DSP_1_1DSP_ac153734bc63349159d8f972ef426f39a}\label{classComSquare_1_1APU_1_1DSP_1_1DSP_ac153734bc63349159d8f972ef426f39a}} 
\index{ComSquare::APU::DSP::DSP@{ComSquare::APU::DSP::DSP}!\_soundBuffer@{\_soundBuffer}}
\index{\_soundBuffer@{\_soundBuffer}!ComSquare::APU::DSP::DSP@{ComSquare::APU::DSP::DSP}}
\doxysubsubsection{\texorpdfstring{\_soundBuffer}{\_soundBuffer}}
{\footnotesize\ttfamily sf\+::\+Sound\+Buffer Com\+Square\+::\+A\+P\+U\+::\+D\+S\+P\+::\+D\+S\+P\+::\+\_\+sound\+Buffer\hspace{0.3cm}{\ttfamily [private]}}



A buffer containing current wave. 



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
sources/\+D\+S\+P/\mbox{\hyperlink{DSP_8hpp}{D\+S\+P.\+hpp}}\item 
sources/\+D\+S\+P/\mbox{\hyperlink{DSP_8cpp}{D\+S\+P.\+cpp}}\end{DoxyCompactItemize}
