Micro template library A library for building device drivers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

namespaceutl_1_1__1wire__i__det.tex 22 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. \hypertarget{namespaceutl_1_1__1wire__i__det}{}\section{utl\+:\+:\+\_\+1wire\+\_\+i\+\_\+det Namespace Reference}
  2. \label{namespaceutl_1_1__1wire__i__det}\index{utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}}
  3. \subsection*{Classes}
  4. \begin{DoxyCompactItemize}
  5. \item
  6. struct \mbox{\hyperlink{structutl_1_1__1wire__i__det_1_1is__1wire__}{is\+\_\+1wire\+\_\+}}
  7. \begin{DoxyCompactList}\small\item\em Primary template to catch any non 1-\/wire interface types. \end{DoxyCompactList}\item
  8. struct \mbox{\hyperlink{structutl_1_1__1wire__i__det_1_1is__1wire___3_01___tp_00_01meta_1_1void__t_3_01void_01_4_01_4}{is\+\_\+1wire\+\_\+$<$ \+\_\+\+Tp, meta\+::void\+\_\+t$<$ void $>$ $>$}}
  9. \begin{DoxyCompactList}\small\item\em template to catch a proper 1-\/wire interface type \end{DoxyCompactList}\end{DoxyCompactItemize}
  10. \subsection*{Typedefs}
  11. \begin{DoxyCompactItemize}
  12. \item
  13. {\footnotesize template$<$class \+\_\+\+Tp $>$ }\\using \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_a502fff2c967d26334aa3c2fcf0b037ba}{try\+\_\+reset\+\_\+t}} = decltype(declval$<$ \+\_\+\+Tp $>$().reset(declval$<$ typename \+\_\+\+Tp\+::\+Speed $>$()))
  14. \item
  15. {\footnotesize template$<$class \+\_\+\+Tp $>$ }\\using \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_a303cf58468da38ceeaa2477570f82948}{try\+\_\+rx1\+\_\+t}} = decltype(declval$<$ \+\_\+\+Tp $>$().rx\+\_\+data(declval$<$ typename \+\_\+\+Tp\+::\+Speed $>$()))
  16. \item
  17. {\footnotesize template$<$class \+\_\+\+Tp $>$ }\\using \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_ac6a2b551bcf51b426c2e8506ab2473fe}{try\+\_\+tx1\+\_\+t}} = decltype(declval$<$ \+\_\+\+Tp $>$().tx\+\_\+data(declval$<$ \mbox{\hyperlink{namespaceutl_a1427cb5a2b13313147a902173b91e3c1}{byte\+\_\+t}} $>$(), declval$<$ typename \+\_\+\+Tp\+::\+Speed $>$()))
  18. \item
  19. {\footnotesize template$<$class \+\_\+\+Tp $>$ }\\using \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_a3416ddb06e089a5c191d356dd358ff00}{try\+\_\+match\+\_\+t}} = decltype(declval$<$ \+\_\+\+Tp $>$().match(declval$<$ \mbox{\hyperlink{classutl_1_1__1wire__id__t}{\+\_\+1wire\+\_\+id\+\_\+t}} \& $>$(), declval$<$ typename \+\_\+\+Tp\+::\+Speed $>$()))
  20. \item
  21. {\footnotesize template$<$class \+\_\+\+Tp $>$ }\\using \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_aa85f59a97c388dc259589cb517824233}{try\+\_\+match\+\_\+n\+\_\+ovdr\+\_\+t}} = decltype(declval$<$ \+\_\+\+Tp $>$().match\+\_\+n\+\_\+ovdr(declval$<$ \mbox{\hyperlink{classutl_1_1__1wire__id__t}{\+\_\+1wire\+\_\+id\+\_\+t}} \& $>$()))
  22. \item
  23. {\footnotesize template$<$class \+\_\+\+Tp $>$ }\\using \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_a9d0825a40484e7868bf41fc4825b4f7d}{try\+\_\+skip\+\_\+t}} = decltype(declval$<$ \+\_\+\+Tp $>$().skip(declval$<$ typename \+\_\+\+Tp\+::\+Speed $>$()))
  24. \item
  25. {\footnotesize template$<$class \+\_\+\+Tp $>$ }\\using \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_af6c9df3cb6bf2479e8d30a5d36ab71cb}{try\+\_\+skip\+\_\+n\+\_\+ovdr\+\_\+t}} = decltype(declval$<$ \+\_\+\+Tp $>$().skip\+\_\+n\+\_\+ovdr())
  26. \item
  27. {\footnotesize template$<$class \+\_\+\+Tp $>$ }\\using \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_a3dc7b4df37cebf753556ba527306cf9f}{try\+\_\+first\+\_\+t}} = decltype(declval$<$ \+\_\+\+Tp $>$().first(declval$<$ typename \+\_\+\+Tp\+::\+Speed $>$()))
  28. \item
  29. {\footnotesize template$<$class \+\_\+\+Tp $>$ }\\using \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_a67a086b8e4e3ee051ccb0351e6456630}{try\+\_\+next\+\_\+t}} = decltype(declval$<$ \+\_\+\+Tp $>$().next(declval$<$ typename \+\_\+\+Tp\+::\+Speed $>$()))
  30. \end{DoxyCompactItemize}
  31. \subsection*{Functions}
  32. \begin{DoxyCompactItemize}
  33. \item
  34. {\footnotesize template$<$typename \+\_\+T $>$ }\\\mbox{\hyperlink{namespaceutl_a1427cb5a2b13313147a902173b91e3c1}{byte\+\_\+t}} \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_a85a3a19778edb037f6341f37135a5494}{\+\_\+touch}} (\+\_\+T \&obj, \mbox{\hyperlink{namespaceutl_a1427cb5a2b13313147a902173b91e3c1}{byte\+\_\+t}} out, typename \+\_\+\+T\+::\+Speed s)
  35. \begin{DoxyCompactList}\small\item\em Write a byte to 1-\/\+Wire bus and read the response. \end{DoxyCompactList}\item
  36. {\footnotesize template$<$typename \+\_\+T $>$ }\\void \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_a1b07e623a39ce82f1514846169f3a954}{\+\_\+match}} (\+\_\+T \&obj, \mbox{\hyperlink{classutl_1_1__1wire__id__t}{\+\_\+1wire\+\_\+id\+\_\+t}} \&id, typename \+\_\+\+T\+::\+Speed s)
  37. \item
  38. {\footnotesize template$<$typename \+\_\+T $>$ }\\void \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_a1e14f734d5e232c914be6ea97982aa40}{\+\_\+match\+\_\+n\+\_\+ovdr}} (\+\_\+T \&obj, \mbox{\hyperlink{classutl_1_1__1wire__id__t}{\+\_\+1wire\+\_\+id\+\_\+t}} \&id)
  39. \item
  40. {\footnotesize template$<$typename \+\_\+T $>$ }\\void \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_a9ea80f4ef2422a7fd71788c42b228053}{\+\_\+skip}} (\+\_\+T \&obj, typename \+\_\+\+T\+::\+Speed s)
  41. \item
  42. {\footnotesize template$<$typename \+\_\+T $>$ }\\void \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_ace224a4d329166bfd9f3448e492baf2b}{\+\_\+skip\+\_\+n\+\_\+ovdr}} (\+\_\+T \&obj)
  43. \item
  44. {\footnotesize template$<$typename \+\_\+T $>$ }\\\mbox{\hyperlink{classutl_1_1__1wire__id__t}{\+\_\+1wire\+\_\+id\+\_\+t}} \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_a237719ffa105f988cb175d6720712a4a}{\+\_\+first}} (\+\_\+T \&obj, typename \+\_\+\+T\+::\+Speed s, bool alarm)
  45. \begin{DoxyCompactList}\small\item\em \textquotesingle{}first\textquotesingle{} operation, to search on the 1-\/\+Wire for the first device. This is performed by setting dec\+\_\+, pos\+\_\+ and cur\+\_\+ to zero and then doing the search. \end{DoxyCompactList}\item
  46. {\footnotesize template$<$typename \+\_\+T $>$ }\\\mbox{\hyperlink{classutl_1_1__1wire__id__t}{\+\_\+1wire\+\_\+id\+\_\+t}} \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_a1f7b692a40769ebe59343613b147e01d}{\+\_\+next}} (\+\_\+T \&obj, typename \+\_\+\+T\+::\+Speed s, bool alarm)
  47. \begin{DoxyCompactList}\small\item\em \textquotesingle{}next\textquotesingle{} operation, to search on the 1-\/\+Wire for the next device. This search is usually performed after a \textquotesingle{}first\textquotesingle{} operation or another \textquotesingle{}next\textquotesingle{} operation. Based on maxim-\/ic application note 187. \end{DoxyCompactList}\end{DoxyCompactItemize}
  48. \subsection{Typedef Documentation}
  49. \mbox{\Hypertarget{namespaceutl_1_1__1wire__i__det_a3dc7b4df37cebf753556ba527306cf9f}\label{namespaceutl_1_1__1wire__i__det_a3dc7b4df37cebf753556ba527306cf9f}}
  50. \index{utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}!try\+\_\+first\+\_\+t@{try\+\_\+first\+\_\+t}}
  51. \index{try\+\_\+first\+\_\+t@{try\+\_\+first\+\_\+t}!utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}}
  52. \subsubsection{\texorpdfstring{try\+\_\+first\+\_\+t}{try\_first\_t}}
  53. {\footnotesize\ttfamily template$<$class \+\_\+\+Tp $>$ \\
  54. using \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_a3dc7b4df37cebf753556ba527306cf9f}{utl\+::\+\_\+1wire\+\_\+i\+\_\+det\+::try\+\_\+first\+\_\+t}} = typedef decltype (declval$<$\+\_\+\+Tp$>$().first (declval$<$typename \+\_\+\+Tp\+::\+Speed$>$()))}
  55. Definition at line 679 of file \+\_\+1wire.\+h.
  56. \mbox{\Hypertarget{namespaceutl_1_1__1wire__i__det_aa85f59a97c388dc259589cb517824233}\label{namespaceutl_1_1__1wire__i__det_aa85f59a97c388dc259589cb517824233}}
  57. \index{utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}!try\+\_\+match\+\_\+n\+\_\+ovdr\+\_\+t@{try\+\_\+match\+\_\+n\+\_\+ovdr\+\_\+t}}
  58. \index{try\+\_\+match\+\_\+n\+\_\+ovdr\+\_\+t@{try\+\_\+match\+\_\+n\+\_\+ovdr\+\_\+t}!utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}}
  59. \subsubsection{\texorpdfstring{try\+\_\+match\+\_\+n\+\_\+ovdr\+\_\+t}{try\_match\_n\_ovdr\_t}}
  60. {\footnotesize\ttfamily template$<$class \+\_\+\+Tp $>$ \\
  61. using \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_aa85f59a97c388dc259589cb517824233}{utl\+::\+\_\+1wire\+\_\+i\+\_\+det\+::try\+\_\+match\+\_\+n\+\_\+ovdr\+\_\+t}} = typedef decltype (declval$<$\+\_\+\+Tp$>$().match\+\_\+n\+\_\+ovdr (declval$<$\mbox{\hyperlink{classutl_1_1__1wire__id__t}{\+\_\+1wire\+\_\+id\+\_\+t}}\&$>$()))}
  62. Definition at line 676 of file \+\_\+1wire.\+h.
  63. \mbox{\Hypertarget{namespaceutl_1_1__1wire__i__det_a3416ddb06e089a5c191d356dd358ff00}\label{namespaceutl_1_1__1wire__i__det_a3416ddb06e089a5c191d356dd358ff00}}
  64. \index{utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}!try\+\_\+match\+\_\+t@{try\+\_\+match\+\_\+t}}
  65. \index{try\+\_\+match\+\_\+t@{try\+\_\+match\+\_\+t}!utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}}
  66. \subsubsection{\texorpdfstring{try\+\_\+match\+\_\+t}{try\_match\_t}}
  67. {\footnotesize\ttfamily template$<$class \+\_\+\+Tp $>$ \\
  68. using \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_a3416ddb06e089a5c191d356dd358ff00}{utl\+::\+\_\+1wire\+\_\+i\+\_\+det\+::try\+\_\+match\+\_\+t}} = typedef decltype (declval$<$\+\_\+\+Tp$>$().match (declval$<$\mbox{\hyperlink{classutl_1_1__1wire__id__t}{\+\_\+1wire\+\_\+id\+\_\+t}}\&$>$(), declval$<$typename \+\_\+\+Tp\+::\+Speed$>$()))}
  69. Definition at line 675 of file \+\_\+1wire.\+h.
  70. \mbox{\Hypertarget{namespaceutl_1_1__1wire__i__det_a67a086b8e4e3ee051ccb0351e6456630}\label{namespaceutl_1_1__1wire__i__det_a67a086b8e4e3ee051ccb0351e6456630}}
  71. \index{utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}!try\+\_\+next\+\_\+t@{try\+\_\+next\+\_\+t}}
  72. \index{try\+\_\+next\+\_\+t@{try\+\_\+next\+\_\+t}!utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}}
  73. \subsubsection{\texorpdfstring{try\+\_\+next\+\_\+t}{try\_next\_t}}
  74. {\footnotesize\ttfamily template$<$class \+\_\+\+Tp $>$ \\
  75. using \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_a67a086b8e4e3ee051ccb0351e6456630}{utl\+::\+\_\+1wire\+\_\+i\+\_\+det\+::try\+\_\+next\+\_\+t}} = typedef decltype (declval$<$\+\_\+\+Tp$>$().next (declval$<$typename \+\_\+\+Tp\+::\+Speed$>$()))}
  76. Definition at line 680 of file \+\_\+1wire.\+h.
  77. \mbox{\Hypertarget{namespaceutl_1_1__1wire__i__det_a502fff2c967d26334aa3c2fcf0b037ba}\label{namespaceutl_1_1__1wire__i__det_a502fff2c967d26334aa3c2fcf0b037ba}}
  78. \index{utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}!try\+\_\+reset\+\_\+t@{try\+\_\+reset\+\_\+t}}
  79. \index{try\+\_\+reset\+\_\+t@{try\+\_\+reset\+\_\+t}!utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}}
  80. \subsubsection{\texorpdfstring{try\+\_\+reset\+\_\+t}{try\_reset\_t}}
  81. {\footnotesize\ttfamily template$<$class \+\_\+\+Tp $>$ \\
  82. using \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_a502fff2c967d26334aa3c2fcf0b037ba}{utl\+::\+\_\+1wire\+\_\+i\+\_\+det\+::try\+\_\+reset\+\_\+t}} = typedef decltype (declval$<$\+\_\+\+Tp$>$().reset (declval$<$typename \+\_\+\+Tp\+::\+Speed$>$()))}
  83. Definition at line 671 of file \+\_\+1wire.\+h.
  84. \mbox{\Hypertarget{namespaceutl_1_1__1wire__i__det_a303cf58468da38ceeaa2477570f82948}\label{namespaceutl_1_1__1wire__i__det_a303cf58468da38ceeaa2477570f82948}}
  85. \index{utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}!try\+\_\+rx1\+\_\+t@{try\+\_\+rx1\+\_\+t}}
  86. \index{try\+\_\+rx1\+\_\+t@{try\+\_\+rx1\+\_\+t}!utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}}
  87. \subsubsection{\texorpdfstring{try\+\_\+rx1\+\_\+t}{try\_rx1\_t}}
  88. {\footnotesize\ttfamily template$<$class \+\_\+\+Tp $>$ \\
  89. using \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_a303cf58468da38ceeaa2477570f82948}{utl\+::\+\_\+1wire\+\_\+i\+\_\+det\+::try\+\_\+rx1\+\_\+t}} = typedef decltype (declval$<$\+\_\+\+Tp$>$().rx\+\_\+data (declval$<$typename \+\_\+\+Tp\+::\+Speed$>$()))}
  90. Definition at line 672 of file \+\_\+1wire.\+h.
  91. \mbox{\Hypertarget{namespaceutl_1_1__1wire__i__det_af6c9df3cb6bf2479e8d30a5d36ab71cb}\label{namespaceutl_1_1__1wire__i__det_af6c9df3cb6bf2479e8d30a5d36ab71cb}}
  92. \index{utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}!try\+\_\+skip\+\_\+n\+\_\+ovdr\+\_\+t@{try\+\_\+skip\+\_\+n\+\_\+ovdr\+\_\+t}}
  93. \index{try\+\_\+skip\+\_\+n\+\_\+ovdr\+\_\+t@{try\+\_\+skip\+\_\+n\+\_\+ovdr\+\_\+t}!utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}}
  94. \subsubsection{\texorpdfstring{try\+\_\+skip\+\_\+n\+\_\+ovdr\+\_\+t}{try\_skip\_n\_ovdr\_t}}
  95. {\footnotesize\ttfamily template$<$class \+\_\+\+Tp $>$ \\
  96. using \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_af6c9df3cb6bf2479e8d30a5d36ab71cb}{utl\+::\+\_\+1wire\+\_\+i\+\_\+det\+::try\+\_\+skip\+\_\+n\+\_\+ovdr\+\_\+t}} = typedef decltype (declval$<$\+\_\+\+Tp$>$().skip\+\_\+n\+\_\+ovdr ())}
  97. Definition at line 678 of file \+\_\+1wire.\+h.
  98. \mbox{\Hypertarget{namespaceutl_1_1__1wire__i__det_a9d0825a40484e7868bf41fc4825b4f7d}\label{namespaceutl_1_1__1wire__i__det_a9d0825a40484e7868bf41fc4825b4f7d}}
  99. \index{utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}!try\+\_\+skip\+\_\+t@{try\+\_\+skip\+\_\+t}}
  100. \index{try\+\_\+skip\+\_\+t@{try\+\_\+skip\+\_\+t}!utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}}
  101. \subsubsection{\texorpdfstring{try\+\_\+skip\+\_\+t}{try\_skip\_t}}
  102. {\footnotesize\ttfamily template$<$class \+\_\+\+Tp $>$ \\
  103. using \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_a9d0825a40484e7868bf41fc4825b4f7d}{utl\+::\+\_\+1wire\+\_\+i\+\_\+det\+::try\+\_\+skip\+\_\+t}} = typedef decltype (declval$<$\+\_\+\+Tp$>$().skip (declval$<$typename \+\_\+\+Tp\+::\+Speed$>$()))}
  104. Definition at line 677 of file \+\_\+1wire.\+h.
  105. \mbox{\Hypertarget{namespaceutl_1_1__1wire__i__det_ac6a2b551bcf51b426c2e8506ab2473fe}\label{namespaceutl_1_1__1wire__i__det_ac6a2b551bcf51b426c2e8506ab2473fe}}
  106. \index{utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}!try\+\_\+tx1\+\_\+t@{try\+\_\+tx1\+\_\+t}}
  107. \index{try\+\_\+tx1\+\_\+t@{try\+\_\+tx1\+\_\+t}!utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}}
  108. \subsubsection{\texorpdfstring{try\+\_\+tx1\+\_\+t}{try\_tx1\_t}}
  109. {\footnotesize\ttfamily template$<$class \+\_\+\+Tp $>$ \\
  110. using \mbox{\hyperlink{namespaceutl_1_1__1wire__i__det_ac6a2b551bcf51b426c2e8506ab2473fe}{utl\+::\+\_\+1wire\+\_\+i\+\_\+det\+::try\+\_\+tx1\+\_\+t}} = typedef decltype (declval$<$\+\_\+\+Tp$>$().tx\+\_\+data (declval$<$\mbox{\hyperlink{namespaceutl_a1427cb5a2b13313147a902173b91e3c1}{byte\+\_\+t}}$>$(), declval$<$typename \+\_\+\+Tp\+::\+Speed$>$()))}
  111. Definition at line 673 of file \+\_\+1wire.\+h.
  112. \subsection{Function Documentation}
  113. \mbox{\Hypertarget{namespaceutl_1_1__1wire__i__det_a237719ffa105f988cb175d6720712a4a}\label{namespaceutl_1_1__1wire__i__det_a237719ffa105f988cb175d6720712a4a}}
  114. \index{utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}!\+\_\+first@{\+\_\+first}}
  115. \index{\+\_\+first@{\+\_\+first}!utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}}
  116. \subsubsection{\texorpdfstring{\+\_\+first()}{\_first()}}
  117. {\footnotesize\ttfamily template$<$typename \+\_\+T $>$ \\
  118. \mbox{\hyperlink{classutl_1_1__1wire__id__t}{\+\_\+1wire\+\_\+id\+\_\+t}} utl\+::\+\_\+1wire\+\_\+i\+\_\+det\+::\+\_\+first (\begin{DoxyParamCaption}\item[{\+\_\+T \&}]{obj, }\item[{typename \+\_\+\+T\+::\+Speed}]{s, }\item[{bool}]{alarm }\end{DoxyParamCaption})}
  119. \textquotesingle{}first\textquotesingle{} operation, to search on the 1-\/\+Wire for the first device. This is performed by setting dec\+\_\+, pos\+\_\+ and cur\+\_\+ to zero and then doing the search.
  120. \begin{DoxyParams}{Parameters}
  121. {\em obj} & The object from which we call private members \\
  122. \hline
  123. {\em s} & The bus speed \\
  124. \hline
  125. \end{DoxyParams}
  126. \begin{DoxyReturn}{Returns}
  127. ID The rom\+ID \begin{DoxyItemize}
  128. \item null\+Dev Indicate no \mbox{[}more\mbox{]} device\mbox{[}s\mbox{]} \end{DoxyItemize}
  129. \end{DoxyReturn}
  130. Definition at line 540 of file \+\_\+1wire.\+h.
  131. \mbox{\Hypertarget{namespaceutl_1_1__1wire__i__det_a1b07e623a39ce82f1514846169f3a954}\label{namespaceutl_1_1__1wire__i__det_a1b07e623a39ce82f1514846169f3a954}}
  132. \index{utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}!\+\_\+match@{\+\_\+match}}
  133. \index{\+\_\+match@{\+\_\+match}!utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}}
  134. \subsubsection{\texorpdfstring{\+\_\+match()}{\_match()}}
  135. {\footnotesize\ttfamily template$<$typename \+\_\+T $>$ \\
  136. void utl\+::\+\_\+1wire\+\_\+i\+\_\+det\+::\+\_\+match (\begin{DoxyParamCaption}\item[{\+\_\+T \&}]{obj, }\item[{\mbox{\hyperlink{classutl_1_1__1wire__id__t}{\+\_\+1wire\+\_\+id\+\_\+t}} \&}]{id, }\item[{typename \+\_\+\+T\+::\+Speed}]{s }\end{DoxyParamCaption})}
  137. Send match rom command
  138. \begin{DoxyParams}{Parameters}
  139. {\em obj} & The object from which we call private members \\
  140. \hline
  141. {\em id} & The ID to select on the bus \\
  142. \hline
  143. {\em s} & The speed to use for the command \\
  144. \hline
  145. \end{DoxyParams}
  146. Definition at line 493 of file \+\_\+1wire.\+h.
  147. \mbox{\Hypertarget{namespaceutl_1_1__1wire__i__det_a1e14f734d5e232c914be6ea97982aa40}\label{namespaceutl_1_1__1wire__i__det_a1e14f734d5e232c914be6ea97982aa40}}
  148. \index{utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}!\+\_\+match\+\_\+n\+\_\+ovdr@{\+\_\+match\+\_\+n\+\_\+ovdr}}
  149. \index{\+\_\+match\+\_\+n\+\_\+ovdr@{\+\_\+match\+\_\+n\+\_\+ovdr}!utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}}
  150. \subsubsection{\texorpdfstring{\+\_\+match\+\_\+n\+\_\+ovdr()}{\_match\_n\_ovdr()}}
  151. {\footnotesize\ttfamily template$<$typename \+\_\+T $>$ \\
  152. void utl\+::\+\_\+1wire\+\_\+i\+\_\+det\+::\+\_\+match\+\_\+n\+\_\+ovdr (\begin{DoxyParamCaption}\item[{\+\_\+T \&}]{obj, }\item[{\mbox{\hyperlink{classutl_1_1__1wire__id__t}{\+\_\+1wire\+\_\+id\+\_\+t}} \&}]{id }\end{DoxyParamCaption})}
  153. Match and overdrive sequence
  154. \begin{DoxyParams}{Parameters}
  155. {\em obj} & The object from which we call private members \\
  156. \hline
  157. {\em id} & The ID to select on the bus \\
  158. \hline
  159. \end{DoxyParams}
  160. Definition at line 505 of file \+\_\+1wire.\+h.
  161. \mbox{\Hypertarget{namespaceutl_1_1__1wire__i__det_a1f7b692a40769ebe59343613b147e01d}\label{namespaceutl_1_1__1wire__i__det_a1f7b692a40769ebe59343613b147e01d}}
  162. \index{utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}!\+\_\+next@{\+\_\+next}}
  163. \index{\+\_\+next@{\+\_\+next}!utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}}
  164. \subsubsection{\texorpdfstring{\+\_\+next()}{\_next()}}
  165. {\footnotesize\ttfamily template$<$typename \+\_\+T $>$ \\
  166. \mbox{\hyperlink{classutl_1_1__1wire__id__t}{\+\_\+1wire\+\_\+id\+\_\+t}} utl\+::\+\_\+1wire\+\_\+i\+\_\+det\+::\+\_\+next (\begin{DoxyParamCaption}\item[{\+\_\+T \&}]{obj, }\item[{typename \+\_\+\+T\+::\+Speed}]{s, }\item[{bool}]{alarm }\end{DoxyParamCaption})}
  167. \textquotesingle{}next\textquotesingle{} operation, to search on the 1-\/\+Wire for the next device. This search is usually performed after a \textquotesingle{}first\textquotesingle{} operation or another \textquotesingle{}next\textquotesingle{} operation. Based on maxim-\/ic application note 187.
  168. \begin{DoxyParams}{Parameters}
  169. {\em obj} & The object from which we call private members \\
  170. \hline
  171. {\em s} & The bus speed \\
  172. \hline
  173. \end{DoxyParams}
  174. \begin{DoxyReturn}{Returns}
  175. The rom\+ID \begin{DoxyItemize}
  176. \item null\+Dev Indicate no \mbox{[}more\mbox{]} device\mbox{[}s\mbox{]} \end{DoxyItemize}
  177. \end{DoxyReturn}
  178. Definition at line 556 of file \+\_\+1wire.\+h.
  179. \mbox{\Hypertarget{namespaceutl_1_1__1wire__i__det_a9ea80f4ef2422a7fd71788c42b228053}\label{namespaceutl_1_1__1wire__i__det_a9ea80f4ef2422a7fd71788c42b228053}}
  180. \index{utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}!\+\_\+skip@{\+\_\+skip}}
  181. \index{\+\_\+skip@{\+\_\+skip}!utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}}
  182. \subsubsection{\texorpdfstring{\+\_\+skip()}{\_skip()}}
  183. {\footnotesize\ttfamily template$<$typename \+\_\+T $>$ \\
  184. void utl\+::\+\_\+1wire\+\_\+i\+\_\+det\+::\+\_\+skip (\begin{DoxyParamCaption}\item[{\+\_\+T \&}]{obj, }\item[{typename \+\_\+\+T\+::\+Speed}]{s }\end{DoxyParamCaption})}
  185. Send skip command to the bus
  186. \begin{DoxyParams}{Parameters}
  187. {\em obj} & The object from which we call private members \\
  188. \hline
  189. {\em id} & The ID to select on the bus \\
  190. \hline
  191. \end{DoxyParams}
  192. Definition at line 517 of file \+\_\+1wire.\+h.
  193. \mbox{\Hypertarget{namespaceutl_1_1__1wire__i__det_ace224a4d329166bfd9f3448e492baf2b}\label{namespaceutl_1_1__1wire__i__det_ace224a4d329166bfd9f3448e492baf2b}}
  194. \index{utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}!\+\_\+skip\+\_\+n\+\_\+ovdr@{\+\_\+skip\+\_\+n\+\_\+ovdr}}
  195. \index{\+\_\+skip\+\_\+n\+\_\+ovdr@{\+\_\+skip\+\_\+n\+\_\+ovdr}!utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}}
  196. \subsubsection{\texorpdfstring{\+\_\+skip\+\_\+n\+\_\+ovdr()}{\_skip\_n\_ovdr()}}
  197. {\footnotesize\ttfamily template$<$typename \+\_\+T $>$ \\
  198. void utl\+::\+\_\+1wire\+\_\+i\+\_\+det\+::\+\_\+skip\+\_\+n\+\_\+ovdr (\begin{DoxyParamCaption}\item[{\+\_\+T \&}]{obj }\end{DoxyParamCaption})}
  199. Send the Skip and Overdrive sequence
  200. \begin{DoxyParams}{Parameters}
  201. {\em obj} & The object from which we call private members \\
  202. \hline
  203. \end{DoxyParams}
  204. Definition at line 526 of file \+\_\+1wire.\+h.
  205. \mbox{\Hypertarget{namespaceutl_1_1__1wire__i__det_a85a3a19778edb037f6341f37135a5494}\label{namespaceutl_1_1__1wire__i__det_a85a3a19778edb037f6341f37135a5494}}
  206. \index{utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}!\+\_\+touch@{\+\_\+touch}}
  207. \index{\+\_\+touch@{\+\_\+touch}!utl\+::\+\_\+1wire\+\_\+i\+\_\+det@{utl\+::\+\_\+1wire\+\_\+i\+\_\+det}}
  208. \subsubsection{\texorpdfstring{\+\_\+touch()}{\_touch()}}
  209. {\footnotesize\ttfamily template$<$typename \+\_\+T $>$ \\
  210. \mbox{\hyperlink{namespaceutl_a1427cb5a2b13313147a902173b91e3c1}{byte\+\_\+t}} utl\+::\+\_\+1wire\+\_\+i\+\_\+det\+::\+\_\+touch (\begin{DoxyParamCaption}\item[{\+\_\+T \&}]{obj, }\item[{\mbox{\hyperlink{namespaceutl_a1427cb5a2b13313147a902173b91e3c1}{byte\+\_\+t}}}]{out, }\item[{typename \+\_\+\+T\+::\+Speed}]{s }\end{DoxyParamCaption})}
  211. Write a byte to 1-\/\+Wire bus and read the response.
  212. \begin{DoxyParams}{Parameters}
  213. {\em obj} & The object from which we call private members \\
  214. \hline
  215. {\em b} & The byte to write \\
  216. \hline
  217. {\em s} & Bus speed to use \\
  218. \hline
  219. \end{DoxyParams}
  220. \begin{DoxyReturn}{Returns}
  221. The byte received.
  222. \end{DoxyReturn}
  223. Definition at line 467 of file \+\_\+1wire.\+h.