\hypertarget{ir__remote_8c}{}\section{/home/mk/tmp/lirc/lib/ir\+\_\+remote.c File Reference}
\label{ir__remote_8c}\index{/home/mk/tmp/lirc/lib/ir\+\_\+remote.\+c(085323c 2016-\/01-\/06 15\+:32\+:54 +0100)@{/home/mk/tmp/lirc/lib/ir\+\_\+remote.\+c(085323c 2016-\/01-\/06 15\+:32\+:54 +0100)}}


Implements \hyperlink{ir__remote_8h}{ir\+\_\+remote.\+h}.  


{\ttfamily \#include $<$stdlib.\+h$>$}\newline
{\ttfamily \#include $<$stdio.\+h$>$}\newline
{\ttfamily \#include $<$fcntl.\+h$>$}\newline
{\ttfamily \#include $<$limits.\+h$>$}\newline
{\ttfamily \#include $<$sys/ioctl.\+h$>$}\newline
{\ttfamily \#include \char`\"{}include/media/lirc.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}lirc/ir\+\_\+remote.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}lirc/driver.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}lirc/release.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}lirc/lirc\+\_\+log.\+h\char`\"{}}\newline
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structir__ncode}{ir\+\_\+ncode} $\ast$ \hyperlink{group__driver__api_gac288bce2140d2066a3990a1b2e3317c5}{ncode\+\_\+dup} (struct \hyperlink{structir__ncode}{ir\+\_\+ncode} $\ast$ncode)
\item 
void \hyperlink{group__driver__api_ga4477860d1f604548e032694de8f69c16}{ncode\+\_\+free} (struct \hyperlink{structir__ncode}{ir\+\_\+ncode} $\ast$ncode)
\item 
void \hyperlink{group__driver__api_ga8d5bc121b8582a690000bc8befe13080}{ir\+\_\+remote\+\_\+init} (int use\+\_\+dyncodes)
\item 
void \hyperlink{group__driver__api_ga19bab2135ca2b7f68dc0b2f8cde9863f}{get\+\_\+frequency\+\_\+range} (const struct \hyperlink{structir__remote}{ir\+\_\+remote} $\ast$remotes, unsigned int $\ast$min\+\_\+freq, unsigned int $\ast$max\+\_\+freq)
\item 
void \hyperlink{group__driver__api_ga1a1b6c86d0309f25ab5806a5f861692c}{get\+\_\+filter\+\_\+parameters} (const struct \hyperlink{structir__remote}{ir\+\_\+remote} $\ast$remotes, lirc\+\_\+t $\ast$max\+\_\+gap\+\_\+lengthp, lirc\+\_\+t $\ast$min\+\_\+pulse\+\_\+lengthp, lirc\+\_\+t $\ast$min\+\_\+space\+\_\+lengthp, lirc\+\_\+t $\ast$max\+\_\+pulse\+\_\+lengthp, lirc\+\_\+t $\ast$max\+\_\+space\+\_\+lengthp)
\item 
const struct \hyperlink{structir__remote}{ir\+\_\+remote} $\ast$ \hyperlink{group__driver__api_gaadf09b8ef4b71be00f8e53a39f70d315}{is\+\_\+in\+\_\+remotes} (const struct \hyperlink{structir__remote}{ir\+\_\+remote} $\ast$remotes, const struct \hyperlink{structir__remote}{ir\+\_\+remote} $\ast$remote)
\item 
struct \hyperlink{structir__remote}{ir\+\_\+remote} $\ast$ \hyperlink{group__driver__api_ga251129673cd73c5f869bb53c6c38a88f}{get\+\_\+ir\+\_\+remote} (const struct \hyperlink{structir__remote}{ir\+\_\+remote} $\ast$remotes, const char $\ast$name)
\item 
int \hyperlink{group__driver__api_gabac8048f405d0a78fcc01fa9ef1132df}{map\+\_\+code} (const struct \hyperlink{structir__remote}{ir\+\_\+remote} $\ast$remote, struct \hyperlink{structdecode__ctx__t}{decode\+\_\+ctx\+\_\+t} $\ast$ctx, int pre\+\_\+bits, \hyperlink{ir__remote__types_8h_af5395595bc25a70e974255b83d97db06}{ir\+\_\+code} pre, int bits, \hyperlink{ir__remote__types_8h_af5395595bc25a70e974255b83d97db06}{ir\+\_\+code} code, int post\+\_\+bits, \hyperlink{ir__remote__types_8h_af5395595bc25a70e974255b83d97db06}{ir\+\_\+code} post)
\item 
void \hyperlink{group__driver__api_gac691a06cc99d8c914e2c7451407f245a}{map\+\_\+gap} (const struct \hyperlink{structir__remote}{ir\+\_\+remote} $\ast$remote, struct \hyperlink{structdecode__ctx__t}{decode\+\_\+ctx\+\_\+t} $\ast$ctx, const struct timeval $\ast$start, const struct timeval $\ast$last, lirc\+\_\+t signal\+\_\+length)
\item 
struct \hyperlink{structir__ncode}{ir\+\_\+ncode} $\ast$ \hyperlink{group__driver__api_gafaa7cb5587a3c58e3e825411b966738a}{get\+\_\+code\+\_\+by\+\_\+name} (const struct \hyperlink{structir__remote}{ir\+\_\+remote} $\ast$remote, const char $\ast$name)
\item 
\hypertarget{ir__remote_8c_a4f258aeecf1e6d52490d1337c14bfafd}{}\label{ir__remote_8c_a4f258aeecf1e6d52490d1337c14bfafd} 
void {\bfseries find\+\_\+longest\+\_\+match} (struct \hyperlink{structir__remote}{ir\+\_\+remote} $\ast$remote, struct \hyperlink{structir__ncode}{ir\+\_\+ncode} $\ast$codes, \hyperlink{ir__remote__types_8h_af5395595bc25a70e974255b83d97db06}{ir\+\_\+code} all, \hyperlink{ir__remote__types_8h_af5395595bc25a70e974255b83d97db06}{ir\+\_\+code} $\ast$next\+\_\+all, int have\+\_\+code, struct \hyperlink{structir__ncode}{ir\+\_\+ncode} $\ast$$\ast$found, int $\ast$found\+\_\+code)
\item 
int \hyperlink{group__driver__api_ga04461705747fd8521d369ee96ed762fe}{write\+\_\+message} (char $\ast$buffer, size\+\_\+t size, const char $\ast$remote\+\_\+name, const char $\ast$button\+\_\+name, const char $\ast$button\+\_\+suffix, \hyperlink{ir__remote__types_8h_af5395595bc25a70e974255b83d97db06}{ir\+\_\+code} code, int reps)
\item 
char $\ast$ \hyperlink{group__driver__api_gae334c37e486ce414abf272d4850df6c4}{decode\+\_\+all} (struct \hyperlink{structir__remote}{ir\+\_\+remote} $\ast$remotes)
\item 
int \hyperlink{group__driver__api_ga51d2eb6ccf92c9210c69cd727b712bae}{send\+\_\+ir\+\_\+ncode} (struct \hyperlink{structir__remote}{ir\+\_\+remote} $\ast$remote, struct \hyperlink{structir__ncode}{ir\+\_\+ncode} $\ast$code, int delay)
\item 
const struct \hyperlink{structir__remote}{ir\+\_\+remote} $\ast$ \hyperlink{group__driver__api_gaf2e0b982088d231116dea399afa8597f}{get\+\_\+decoding} (void)
\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\hypertarget{ir__remote_8c_aae1e36a18695c7bc004436556ff3b53e}{}\label{ir__remote_8c_aae1e36a18695c7bc004436556ff3b53e} 
struct \hyperlink{structir__remote}{ir\+\_\+remote} $\ast$ {\bfseries decoding} = N\+U\+LL
\item 
struct \hyperlink{structir__remote}{ir\+\_\+remote} $\ast$ \hyperlink{group__driver__api_ga474c489cabdaae4546ca0ac26ec9cd87}{last\+\_\+remote} = N\+U\+LL
\item 
struct \hyperlink{structir__remote}{ir\+\_\+remote} $\ast$ \hyperlink{group__driver__api_ga7bc28a85da7d0ccf4466708918f01dc4}{repeat\+\_\+remote} = N\+U\+LL
\item 
struct \hyperlink{structir__ncode}{ir\+\_\+ncode} $\ast$ \hyperlink{group__driver__api_ga2da0e0383db556d0e1ba7261763815c5}{repeat\+\_\+code}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Implements \hyperlink{ir__remote_8h}{ir\+\_\+remote.\+h}. 

\begin{DoxyAuthor}{Authors}
Ralph Metzler, Christoph Bartelmus 
\end{DoxyAuthor}
\begin{DoxyCopyright}{Copyright}
Copyright (C) 1996,97 Ralph Metzler (\href{mailto:rjkm@thp.uni-koeln.de}{\tt rjkm@thp.\+uni-\/koeln.\+de}) Copyright (C) 1998 Christoph Bartelmus (\href{mailto:lirc@bartelmus.de}{\tt lirc@bartelmus.\+de}) 
\end{DoxyCopyright}
