\hypertarget{open_e_l_8c}{}\section{/\+Users/nakamura/openel/\+Open\+E\+L-\/3.0.0/lib/open\+EL.c File Reference}
\label{open_e_l_8c}\index{/\+Users/nakamura/openel/\+Open\+E\+L-\/3.\+0.\+0/lib/open\+E\+L.\+c@{/\+Users/nakamura/openel/\+Open\+E\+L-\/3.\+0.\+0/lib/open\+E\+L.\+c}}


Open\+EL Common File  3.\+0.\+0.  


{\ttfamily \#include \char`\"{}open\+E\+L.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}stdio.\+h\char`\"{}}\newline
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{open_e_l_8c_a2adcc5fc079d64cee474762a234270a9}\label{open_e_l_8c_a2adcc5fc079d64cee474762a234270a9}} 
\#define {\bfseries O\+P\+E\+N\+E\+L\+\_\+\+S\+W\+\_\+\+S\+U\+R\+F\+A\+C\+E\+\_\+\+F\+R\+I\+E\+ND}~1
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
enum Return\+Code \mbox{\hyperlink{open_e_l_8c_a516c63aa4f03cd444db528786811f2bf}{Hal\+Init}} (\mbox{\hyperlink{union_hal_component}{H\+A\+L\+C\+O\+M\+P\+O\+N\+E\+N\+T\+\_\+T}} $\ast$hal\+Component)
\item 
enum Return\+Code \mbox{\hyperlink{open_e_l_8c_a8c628635efbf67fa00b172b11b6dcc76}{Hal\+Re\+Init}} (\mbox{\hyperlink{union_hal_component}{H\+A\+L\+C\+O\+M\+P\+O\+N\+E\+N\+T\+\_\+T}} $\ast$hal\+Component)
\item 
enum Return\+Code \mbox{\hyperlink{open_e_l_8c_a19d80fc962f4dc3fdc9d657ffca516b5}{Hal\+Finalize}} (\mbox{\hyperlink{union_hal_component}{H\+A\+L\+C\+O\+M\+P\+O\+N\+E\+N\+T\+\_\+T}} $\ast$hal\+Component)
\item 
\mbox{\Hypertarget{open_e_l_8c_a3f6f9841f850de2c7e8c31727b0103c9}\label{open_e_l_8c_a3f6f9841f850de2c7e8c31727b0103c9}} 
enum Return\+Code {\bfseries Hal\+Add\+Observer} (\mbox{\hyperlink{union_hal_component}{H\+A\+L\+C\+O\+M\+P\+O\+N\+E\+N\+T\+\_\+T}} $\ast$hal\+Component, \mbox{\hyperlink{struct_h_a_l_observer}{H\+A\+L\+O\+B\+S\+E\+R\+V\+E\+R\+\_\+T}} $\ast$hal\+Observer)
\item 
\mbox{\Hypertarget{open_e_l_8c_a73f140605a32be3498fbd9cb24b36832}\label{open_e_l_8c_a73f140605a32be3498fbd9cb24b36832}} 
enum Return\+Code {\bfseries Hal\+Remove\+Observer} (\mbox{\hyperlink{union_hal_component}{H\+A\+L\+C\+O\+M\+P\+O\+N\+E\+N\+T\+\_\+T}} $\ast$hal\+Component, \mbox{\hyperlink{struct_h_a_l_observer}{H\+A\+L\+O\+B\+S\+E\+R\+V\+E\+R\+\_\+T}} $\ast$hal\+Observer)
\item 
\mbox{\Hypertarget{open_e_l_8c_af5cdcb3695c81365c26f4c7834ed33ff}\label{open_e_l_8c_af5cdcb3695c81365c26f4c7834ed33ff}} 
enum Return\+Code {\bfseries Hal\+Get\+Property} (\mbox{\hyperlink{union_hal_component}{H\+A\+L\+C\+O\+M\+P\+O\+N\+E\+N\+T\+\_\+T}} $\ast$hal\+Component, \mbox{\hyperlink{struct_property}{P\+R\+O\+P\+E\+R\+T\+Y\+\_\+T}} $\ast$property)
\item 
\mbox{\Hypertarget{open_e_l_8c_a8abf239aabeef21f0d94b092653d240b}\label{open_e_l_8c_a8abf239aabeef21f0d94b092653d240b}} 
enum Return\+Code {\bfseries Hal\+Get\+Time} (\mbox{\hyperlink{union_hal_component}{H\+A\+L\+C\+O\+M\+P\+O\+N\+E\+N\+T\+\_\+T}} $\ast$hal\+Component, int32\+\_\+t $\ast$time)
\item 
\mbox{\Hypertarget{open_e_l_8c_a3e185a1072c3689519b109663fd02115}\label{open_e_l_8c_a3e185a1072c3689519b109663fd02115}} 
enum Return\+Code {\bfseries Hal\+Event\+Timer\+Start\+Timer} (\mbox{\hyperlink{struct_event_timer}{E\+V\+E\+N\+T\+T\+I\+M\+E\+R\+\_\+T}} $\ast$event\+Timer)
\item 
\mbox{\Hypertarget{open_e_l_8c_adc9765acd3cae629a2ca419413123c3a}\label{open_e_l_8c_adc9765acd3cae629a2ca419413123c3a}} 
enum Return\+Code {\bfseries Hal\+Event\+Timer\+Stop\+Timer} (\mbox{\hyperlink{struct_event_timer}{E\+V\+E\+N\+T\+T\+I\+M\+E\+R\+\_\+T}} $\ast$event\+Timer)
\item 
\mbox{\Hypertarget{open_e_l_8c_a4c42ea844574b20eec19a376d99faed4}\label{open_e_l_8c_a4c42ea844574b20eec19a376d99faed4}} 
enum Return\+Code {\bfseries Hal\+Event\+Timer\+Set\+Event\+Period} (\mbox{\hyperlink{struct_event_timer}{E\+V\+E\+N\+T\+T\+I\+M\+E\+R\+\_\+T}} $\ast$event\+Timer, int32\+\_\+t event\+Period)
\item 
\mbox{\Hypertarget{open_e_l_8c_af0de985e6c148e3d8e4187ac7ce08755}\label{open_e_l_8c_af0de985e6c148e3d8e4187ac7ce08755}} 
enum Return\+Code {\bfseries Hal\+Event\+Timer\+Add\+Observer} (\mbox{\hyperlink{struct_event_timer}{E\+V\+E\+N\+T\+T\+I\+M\+E\+R\+\_\+T}} $\ast$event\+Timer, \mbox{\hyperlink{struct_timer_observer}{T\+I\+M\+E\+R\+O\+B\+S\+E\+R\+V\+E\+R\+\_\+T}} $\ast$timer\+Observer)
\item 
\mbox{\Hypertarget{open_e_l_8c_ac33b9e615852e71251d35cd08d835db9}\label{open_e_l_8c_ac33b9e615852e71251d35cd08d835db9}} 
enum Return\+Code {\bfseries Hal\+Event\+Timer\+Remove\+Observer} (\mbox{\hyperlink{struct_event_timer}{E\+V\+E\+N\+T\+T\+I\+M\+E\+R\+\_\+T}} $\ast$event\+Timer, \mbox{\hyperlink{struct_timer_observer}{T\+I\+M\+E\+R\+O\+B\+S\+E\+R\+V\+E\+R\+\_\+T}} $\ast$timer\+Observer)
\item 
int32\+\_\+t \mbox{\hyperlink{open_e_l_8c_afb3bf7c93d980bacf54964e21b46e1d7}{el\+Get\+Phyical\+Port\+ID}} (uint32\+\_\+t handle, uint32\+\_\+t profile\+ID)
\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{open_e_l_8c_a6b3a9fb6f3b96de1b05aa1c45bca04db}\label{open_e_l_8c_a6b3a9fb6f3b96de1b05aa1c45bca04db}} 
struct \mbox{\hyperlink{structel_port__st}{el\+Port\+\_\+st}} {\bfseries el\+Port\+Tbl} \mbox{[}E\+L\+\_\+\+P\+O\+R\+T\+\_\+\+I\+D\+\_\+\+M\+AX\mbox{]}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Open\+EL Common File  3.\+0.\+0. 



\subsection{Function Documentation}
\mbox{\Hypertarget{open_e_l_8c_afb3bf7c93d980bacf54964e21b46e1d7}\label{open_e_l_8c_afb3bf7c93d980bacf54964e21b46e1d7}} 
\index{open\+E\+L.\+c@{open\+E\+L.\+c}!el\+Get\+Phyical\+Port\+ID@{el\+Get\+Phyical\+Port\+ID}}
\index{el\+Get\+Phyical\+Port\+ID@{el\+Get\+Phyical\+Port\+ID}!open\+E\+L.\+c@{open\+E\+L.\+c}}
\subsubsection{\texorpdfstring{el\+Get\+Phyical\+Port\+I\+D()}{elGetPhyicalPortID()}}
{\footnotesize\ttfamily int32\+\_\+t el\+Get\+Phyical\+Port\+ID (\begin{DoxyParamCaption}\item[{uint32\+\_\+t}]{handle,  }\item[{uint32\+\_\+t}]{profile\+ID }\end{DoxyParamCaption})}

物理handleに変換 \mbox{\Hypertarget{open_e_l_8c_a19d80fc962f4dc3fdc9d657ffca516b5}\label{open_e_l_8c_a19d80fc962f4dc3fdc9d657ffca516b5}} 
\index{open\+E\+L.\+c@{open\+E\+L.\+c}!Hal\+Finalize@{Hal\+Finalize}}
\index{Hal\+Finalize@{Hal\+Finalize}!open\+E\+L.\+c@{open\+E\+L.\+c}}
\subsubsection{\texorpdfstring{Hal\+Finalize()}{HalFinalize()}}
{\footnotesize\ttfamily enum Return\+Code Hal\+Finalize (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{union_hal_component}{H\+A\+L\+C\+O\+M\+P\+O\+N\+E\+N\+T\+\_\+T}} $\ast$}]{hal\+Component }\end{DoxyParamCaption})}

Open\+E\+Lデバイスの終了 \mbox{\Hypertarget{open_e_l_8c_a516c63aa4f03cd444db528786811f2bf}\label{open_e_l_8c_a516c63aa4f03cd444db528786811f2bf}} 
\index{open\+E\+L.\+c@{open\+E\+L.\+c}!Hal\+Init@{Hal\+Init}}
\index{Hal\+Init@{Hal\+Init}!open\+E\+L.\+c@{open\+E\+L.\+c}}
\subsubsection{\texorpdfstring{Hal\+Init()}{HalInit()}}
{\footnotesize\ttfamily enum Return\+Code Hal\+Init (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{union_hal_component}{H\+A\+L\+C\+O\+M\+P\+O\+N\+E\+N\+T\+\_\+T}} $\ast$}]{hal\+Component }\end{DoxyParamCaption})}

Open\+E\+L初期化

Initialize the open\+EL component 
\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em vendor\+ID} & \\
\hline
\mbox{\tt in}  & {\em product\+ID} & \\
\hline
\mbox{\tt in}  & {\em component} & index \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0\+:OK / less than -\/1\+:error code 
\end{DoxyReturn}
\mbox{\Hypertarget{open_e_l_8c_a8c628635efbf67fa00b172b11b6dcc76}\label{open_e_l_8c_a8c628635efbf67fa00b172b11b6dcc76}} 
\index{open\+E\+L.\+c@{open\+E\+L.\+c}!Hal\+Re\+Init@{Hal\+Re\+Init}}
\index{Hal\+Re\+Init@{Hal\+Re\+Init}!open\+E\+L.\+c@{open\+E\+L.\+c}}
\subsubsection{\texorpdfstring{Hal\+Re\+Init()}{HalReInit()}}
{\footnotesize\ttfamily enum Return\+Code Hal\+Re\+Init (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{union_hal_component}{H\+A\+L\+C\+O\+M\+P\+O\+N\+E\+N\+T\+\_\+T}} $\ast$}]{hal\+Component }\end{DoxyParamCaption})}

Open\+E\+Lデバイスのリセット 