233 lines
26 KiB
TeX
233 lines
26 KiB
TeX
\doxysection{Callback\+Tests.\+cpp File Reference}
|
|
\hypertarget{_callback_tests_8cpp}{}\label{_callback_tests_8cpp}\index{CallbackTests.cpp@{CallbackTests.cpp}}
|
|
{\ttfamily \#include "{}unity.\+h"{}}\newline
|
|
{\ttfamily \#include "{}../include/\+BNO08x\+Test\+Helper.\+hpp"{}}\newline
|
|
Include dependency graph for Callback\+Tests.\+cpp\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=350pt]{_callback_tests_8cpp__incl}
|
|
\end{center}
|
|
\end{figure}
|
|
\doxysubsubsection*{Functions}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
\mbox{\hyperlink{_callback_tests_8cpp_ac18b9cb122499f587331d82a538f23aa}{TEST\+\_\+\+CASE}} ("{}BNO08x Driver Creation \mbox{\hyperlink{_callback_tests_8cpp_a4ac223c58b5ab6a6c5203661fafa1caa}{for}} \mbox{[}Callback\+Tests\mbox{]} Tests"{}, "{}\mbox{[}Callback\+Tests\mbox{]}"{})
|
|
\item
|
|
\mbox{\hyperlink{_callback_tests_8cpp_ac36e56130d5d806898f3545d4cdf0f70}{imu}} \mbox{\hyperlink{_callback_tests_8cpp_a6df8508e34beaeb28f34554ce0e20573}{register\+\_\+cb}} (\mbox{[}\&\mbox{\hyperlink{_callback_tests_8cpp_ac36e56130d5d806898f3545d4cdf0f70}{imu}}, \&\mbox{\hyperlink{_callback_tests_8cpp_a5a4ba60143c31271df0f72bf0e503876}{new\+\_\+data}}, \&\mbox{\hyperlink{_callback_tests_8cpp_a22334b11e0558ec663d040de9b7db8c9}{report\+\_\+data}}, \&\mbox{\hyperlink{_callback_tests_8cpp_a8c57d66969fed0b55bdee9b57f6ed0a7}{prev\+\_\+report\+\_\+data}}, \&\mbox{\hyperlink{_callback_tests_8cpp_a4e7be0e1e700243053709d7544201596}{msg\+\_\+buff}}\mbox{]}() \{ static int cb\+\_\+execution\+\_\+cnt=0;cb\+\_\+execution\+\_\+cnt++;\mbox{\hyperlink{class_b_n_o08x_test_helper_ac81c63583b19e5c7b3233324aaea98e2}{BNO08x\+Test\+Helper\+::update\+\_\+report\+\_\+data}}(\&\mbox{\hyperlink{_callback_tests_8cpp_a22334b11e0558ec663d040de9b7db8c9}{report\+\_\+data}});if(\mbox{\hyperlink{class_b_n_o08x_test_helper_ade97098806c8779b26f9c166c4b03eea}{BNO08x\+Test\+Helper\+::accelerometer\+\_\+data\+\_\+is\+\_\+new}}(\&\mbox{\hyperlink{_callback_tests_8cpp_a22334b11e0558ec663d040de9b7db8c9}{report\+\_\+data}}, \&\mbox{\hyperlink{_callback_tests_8cpp_a8c57d66969fed0b55bdee9b57f6ed0a7}{prev\+\_\+report\+\_\+data}})) \{ \mbox{\hyperlink{_callback_tests_8cpp_a5a4ba60143c31271df0f72bf0e503876}{new\+\_\+data}}=true;sprintf(\mbox{\hyperlink{_callback_tests_8cpp_a4e7be0e1e700243053709d7544201596}{msg\+\_\+buff}}, "{}Rx Data Trial \%d Success\+: Angular\+Accel\+: a\+X\+: \%.\+2lf accel a\+Y\+: \%.\+2lf accel a\+Z\+: "{} "{}\%.\+2lf Accuracy \%s"{}, cb\+\_\+execution\+\_\+cnt, report\+\_\+data.\+accel\+\_\+x, report\+\_\+data.\+accel\+\_\+y, report\+\_\+data.\+accel\+\_\+z, \mbox{\hyperlink{class_b_n_o08x_test_helper_a857b66c12c231af0d546c026ec017ab3}{BNO08x\+Test\+Helper\+::\+BNO08x\+Accuracy\+\_\+to\+\_\+str}}(report\+\_\+data.\+accel\+\_\+accuracy));\mbox{\hyperlink{class_b_n_o08x_test_helper_a7fbfc48c0fff306ab81e2320bc171002}{BNO08x\+Test\+Helper\+::print\+\_\+test\+\_\+msg}}(TEST\+\_\+\+TAG, \mbox{\hyperlink{_callback_tests_8cpp_a4e7be0e1e700243053709d7544201596}{msg\+\_\+buff}});\} \})
|
|
\item
|
|
\mbox{\hyperlink{_callback_tests_8cpp_ac36e56130d5d806898f3545d4cdf0f70}{imu}} \mbox{\hyperlink{_callback_tests_8cpp_a0f2cacda77ab92640f739aca52b1f99f}{enable\+\_\+accelerometer}} (\mbox{\hyperlink{_callback_tests_8cpp_a4b80e39a1f48d801615a1f7baa210071}{REPORT\+\_\+\+PERIOD}})
|
|
\item
|
|
\mbox{\hyperlink{_callback_tests_8cpp_a4ac223c58b5ab6a6c5203661fafa1caa}{for}} (int i=0;i$<$ \mbox{\hyperlink{_callback_tests_8cpp_a20cd776c25ed6d39b2dcb95d155cfbda}{RX\+\_\+\+REPORT\+\_\+\+TRIAL\+\_\+\+CNT}};i++)
|
|
\item
|
|
\mbox{\hyperlink{_callback_tests_8cpp_ac36e56130d5d806898f3545d4cdf0f70}{imu}} \mbox{\hyperlink{_callback_tests_8cpp_a79547a2396efd083faeba3e54d94360d}{disable\+\_\+accelerometer}} ()
|
|
\item
|
|
\mbox{\hyperlink{_callback_tests_8cpp_ac36e56130d5d806898f3545d4cdf0f70}{imu}} \mbox{\hyperlink{_callback_tests_8cpp_a8dba989b01b464871f3232223050ec73}{register\+\_\+cb}} (\mbox{[}\&\mbox{\hyperlink{_callback_tests_8cpp_ac36e56130d5d806898f3545d4cdf0f70}{imu}}, \&\mbox{\hyperlink{_callback_tests_8cpp_a5a4ba60143c31271df0f72bf0e503876}{new\+\_\+data}}, \&\mbox{\hyperlink{_callback_tests_8cpp_a22334b11e0558ec663d040de9b7db8c9}{report\+\_\+data}}, \&\mbox{\hyperlink{_callback_tests_8cpp_a8c57d66969fed0b55bdee9b57f6ed0a7}{prev\+\_\+report\+\_\+data}}, \&\mbox{\hyperlink{_callback_tests_8cpp_a4e7be0e1e700243053709d7544201596}{msg\+\_\+buff}}\mbox{]}() \{ static int cb\+\_\+execution\+\_\+cnt=0;cb\+\_\+execution\+\_\+cnt++;\mbox{\hyperlink{class_b_n_o08x_test_helper_ac81c63583b19e5c7b3233324aaea98e2}{BNO08x\+Test\+Helper\+::update\+\_\+report\+\_\+data}}(\&\mbox{\hyperlink{_callback_tests_8cpp_a22334b11e0558ec663d040de9b7db8c9}{report\+\_\+data}});if(\mbox{\hyperlink{class_b_n_o08x_test_helper_ade97098806c8779b26f9c166c4b03eea}{BNO08x\+Test\+Helper\+::accelerometer\+\_\+data\+\_\+is\+\_\+new}}(\&\mbox{\hyperlink{_callback_tests_8cpp_a22334b11e0558ec663d040de9b7db8c9}{report\+\_\+data}}, \&\mbox{\hyperlink{_callback_tests_8cpp_a8c57d66969fed0b55bdee9b57f6ed0a7}{prev\+\_\+report\+\_\+data}})) \{ \mbox{\hyperlink{_callback_tests_8cpp_a5a4ba60143c31271df0f72bf0e503876}{new\+\_\+data}}\mbox{[}0\mbox{]}=true;sprintf(\mbox{\hyperlink{_callback_tests_8cpp_a4e7be0e1e700243053709d7544201596}{msg\+\_\+buff}}, "{}Rx Data Trial \%d Success\+: Angular\+Accel\+: a\+X\+: \%.\+2lf accel a\+Y\+: \%.\+2lf accel a\+Z\+: "{} "{}\%.\+2lf Accuracy \%s"{}, cb\+\_\+execution\+\_\+cnt, report\+\_\+data.\+accel\+\_\+x, report\+\_\+data.\+accel\+\_\+y, report\+\_\+data.\+accel\+\_\+z, \mbox{\hyperlink{class_b_n_o08x_test_helper_a857b66c12c231af0d546c026ec017ab3}{BNO08x\+Test\+Helper\+::\+BNO08x\+Accuracy\+\_\+to\+\_\+str}}(report\+\_\+data.\+accel\+\_\+accuracy));\mbox{\hyperlink{class_b_n_o08x_test_helper_a7fbfc48c0fff306ab81e2320bc171002}{BNO08x\+Test\+Helper\+::print\+\_\+test\+\_\+msg}}(TEST\+\_\+\+TAG, \mbox{\hyperlink{_callback_tests_8cpp_a4e7be0e1e700243053709d7544201596}{msg\+\_\+buff}});\} if(\mbox{\hyperlink{class_b_n_o08x_test_helper_ad398739ce46400c1ac35e1cf7603d590}{BNO08x\+Test\+Helper\+::linear\+\_\+accelerometer\+\_\+data\+\_\+is\+\_\+new}}(\&\mbox{\hyperlink{_callback_tests_8cpp_a22334b11e0558ec663d040de9b7db8c9}{report\+\_\+data}}, \&\mbox{\hyperlink{_callback_tests_8cpp_a8c57d66969fed0b55bdee9b57f6ed0a7}{prev\+\_\+report\+\_\+data}})) \{ \mbox{\hyperlink{_callback_tests_8cpp_a5a4ba60143c31271df0f72bf0e503876}{new\+\_\+data}}\mbox{[}1\mbox{]}=true;sprintf(\mbox{\hyperlink{_callback_tests_8cpp_a4e7be0e1e700243053709d7544201596}{msg\+\_\+buff}}, "{}Rx Data Trial \%d Success\+: Linear\+Accel\+: la\+X\+: \%.\+2lf la\+Y\+: \%.\+2lf la\+Z\+: "{} "{}\%.\+2lf Accuracy\+: \%s"{},(cb\+\_\+execution\+\_\+cnt+1), report\+\_\+data.\+lin\+\_\+accel\+\_\+x, report\+\_\+data.\+lin\+\_\+accel\+\_\+y, report\+\_\+data.\+lin\+\_\+accel\+\_\+z, \mbox{\hyperlink{class_b_n_o08x_test_helper_a857b66c12c231af0d546c026ec017ab3}{BNO08x\+Test\+Helper\+::\+BNO08x\+Accuracy\+\_\+to\+\_\+str}}(report\+\_\+data.\+lin\+\_\+accel\+\_\+accuracy));\mbox{\hyperlink{class_b_n_o08x_test_helper_a7fbfc48c0fff306ab81e2320bc171002}{BNO08x\+Test\+Helper\+::print\+\_\+test\+\_\+msg}}(TEST\+\_\+\+TAG, \mbox{\hyperlink{_callback_tests_8cpp_a4e7be0e1e700243053709d7544201596}{msg\+\_\+buff}});\} \})
|
|
\item
|
|
\mbox{\hyperlink{_callback_tests_8cpp_ac36e56130d5d806898f3545d4cdf0f70}{imu}} \mbox{\hyperlink{_callback_tests_8cpp_a3e937c8c4a4c07b81fb20077ee984fc0}{enable\+\_\+linear\+\_\+accelerometer}} (\mbox{\hyperlink{_callback_tests_8cpp_a4b80e39a1f48d801615a1f7baa210071}{REPORT\+\_\+\+PERIOD}})
|
|
\item
|
|
\mbox{\hyperlink{_callback_tests_8cpp_a9091949d4ea860523915687536d5c4d3}{TEST\+\_\+\+ASSERT\+\_\+\+EQUAL}} (true, \mbox{\hyperlink{_callback_tests_8cpp_a5a4ba60143c31271df0f72bf0e503876}{new\+\_\+data}}\mbox{[}0\mbox{]})
|
|
\item
|
|
\mbox{\hyperlink{_callback_tests_8cpp_aa6754207db4cfba956441680c7a6a97d}{TEST\+\_\+\+ASSERT\+\_\+\+EQUAL}} (true, \mbox{\hyperlink{_callback_tests_8cpp_a5a4ba60143c31271df0f72bf0e503876}{new\+\_\+data}}\mbox{[}1\mbox{]})
|
|
\item
|
|
\mbox{\hyperlink{_callback_tests_8cpp_ac36e56130d5d806898f3545d4cdf0f70}{imu}} \mbox{\hyperlink{_callback_tests_8cpp_a5cc5f7e6658e3b1634d99b73dbfd06ab}{disable\+\_\+linear\+\_\+accelerometer}} ()
|
|
\item
|
|
\mbox{\hyperlink{_callback_tests_8cpp_a574f179a8295301510bc8b5475f02ba8}{TEST\+\_\+\+CASE}} ("{}BNO08x Driver Cleanup \mbox{\hyperlink{_callback_tests_8cpp_a4ac223c58b5ab6a6c5203661fafa1caa}{for}} \mbox{[}Callback\+Tests\mbox{]} Tests"{}, "{}\mbox{[}Callback\+Tests\mbox{]}"{})
|
|
\end{DoxyCompactItemize}
|
|
\doxysubsubsection*{Variables}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
\mbox{\hyperlink{class_b_n_o08x}{BNO08x}} \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{_callback_tests_8cpp_ac36e56130d5d806898f3545d4cdf0f70}{imu}} = nullptr
|
|
\item
|
|
\mbox{\hyperlink{struct_b_n_o08x_test_helper_1_1imu__report__data__t}{BNO08x\+Test\+Helper\+::imu\+\_\+report\+\_\+data\+\_\+t}} \mbox{\hyperlink{_callback_tests_8cpp_a22334b11e0558ec663d040de9b7db8c9}{report\+\_\+data}}
|
|
\item
|
|
\mbox{\hyperlink{struct_b_n_o08x_test_helper_1_1imu__report__data__t}{BNO08x\+Test\+Helper\+::imu\+\_\+report\+\_\+data\+\_\+t}} \mbox{\hyperlink{_callback_tests_8cpp_a8c57d66969fed0b55bdee9b57f6ed0a7}{prev\+\_\+report\+\_\+data}}
|
|
\item
|
|
const constexpr uint8\+\_\+t \mbox{\hyperlink{_callback_tests_8cpp_a20cd776c25ed6d39b2dcb95d155cfbda}{RX\+\_\+\+REPORT\+\_\+\+TRIAL\+\_\+\+CNT}} = 5
|
|
\item
|
|
const constexpr uint32\+\_\+t \mbox{\hyperlink{_callback_tests_8cpp_a4b80e39a1f48d801615a1f7baa210071}{REPORT\+\_\+\+PERIOD}} = 100000\+UL
|
|
\item
|
|
bool \mbox{\hyperlink{_callback_tests_8cpp_a5a4ba60143c31271df0f72bf0e503876}{new\+\_\+data}} = false
|
|
\item
|
|
char \mbox{\hyperlink{_callback_tests_8cpp_a4e7be0e1e700243053709d7544201596}{msg\+\_\+buff}} \mbox{[}200\mbox{]} = \{\}
|
|
\item
|
|
const constexpr uint8\+\_\+t \mbox{\hyperlink{_callback_tests_8cpp_aafbc34af64f3c93123dce5a8238efd38}{ENABLED\+\_\+\+REPORT\+\_\+\+CNT}} = 2
|
|
\end{DoxyCompactItemize}
|
|
|
|
|
|
\doxysubsection{Function Documentation}
|
|
\Hypertarget{_callback_tests_8cpp_a79547a2396efd083faeba3e54d94360d}\label{_callback_tests_8cpp_a79547a2396efd083faeba3e54d94360d}
|
|
\index{CallbackTests.cpp@{CallbackTests.cpp}!disable\_accelerometer@{disable\_accelerometer}}
|
|
\index{disable\_accelerometer@{disable\_accelerometer}!CallbackTests.cpp@{CallbackTests.cpp}}
|
|
\doxysubsubsection{\texorpdfstring{disable\_accelerometer()}{disable\_accelerometer()}}
|
|
{\footnotesize\ttfamily \mbox{\hyperlink{_callback_tests_8cpp_ac36e56130d5d806898f3545d4cdf0f70}{imu}} disable\+\_\+accelerometer (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}
|
|
|
|
\Hypertarget{_callback_tests_8cpp_a5cc5f7e6658e3b1634d99b73dbfd06ab}\label{_callback_tests_8cpp_a5cc5f7e6658e3b1634d99b73dbfd06ab}
|
|
\index{CallbackTests.cpp@{CallbackTests.cpp}!disable\_linear\_accelerometer@{disable\_linear\_accelerometer}}
|
|
\index{disable\_linear\_accelerometer@{disable\_linear\_accelerometer}!CallbackTests.cpp@{CallbackTests.cpp}}
|
|
\doxysubsubsection{\texorpdfstring{disable\_linear\_accelerometer()}{disable\_linear\_accelerometer()}}
|
|
{\footnotesize\ttfamily \mbox{\hyperlink{_callback_tests_8cpp_ac36e56130d5d806898f3545d4cdf0f70}{imu}} disable\+\_\+linear\+\_\+accelerometer (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}
|
|
|
|
\Hypertarget{_callback_tests_8cpp_a0f2cacda77ab92640f739aca52b1f99f}\label{_callback_tests_8cpp_a0f2cacda77ab92640f739aca52b1f99f}
|
|
\index{CallbackTests.cpp@{CallbackTests.cpp}!enable\_accelerometer@{enable\_accelerometer}}
|
|
\index{enable\_accelerometer@{enable\_accelerometer}!CallbackTests.cpp@{CallbackTests.cpp}}
|
|
\doxysubsubsection{\texorpdfstring{enable\_accelerometer()}{enable\_accelerometer()}}
|
|
{\footnotesize\ttfamily \mbox{\hyperlink{_callback_tests_8cpp_ac36e56130d5d806898f3545d4cdf0f70}{imu}} enable\+\_\+accelerometer (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{_callback_tests_8cpp_a4b80e39a1f48d801615a1f7baa210071}{REPORT\+\_\+\+PERIOD}}}]{ }\end{DoxyParamCaption})}
|
|
|
|
\Hypertarget{_callback_tests_8cpp_a3e937c8c4a4c07b81fb20077ee984fc0}\label{_callback_tests_8cpp_a3e937c8c4a4c07b81fb20077ee984fc0}
|
|
\index{CallbackTests.cpp@{CallbackTests.cpp}!enable\_linear\_accelerometer@{enable\_linear\_accelerometer}}
|
|
\index{enable\_linear\_accelerometer@{enable\_linear\_accelerometer}!CallbackTests.cpp@{CallbackTests.cpp}}
|
|
\doxysubsubsection{\texorpdfstring{enable\_linear\_accelerometer()}{enable\_linear\_accelerometer()}}
|
|
{\footnotesize\ttfamily \mbox{\hyperlink{_callback_tests_8cpp_ac36e56130d5d806898f3545d4cdf0f70}{imu}} enable\+\_\+linear\+\_\+accelerometer (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{_callback_tests_8cpp_a4b80e39a1f48d801615a1f7baa210071}{REPORT\+\_\+\+PERIOD}}}]{ }\end{DoxyParamCaption})}
|
|
|
|
Here is the call graph for this function\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=350pt]{_callback_tests_8cpp_a3e937c8c4a4c07b81fb20077ee984fc0_cgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
\Hypertarget{_callback_tests_8cpp_a4ac223c58b5ab6a6c5203661fafa1caa}\label{_callback_tests_8cpp_a4ac223c58b5ab6a6c5203661fafa1caa}
|
|
\index{CallbackTests.cpp@{CallbackTests.cpp}!for@{for}}
|
|
\index{for@{for}!CallbackTests.cpp@{CallbackTests.cpp}}
|
|
\doxysubsubsection{\texorpdfstring{for()}{for()}}
|
|
{\footnotesize\ttfamily for (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}
|
|
|
|
Here is the call graph for this function\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=350pt]{_callback_tests_8cpp_a4ac223c58b5ab6a6c5203661fafa1caa_cgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
\Hypertarget{_callback_tests_8cpp_a6df8508e34beaeb28f34554ce0e20573}\label{_callback_tests_8cpp_a6df8508e34beaeb28f34554ce0e20573}
|
|
\index{CallbackTests.cpp@{CallbackTests.cpp}!register\_cb@{register\_cb}}
|
|
\index{register\_cb@{register\_cb}!CallbackTests.cpp@{CallbackTests.cpp}}
|
|
\doxysubsubsection{\texorpdfstring{register\_cb()}{register\_cb()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
|
|
{\footnotesize\ttfamily \mbox{\hyperlink{_callback_tests_8cpp_ac36e56130d5d806898f3545d4cdf0f70}{imu}} register\+\_\+cb (\begin{DoxyParamCaption}\item[{\mbox{[}\&imu, \&new\+\_\+data, \&report\+\_\+data, \&prev\+\_\+report\+\_\+data, \&msg\+\_\+buff\mbox{]} () \{ static int cb\+\_\+execution\+\_\+cnt=0;cb\+\_\+execution\+\_\+cnt++;\mbox{\hyperlink{class_b_n_o08x_test_helper_ac81c63583b19e5c7b3233324aaea98e2}{BNO08x\+Test\+Helper\+::update\+\_\+report\+\_\+data}}(\&\mbox{\hyperlink{_callback_tests_8cpp_a22334b11e0558ec663d040de9b7db8c9}{report\+\_\+data}});if(\mbox{\hyperlink{class_b_n_o08x_test_helper_ade97098806c8779b26f9c166c4b03eea}{BNO08x\+Test\+Helper\+::accelerometer\+\_\+data\+\_\+is\+\_\+new}}(\&\mbox{\hyperlink{_callback_tests_8cpp_a22334b11e0558ec663d040de9b7db8c9}{report\+\_\+data}}, \&\mbox{\hyperlink{_callback_tests_8cpp_a8c57d66969fed0b55bdee9b57f6ed0a7}{prev\+\_\+report\+\_\+data}})) \{ \mbox{\hyperlink{_callback_tests_8cpp_a5a4ba60143c31271df0f72bf0e503876}{new\+\_\+data}}=true;sprintf(\mbox{\hyperlink{_callback_tests_8cpp_a4e7be0e1e700243053709d7544201596}{msg\+\_\+buff}}, "{}Rx Data Trial \%d Success\+: Angular\+Accel\+: a\+X\+: \%.\+2lf accel a\+Y\+: \%.\+2lf accel a\+Z\+: "{} "{}\%.\+2lf Accuracy \%s"{}, cb\+\_\+execution\+\_\+cnt, report\+\_\+data.\+accel\+\_\+x, report\+\_\+data.\+accel\+\_\+y, report\+\_\+data.\+accel\+\_\+z, \mbox{\hyperlink{class_b_n_o08x_test_helper_a857b66c12c231af0d546c026ec017ab3}{BNO08x\+Test\+Helper\+::\+BNO08x\+Accuracy\+\_\+to\+\_\+str}}(report\+\_\+data.\+accel\+\_\+accuracy));\mbox{\hyperlink{class_b_n_o08x_test_helper_a7fbfc48c0fff306ab81e2320bc171002}{BNO08x\+Test\+Helper\+::print\+\_\+test\+\_\+msg}}(TEST\+\_\+\+TAG, \mbox{\hyperlink{_callback_tests_8cpp_a4e7be0e1e700243053709d7544201596}{msg\+\_\+buff}});\} \}}]{ }\end{DoxyParamCaption})}
|
|
|
|
Here is the call graph for this function\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=350pt]{_callback_tests_8cpp_a6df8508e34beaeb28f34554ce0e20573_cgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
\Hypertarget{_callback_tests_8cpp_a8dba989b01b464871f3232223050ec73}\label{_callback_tests_8cpp_a8dba989b01b464871f3232223050ec73}
|
|
\index{CallbackTests.cpp@{CallbackTests.cpp}!register\_cb@{register\_cb}}
|
|
\index{register\_cb@{register\_cb}!CallbackTests.cpp@{CallbackTests.cpp}}
|
|
\doxysubsubsection{\texorpdfstring{register\_cb()}{register\_cb()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
|
|
{\footnotesize\ttfamily \mbox{\hyperlink{_callback_tests_8cpp_ac36e56130d5d806898f3545d4cdf0f70}{imu}} register\+\_\+cb (\begin{DoxyParamCaption}\item[{\mbox{[}\&imu, \&new\+\_\+data, \&report\+\_\+data, \&prev\+\_\+report\+\_\+data, \&msg\+\_\+buff\mbox{]} () \{ static int cb\+\_\+execution\+\_\+cnt=0;cb\+\_\+execution\+\_\+cnt++;\mbox{\hyperlink{class_b_n_o08x_test_helper_ac81c63583b19e5c7b3233324aaea98e2}{BNO08x\+Test\+Helper\+::update\+\_\+report\+\_\+data}}(\&\mbox{\hyperlink{_callback_tests_8cpp_a22334b11e0558ec663d040de9b7db8c9}{report\+\_\+data}});if(\mbox{\hyperlink{class_b_n_o08x_test_helper_ade97098806c8779b26f9c166c4b03eea}{BNO08x\+Test\+Helper\+::accelerometer\+\_\+data\+\_\+is\+\_\+new}}(\&\mbox{\hyperlink{_callback_tests_8cpp_a22334b11e0558ec663d040de9b7db8c9}{report\+\_\+data}}, \&\mbox{\hyperlink{_callback_tests_8cpp_a8c57d66969fed0b55bdee9b57f6ed0a7}{prev\+\_\+report\+\_\+data}})) \{ \mbox{\hyperlink{_callback_tests_8cpp_a5a4ba60143c31271df0f72bf0e503876}{new\+\_\+data}}\mbox{[}0\mbox{]}=true;sprintf(\mbox{\hyperlink{_callback_tests_8cpp_a4e7be0e1e700243053709d7544201596}{msg\+\_\+buff}}, "{}Rx Data Trial \%d Success\+: Angular\+Accel\+: a\+X\+: \%.\+2lf accel a\+Y\+: \%.\+2lf accel a\+Z\+: "{} "{}\%.\+2lf Accuracy \%s"{}, cb\+\_\+execution\+\_\+cnt, report\+\_\+data.\+accel\+\_\+x, report\+\_\+data.\+accel\+\_\+y, report\+\_\+data.\+accel\+\_\+z, \mbox{\hyperlink{class_b_n_o08x_test_helper_a857b66c12c231af0d546c026ec017ab3}{BNO08x\+Test\+Helper\+::\+BNO08x\+Accuracy\+\_\+to\+\_\+str}}(report\+\_\+data.\+accel\+\_\+accuracy));\mbox{\hyperlink{class_b_n_o08x_test_helper_a7fbfc48c0fff306ab81e2320bc171002}{BNO08x\+Test\+Helper\+::print\+\_\+test\+\_\+msg}}(TEST\+\_\+\+TAG, \mbox{\hyperlink{_callback_tests_8cpp_a4e7be0e1e700243053709d7544201596}{msg\+\_\+buff}});\} if(\mbox{\hyperlink{class_b_n_o08x_test_helper_ad398739ce46400c1ac35e1cf7603d590}{BNO08x\+Test\+Helper\+::linear\+\_\+accelerometer\+\_\+data\+\_\+is\+\_\+new}}(\&\mbox{\hyperlink{_callback_tests_8cpp_a22334b11e0558ec663d040de9b7db8c9}{report\+\_\+data}}, \&\mbox{\hyperlink{_callback_tests_8cpp_a8c57d66969fed0b55bdee9b57f6ed0a7}{prev\+\_\+report\+\_\+data}})) \{ \mbox{\hyperlink{_callback_tests_8cpp_a5a4ba60143c31271df0f72bf0e503876}{new\+\_\+data}}\mbox{[}1\mbox{]}=true;sprintf(\mbox{\hyperlink{_callback_tests_8cpp_a4e7be0e1e700243053709d7544201596}{msg\+\_\+buff}}, "{}Rx Data Trial \%d Success\+: Linear\+Accel\+: la\+X\+: \%.\+2lf la\+Y\+: \%.\+2lf la\+Z\+: "{} "{}\%.\+2lf Accuracy\+: \%s"{},(cb\+\_\+execution\+\_\+cnt+1), report\+\_\+data.\+lin\+\_\+accel\+\_\+x, report\+\_\+data.\+lin\+\_\+accel\+\_\+y, report\+\_\+data.\+lin\+\_\+accel\+\_\+z, \mbox{\hyperlink{class_b_n_o08x_test_helper_a857b66c12c231af0d546c026ec017ab3}{BNO08x\+Test\+Helper\+::\+BNO08x\+Accuracy\+\_\+to\+\_\+str}}(report\+\_\+data.\+lin\+\_\+accel\+\_\+accuracy));\mbox{\hyperlink{class_b_n_o08x_test_helper_a7fbfc48c0fff306ab81e2320bc171002}{BNO08x\+Test\+Helper\+::print\+\_\+test\+\_\+msg}}(TEST\+\_\+\+TAG, \mbox{\hyperlink{_callback_tests_8cpp_a4e7be0e1e700243053709d7544201596}{msg\+\_\+buff}});\} \}}]{ }\end{DoxyParamCaption})}
|
|
|
|
Here is the call graph for this function\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=350pt]{_callback_tests_8cpp_a8dba989b01b464871f3232223050ec73_cgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
\Hypertarget{_callback_tests_8cpp_a9091949d4ea860523915687536d5c4d3}\label{_callback_tests_8cpp_a9091949d4ea860523915687536d5c4d3}
|
|
\index{CallbackTests.cpp@{CallbackTests.cpp}!TEST\_ASSERT\_EQUAL@{TEST\_ASSERT\_EQUAL}}
|
|
\index{TEST\_ASSERT\_EQUAL@{TEST\_ASSERT\_EQUAL}!CallbackTests.cpp@{CallbackTests.cpp}}
|
|
\doxysubsubsection{\texorpdfstring{TEST\_ASSERT\_EQUAL()}{TEST\_ASSERT\_EQUAL()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
|
|
{\footnotesize\ttfamily TEST\+\_\+\+ASSERT\+\_\+\+EQUAL (\begin{DoxyParamCaption}\item[{true}]{, }\item[{\mbox{\hyperlink{_callback_tests_8cpp_a5a4ba60143c31271df0f72bf0e503876}{new\+\_\+data}}}]{\mbox{[}0\mbox{]} }\end{DoxyParamCaption})}
|
|
|
|
Here is the caller graph for this function\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[height=550pt]{_callback_tests_8cpp_a9091949d4ea860523915687536d5c4d3_icgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
\Hypertarget{_callback_tests_8cpp_aa6754207db4cfba956441680c7a6a97d}\label{_callback_tests_8cpp_aa6754207db4cfba956441680c7a6a97d}
|
|
\index{CallbackTests.cpp@{CallbackTests.cpp}!TEST\_ASSERT\_EQUAL@{TEST\_ASSERT\_EQUAL}}
|
|
\index{TEST\_ASSERT\_EQUAL@{TEST\_ASSERT\_EQUAL}!CallbackTests.cpp@{CallbackTests.cpp}}
|
|
\doxysubsubsection{\texorpdfstring{TEST\_ASSERT\_EQUAL()}{TEST\_ASSERT\_EQUAL()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
|
|
{\footnotesize\ttfamily TEST\+\_\+\+ASSERT\+\_\+\+EQUAL (\begin{DoxyParamCaption}\item[{true}]{, }\item[{\mbox{\hyperlink{_callback_tests_8cpp_a5a4ba60143c31271df0f72bf0e503876}{new\+\_\+data}}}]{\mbox{[}1\mbox{]} }\end{DoxyParamCaption})}
|
|
|
|
\Hypertarget{_callback_tests_8cpp_a574f179a8295301510bc8b5475f02ba8}\label{_callback_tests_8cpp_a574f179a8295301510bc8b5475f02ba8}
|
|
\index{CallbackTests.cpp@{CallbackTests.cpp}!TEST\_CASE@{TEST\_CASE}}
|
|
\index{TEST\_CASE@{TEST\_CASE}!CallbackTests.cpp@{CallbackTests.cpp}}
|
|
\doxysubsubsection{\texorpdfstring{TEST\_CASE()}{TEST\_CASE()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
|
|
{\footnotesize\ttfamily TEST\+\_\+\+CASE (\begin{DoxyParamCaption}\item[{"{}BNO08x Driver Cleanup \mbox{\hyperlink{_callback_tests_8cpp_a4ac223c58b5ab6a6c5203661fafa1caa}{for}} Tests"{}}]{\mbox{[}\+Callback\+Tests\mbox{]}, }\item[{"{}"{}}]{\mbox{[}\+Callback\+Tests\mbox{]} }\end{DoxyParamCaption})}
|
|
|
|
Here is the call graph for this function\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=326pt]{_callback_tests_8cpp_a574f179a8295301510bc8b5475f02ba8_cgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
\Hypertarget{_callback_tests_8cpp_ac18b9cb122499f587331d82a538f23aa}\label{_callback_tests_8cpp_ac18b9cb122499f587331d82a538f23aa}
|
|
\index{CallbackTests.cpp@{CallbackTests.cpp}!TEST\_CASE@{TEST\_CASE}}
|
|
\index{TEST\_CASE@{TEST\_CASE}!CallbackTests.cpp@{CallbackTests.cpp}}
|
|
\doxysubsubsection{\texorpdfstring{TEST\_CASE()}{TEST\_CASE()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
|
|
{\footnotesize\ttfamily TEST\+\_\+\+CASE (\begin{DoxyParamCaption}\item[{"{}BNO08x Driver Creation \mbox{\hyperlink{_callback_tests_8cpp_a4ac223c58b5ab6a6c5203661fafa1caa}{for}} Tests"{}}]{\mbox{[}\+Callback\+Tests\mbox{]}, }\item[{"{}"{}}]{\mbox{[}\+Callback\+Tests\mbox{]} }\end{DoxyParamCaption})}
|
|
|
|
Here is the call graph for this function\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=350pt]{_callback_tests_8cpp_ac18b9cb122499f587331d82a538f23aa_cgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
|
|
|
|
\doxysubsection{Variable Documentation}
|
|
\Hypertarget{_callback_tests_8cpp_aafbc34af64f3c93123dce5a8238efd38}\label{_callback_tests_8cpp_aafbc34af64f3c93123dce5a8238efd38}
|
|
\index{CallbackTests.cpp@{CallbackTests.cpp}!ENABLED\_REPORT\_CNT@{ENABLED\_REPORT\_CNT}}
|
|
\index{ENABLED\_REPORT\_CNT@{ENABLED\_REPORT\_CNT}!CallbackTests.cpp@{CallbackTests.cpp}}
|
|
\doxysubsubsection{\texorpdfstring{ENABLED\_REPORT\_CNT}{ENABLED\_REPORT\_CNT}}
|
|
{\footnotesize\ttfamily const constexpr uint8\+\_\+t ENABLED\+\_\+\+REPORT\+\_\+\+CNT = 2\hspace{0.3cm}{\ttfamily [constexpr]}}
|
|
|
|
\Hypertarget{_callback_tests_8cpp_ac36e56130d5d806898f3545d4cdf0f70}\label{_callback_tests_8cpp_ac36e56130d5d806898f3545d4cdf0f70}
|
|
\index{CallbackTests.cpp@{CallbackTests.cpp}!imu@{imu}}
|
|
\index{imu@{imu}!CallbackTests.cpp@{CallbackTests.cpp}}
|
|
\doxysubsubsection{\texorpdfstring{imu}{imu}}
|
|
{\footnotesize\ttfamily \mbox{\hyperlink{class_b_n_o08x}{BNO08x}} \texorpdfstring{$\ast$}{*} imu = nullptr}
|
|
|
|
\Hypertarget{_callback_tests_8cpp_a4e7be0e1e700243053709d7544201596}\label{_callback_tests_8cpp_a4e7be0e1e700243053709d7544201596}
|
|
\index{CallbackTests.cpp@{CallbackTests.cpp}!msg\_buff@{msg\_buff}}
|
|
\index{msg\_buff@{msg\_buff}!CallbackTests.cpp@{CallbackTests.cpp}}
|
|
\doxysubsubsection{\texorpdfstring{msg\_buff}{msg\_buff}}
|
|
{\footnotesize\ttfamily char msg\+\_\+buff = \{\}}
|
|
|
|
\Hypertarget{_callback_tests_8cpp_a5a4ba60143c31271df0f72bf0e503876}\label{_callback_tests_8cpp_a5a4ba60143c31271df0f72bf0e503876}
|
|
\index{CallbackTests.cpp@{CallbackTests.cpp}!new\_data@{new\_data}}
|
|
\index{new\_data@{new\_data}!CallbackTests.cpp@{CallbackTests.cpp}}
|
|
\doxysubsubsection{\texorpdfstring{new\_data}{new\_data}}
|
|
{\footnotesize\ttfamily bool new\+\_\+data = false}
|
|
|
|
\Hypertarget{_callback_tests_8cpp_a8c57d66969fed0b55bdee9b57f6ed0a7}\label{_callback_tests_8cpp_a8c57d66969fed0b55bdee9b57f6ed0a7}
|
|
\index{CallbackTests.cpp@{CallbackTests.cpp}!prev\_report\_data@{prev\_report\_data}}
|
|
\index{prev\_report\_data@{prev\_report\_data}!CallbackTests.cpp@{CallbackTests.cpp}}
|
|
\doxysubsubsection{\texorpdfstring{prev\_report\_data}{prev\_report\_data}}
|
|
{\footnotesize\ttfamily \mbox{\hyperlink{struct_b_n_o08x_test_helper_1_1imu__report__data__t}{BNO08x\+Test\+Helper\+::imu\+\_\+report\+\_\+data\+\_\+t}} prev\+\_\+report\+\_\+data}
|
|
|
|
\Hypertarget{_callback_tests_8cpp_a22334b11e0558ec663d040de9b7db8c9}\label{_callback_tests_8cpp_a22334b11e0558ec663d040de9b7db8c9}
|
|
\index{CallbackTests.cpp@{CallbackTests.cpp}!report\_data@{report\_data}}
|
|
\index{report\_data@{report\_data}!CallbackTests.cpp@{CallbackTests.cpp}}
|
|
\doxysubsubsection{\texorpdfstring{report\_data}{report\_data}}
|
|
{\footnotesize\ttfamily \mbox{\hyperlink{class_b_n_o08x_test_helper_ac81c63583b19e5c7b3233324aaea98e2}{BNO08x\+Test\+Helper\+::update\+\_\+report\+\_\+data}} \& report\+\_\+data}
|
|
|
|
\Hypertarget{_callback_tests_8cpp_a4b80e39a1f48d801615a1f7baa210071}\label{_callback_tests_8cpp_a4b80e39a1f48d801615a1f7baa210071}
|
|
\index{CallbackTests.cpp@{CallbackTests.cpp}!REPORT\_PERIOD@{REPORT\_PERIOD}}
|
|
\index{REPORT\_PERIOD@{REPORT\_PERIOD}!CallbackTests.cpp@{CallbackTests.cpp}}
|
|
\doxysubsubsection{\texorpdfstring{REPORT\_PERIOD}{REPORT\_PERIOD}}
|
|
{\footnotesize\ttfamily const constexpr uint32\+\_\+t REPORT\+\_\+\+PERIOD = 100000\+UL\hspace{0.3cm}{\ttfamily [constexpr]}}
|
|
|
|
\Hypertarget{_callback_tests_8cpp_a20cd776c25ed6d39b2dcb95d155cfbda}\label{_callback_tests_8cpp_a20cd776c25ed6d39b2dcb95d155cfbda}
|
|
\index{CallbackTests.cpp@{CallbackTests.cpp}!RX\_REPORT\_TRIAL\_CNT@{RX\_REPORT\_TRIAL\_CNT}}
|
|
\index{RX\_REPORT\_TRIAL\_CNT@{RX\_REPORT\_TRIAL\_CNT}!CallbackTests.cpp@{CallbackTests.cpp}}
|
|
\doxysubsubsection{\texorpdfstring{RX\_REPORT\_TRIAL\_CNT}{RX\_REPORT\_TRIAL\_CNT}}
|
|
{\footnotesize\ttfamily const constexpr uint8\+\_\+t RX\+\_\+\+REPORT\+\_\+\+TRIAL\+\_\+\+CNT = 5\hspace{0.3cm}{\ttfamily [constexpr]}}
|
|
|