\hypertarget{msp430lib_8h}{
\subsection{msp430lib.h File Reference}
\label{msp430lib_8h}\index{msp430lib.h@{msp430lib.h}}
}


\subsubsection{Detailed Description}
\begin{Desc}
\item[Version:]00.10\end{Desc}
Put the file comments here.



\footnotesize\begin{verbatim} * ============================================================================
 * Copyright (c) Texas Instruments Inc 2005
 *
 * Use of this software is controlled by the terms and conditions found in the
 * license agreement under which this software has been supplied or provided.
 * ============================================================================
 * \end{verbatim}
\normalsize
 

\subsubsection*{Defines}
\begin{CompactItemize}
\item 
\#define \hyperlink{msp430lib_8h_f85f3c44cbe0b0c145526d11d6b22611}{MSP430LIB\_\-SUCCESS}~1
\begin{CompactList}\small\item\em Indicates success of an API call. \item\end{CompactList}\item 
\#define \hyperlink{msp430lib_8h_0aeaf1fc60fae4ba79ac518f3abe1578}{MSP430LIB\_\-FAILURE}~0
\begin{CompactList}\small\item\em Indicates failure of an API call. \item\end{CompactList}\end{CompactItemize}
\subsubsection*{Enumerations}
\begin{CompactItemize}
\item 
enum \hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e}{msp430lib\_\-keycode} \{ \par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e5c2e93d1284bc0adcafca0bb21f2f68c}{MSP430LIB\_\-KEYCODE\_\-POWER} =  0x300c, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ee7af06c621c1d3b4c5c1f8ab0fe6c2a1}{MSP430LIB\_\-KEYCODE\_\-CHANINC} =  0x3020, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e82191d4c85093baad3cb554d0f44b4e8}{MSP430LIB\_\-KEYCODE\_\-CHANDEC} =  0x3021, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e66cd6cd0f8a96d3baf16df6094cf75af}{MSP430LIB\_\-KEYCODE\_\-VOLINC} =  0x3010, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e90e91d1de443714f3933cfe1714c62d4}{MSP430LIB\_\-KEYCODE\_\-VOLDEC} =  0x3011, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ec5d0bf6e0bbc1613f28cd1861d34f8ff}{MSP430LIB\_\-KEYCODE\_\-OK} =  0x300d, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ed1c70388314e4fc7a98beb86b06c6a1d}{MSP430LIB\_\-KEYCODE\_\-MENU} =  0x302e, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ed9fca7877e1aae8a827057aa787cf470}{MSP430LIB\_\-KEYCODE\_\-MENUDONE} =  0x300f, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e4525c3a22fa80ee0dfa5a36a42c6402e}{MSP430LIB\_\-KEYCODE\_\-INFOSELECT} =  0x300f, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ef48f511e3f9b3b23472ee7c3b89c0ae0}{MSP430LIB\_\-KEYCODE\_\-SLEEP} =  0x3026, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e02bb411a04331a2e93c3e7e215aed825}{MSP430LIB\_\-KEYCODE\_\-SUBTITLE} =  0x30cb, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e5104a586173e730cabcf7c668fa89861}{MSP430LIB\_\-KEYCODE\_\-REPEAT} =  0x3022, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e2df888a34e4420c3b8498301c5c6935b}{MSP430LIB\_\-KEYCODE\_\-1} =  0x3001, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ecf6e9fa054984fc3b998d68906cf008d}{MSP430LIB\_\-KEYCODE\_\-2} =  0x3002, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e54b8d14b8bbe6854373971f2d6b725ae}{MSP430LIB\_\-KEYCODE\_\-3} =  0x3003, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e338c39779736e0989f83399563da9237}{MSP430LIB\_\-KEYCODE\_\-4} =  0x3004, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e40d1414838512bdd6335896747c1abab}{MSP430LIB\_\-KEYCODE\_\-5} =  0x3005, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ee44ed6292f09739909349606c4b44422}{MSP430LIB\_\-KEYCODE\_\-6} =  0x3006, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e3a593e53520e1fe76647be1ffcec9072}{MSP430LIB\_\-KEYCODE\_\-7} =  0x3007, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045efa3e6507062cea9584e1afcff44600ac}{MSP430LIB\_\-KEYCODE\_\-8} =  0x3008, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045eaf57cc15822a3d9703d5c694c8a5c94f}{MSP430LIB\_\-KEYCODE\_\-9} =  0x3009, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e08838cab6cbc9092c4d2844dac7db99c}{MSP430LIB\_\-KEYCODE\_\-0} =  0x3000, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e63fa62bcdd5f542b4d3c4cb9cd0cfd52}{MSP430LIB\_\-KEYCODE\_\-ENTER} =  0x2039, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e5587889f23bb0e8200ae938156c15834}{MSP430LIB\_\-KEYCODE\_\-INPUT} =  0x20ff, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ec24c62d9f13895ed7956cdedaf0306ea}{MSP430LIB\_\-KEYCODE\_\-REWIND} =  0x3172, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e79714cf4eda3a5be1d5d6ba39ce1f30c}{MSP430LIB\_\-KEYCODE\_\-PLAY} =  0x3175, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e617346d08f1b23457193a4d0d1d98c39}{MSP430LIB\_\-KEYCODE\_\-FASTFORWARD} =  0x3174, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e0f54a5fd816bb91f82a1faa29f8b6a91}{MSP430LIB\_\-KEYCODE\_\-RECORD} =  0x3177, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e1be5f4df32ba84b622dbfedb9fb40aba}{MSP430LIB\_\-KEYCODE\_\-STOP} =  0x3176, 
\par
\hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ecb16488b28b018f593a5beb5a816f53b}{MSP430LIB\_\-KEYCODE\_\-PAUSE} =  0x3169
 \}
\begin{CompactList}\small\item\em The IR remote keycodes returned by the MSP430. Requires the DVD function on Philips PM4S set to code 020. \item\end{CompactList}\end{CompactItemize}
\subsubsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{msp430lib_8h_0f24653ebb9b8fb7b78ddbb76aeafa47}{msp430lib\_\-init} (void)
\begin{CompactList}\small\item\em Initializes the MSP430 library. Must be called before any API calls. \item\end{CompactList}\item 
int \hyperlink{msp430lib_8h_e160773f9383c63941f4a985a100b80c}{msp430lib\_\-get\_\-rtc} (int $\ast$year, int $\ast$month, int $\ast$day, int $\ast$hour, int $\ast$minute, int $\ast$second)
\begin{CompactList}\small\item\em Get the current Real Time Clock value from the MSP430. \item\end{CompactList}\item 
int \hyperlink{msp430lib_8h_5d56c3732b0360e287a350fff5c2795a}{msp430lib\_\-set\_\-rtc} (int year, int month, int day, int hour, int minute, int second)
\begin{CompactList}\small\item\em Set the current Real Time Clock value on the MSP430. \item\end{CompactList}\item 
int \hyperlink{msp430lib_8h_34268a884c6bed5937a6a5b7a968c3f8}{msp430lib\_\-get\_\-ir\_\-key} (enum \hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e}{msp430lib\_\-keycode} $\ast$key)
\begin{CompactList}\small\item\em Get a new IR key from the msp430 (if any). \item\end{CompactList}\item 
int \hyperlink{msp430lib_8h_5eca5e6b5e10add550ed3c06d9a75da1}{msp430lib\_\-exit} (void)
\begin{CompactList}\small\item\em Deinitalize the MSP430 library. No API calls can be made after this function has been called. \item\end{CompactList}\end{CompactItemize}


\subsubsection{Define Documentation}
\hypertarget{msp430lib_8h_f85f3c44cbe0b0c145526d11d6b22611}{
\index{msp430lib.h@{msp430lib.h}!MSP430LIB_SUCCESS@{MSP430LIB\_\-SUCCESS}}
\index{MSP430LIB_SUCCESS@{MSP430LIB\_\-SUCCESS}!msp430lib.h@{msp430lib.h}}
\paragraph[MSP430LIB\_\-SUCCESS]{\setlength{\rightskip}{0pt plus 5cm}\#define MSP430LIB\_\-SUCCESS~1}\hfill}
\label{msp430lib_8h_f85f3c44cbe0b0c145526d11d6b22611}


Indicates success of an API call. 

\hypertarget{msp430lib_8h_0aeaf1fc60fae4ba79ac518f3abe1578}{
\index{msp430lib.h@{msp430lib.h}!MSP430LIB_FAILURE@{MSP430LIB\_\-FAILURE}}
\index{MSP430LIB_FAILURE@{MSP430LIB\_\-FAILURE}!msp430lib.h@{msp430lib.h}}
\paragraph[MSP430LIB\_\-FAILURE]{\setlength{\rightskip}{0pt plus 5cm}\#define MSP430LIB\_\-FAILURE~0}\hfill}
\label{msp430lib_8h_0aeaf1fc60fae4ba79ac518f3abe1578}


Indicates failure of an API call. 



\subsubsection{Enumeration Type Documentation}
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e}{
\index{msp430lib.h@{msp430lib.h}!msp430lib_keycode@{msp430lib\_\-keycode}}
\index{msp430lib_keycode@{msp430lib\_\-keycode}!msp430lib.h@{msp430lib.h}}
\paragraph[msp430lib\_\-keycode]{\setlength{\rightskip}{0pt plus 5cm}enum \hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e}{msp430lib\_\-keycode}}\hfill}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e}


The IR remote keycodes returned by the MSP430. Requires the DVD function on Philips PM4S set to code 020. 

\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{MSP430LIB_KEYCODE_POWER@{MSP430LIB\_\-KEYCODE\_\-POWER}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_POWER@{MSP430LIB\_\-KEYCODE\_\-POWER}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e5c2e93d1284bc0adcafca0bb21f2f68c}{
MSP430LIB\_\-KEYCODE\_\-POWER}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e5c2e93d1284bc0adcafca0bb21f2f68c}
}]\index{MSP430LIB_KEYCODE_CHANINC@{MSP430LIB\_\-KEYCODE\_\-CHANINC}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_CHANINC@{MSP430LIB\_\-KEYCODE\_\-CHANINC}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ee7af06c621c1d3b4c5c1f8ab0fe6c2a1}{
MSP430LIB\_\-KEYCODE\_\-CHANINC}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ee7af06c621c1d3b4c5c1f8ab0fe6c2a1}
}]\index{MSP430LIB_KEYCODE_CHANDEC@{MSP430LIB\_\-KEYCODE\_\-CHANDEC}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_CHANDEC@{MSP430LIB\_\-KEYCODE\_\-CHANDEC}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e82191d4c85093baad3cb554d0f44b4e8}{
MSP430LIB\_\-KEYCODE\_\-CHANDEC}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e82191d4c85093baad3cb554d0f44b4e8}
}]\index{MSP430LIB_KEYCODE_VOLINC@{MSP430LIB\_\-KEYCODE\_\-VOLINC}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_VOLINC@{MSP430LIB\_\-KEYCODE\_\-VOLINC}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e66cd6cd0f8a96d3baf16df6094cf75af}{
MSP430LIB\_\-KEYCODE\_\-VOLINC}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e66cd6cd0f8a96d3baf16df6094cf75af}
}]\index{MSP430LIB_KEYCODE_VOLDEC@{MSP430LIB\_\-KEYCODE\_\-VOLDEC}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_VOLDEC@{MSP430LIB\_\-KEYCODE\_\-VOLDEC}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e90e91d1de443714f3933cfe1714c62d4}{
MSP430LIB\_\-KEYCODE\_\-VOLDEC}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e90e91d1de443714f3933cfe1714c62d4}
}]\index{MSP430LIB_KEYCODE_OK@{MSP430LIB\_\-KEYCODE\_\-OK}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_OK@{MSP430LIB\_\-KEYCODE\_\-OK}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ec5d0bf6e0bbc1613f28cd1861d34f8ff}{
MSP430LIB\_\-KEYCODE\_\-OK}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ec5d0bf6e0bbc1613f28cd1861d34f8ff}
}]\index{MSP430LIB_KEYCODE_MENU@{MSP430LIB\_\-KEYCODE\_\-MENU}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_MENU@{MSP430LIB\_\-KEYCODE\_\-MENU}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ed1c70388314e4fc7a98beb86b06c6a1d}{
MSP430LIB\_\-KEYCODE\_\-MENU}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ed1c70388314e4fc7a98beb86b06c6a1d}
}]\index{MSP430LIB_KEYCODE_MENUDONE@{MSP430LIB\_\-KEYCODE\_\-MENUDONE}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_MENUDONE@{MSP430LIB\_\-KEYCODE\_\-MENUDONE}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ed9fca7877e1aae8a827057aa787cf470}{
MSP430LIB\_\-KEYCODE\_\-MENUDONE}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ed9fca7877e1aae8a827057aa787cf470}
}]\index{MSP430LIB_KEYCODE_INFOSELECT@{MSP430LIB\_\-KEYCODE\_\-INFOSELECT}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_INFOSELECT@{MSP430LIB\_\-KEYCODE\_\-INFOSELECT}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e4525c3a22fa80ee0dfa5a36a42c6402e}{
MSP430LIB\_\-KEYCODE\_\-INFOSELECT}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e4525c3a22fa80ee0dfa5a36a42c6402e}
}]\index{MSP430LIB_KEYCODE_SLEEP@{MSP430LIB\_\-KEYCODE\_\-SLEEP}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_SLEEP@{MSP430LIB\_\-KEYCODE\_\-SLEEP}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ef48f511e3f9b3b23472ee7c3b89c0ae0}{
MSP430LIB\_\-KEYCODE\_\-SLEEP}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ef48f511e3f9b3b23472ee7c3b89c0ae0}
}]\index{MSP430LIB_KEYCODE_SUBTITLE@{MSP430LIB\_\-KEYCODE\_\-SUBTITLE}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_SUBTITLE@{MSP430LIB\_\-KEYCODE\_\-SUBTITLE}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e02bb411a04331a2e93c3e7e215aed825}{
MSP430LIB\_\-KEYCODE\_\-SUBTITLE}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e02bb411a04331a2e93c3e7e215aed825}
}]\index{MSP430LIB_KEYCODE_REPEAT@{MSP430LIB\_\-KEYCODE\_\-REPEAT}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_REPEAT@{MSP430LIB\_\-KEYCODE\_\-REPEAT}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e5104a586173e730cabcf7c668fa89861}{
MSP430LIB\_\-KEYCODE\_\-REPEAT}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e5104a586173e730cabcf7c668fa89861}
}]\index{MSP430LIB_KEYCODE_1@{MSP430LIB\_\-KEYCODE\_\-1}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_1@{MSP430LIB\_\-KEYCODE\_\-1}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e2df888a34e4420c3b8498301c5c6935b}{
MSP430LIB\_\-KEYCODE\_\-1}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e2df888a34e4420c3b8498301c5c6935b}
}]\index{MSP430LIB_KEYCODE_2@{MSP430LIB\_\-KEYCODE\_\-2}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_2@{MSP430LIB\_\-KEYCODE\_\-2}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ecf6e9fa054984fc3b998d68906cf008d}{
MSP430LIB\_\-KEYCODE\_\-2}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ecf6e9fa054984fc3b998d68906cf008d}
}]\index{MSP430LIB_KEYCODE_3@{MSP430LIB\_\-KEYCODE\_\-3}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_3@{MSP430LIB\_\-KEYCODE\_\-3}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e54b8d14b8bbe6854373971f2d6b725ae}{
MSP430LIB\_\-KEYCODE\_\-3}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e54b8d14b8bbe6854373971f2d6b725ae}
}]\index{MSP430LIB_KEYCODE_4@{MSP430LIB\_\-KEYCODE\_\-4}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_4@{MSP430LIB\_\-KEYCODE\_\-4}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e338c39779736e0989f83399563da9237}{
MSP430LIB\_\-KEYCODE\_\-4}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e338c39779736e0989f83399563da9237}
}]\index{MSP430LIB_KEYCODE_5@{MSP430LIB\_\-KEYCODE\_\-5}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_5@{MSP430LIB\_\-KEYCODE\_\-5}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e40d1414838512bdd6335896747c1abab}{
MSP430LIB\_\-KEYCODE\_\-5}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e40d1414838512bdd6335896747c1abab}
}]\index{MSP430LIB_KEYCODE_6@{MSP430LIB\_\-KEYCODE\_\-6}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_6@{MSP430LIB\_\-KEYCODE\_\-6}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ee44ed6292f09739909349606c4b44422}{
MSP430LIB\_\-KEYCODE\_\-6}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ee44ed6292f09739909349606c4b44422}
}]\index{MSP430LIB_KEYCODE_7@{MSP430LIB\_\-KEYCODE\_\-7}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_7@{MSP430LIB\_\-KEYCODE\_\-7}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e3a593e53520e1fe76647be1ffcec9072}{
MSP430LIB\_\-KEYCODE\_\-7}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e3a593e53520e1fe76647be1ffcec9072}
}]\index{MSP430LIB_KEYCODE_8@{MSP430LIB\_\-KEYCODE\_\-8}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_8@{MSP430LIB\_\-KEYCODE\_\-8}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045efa3e6507062cea9584e1afcff44600ac}{
MSP430LIB\_\-KEYCODE\_\-8}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045efa3e6507062cea9584e1afcff44600ac}
}]\index{MSP430LIB_KEYCODE_9@{MSP430LIB\_\-KEYCODE\_\-9}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_9@{MSP430LIB\_\-KEYCODE\_\-9}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045eaf57cc15822a3d9703d5c694c8a5c94f}{
MSP430LIB\_\-KEYCODE\_\-9}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045eaf57cc15822a3d9703d5c694c8a5c94f}
}]\index{MSP430LIB_KEYCODE_0@{MSP430LIB\_\-KEYCODE\_\-0}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_0@{MSP430LIB\_\-KEYCODE\_\-0}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e08838cab6cbc9092c4d2844dac7db99c}{
MSP430LIB\_\-KEYCODE\_\-0}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e08838cab6cbc9092c4d2844dac7db99c}
}]\index{MSP430LIB_KEYCODE_ENTER@{MSP430LIB\_\-KEYCODE\_\-ENTER}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_ENTER@{MSP430LIB\_\-KEYCODE\_\-ENTER}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e63fa62bcdd5f542b4d3c4cb9cd0cfd52}{
MSP430LIB\_\-KEYCODE\_\-ENTER}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e63fa62bcdd5f542b4d3c4cb9cd0cfd52}
}]\index{MSP430LIB_KEYCODE_INPUT@{MSP430LIB\_\-KEYCODE\_\-INPUT}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_INPUT@{MSP430LIB\_\-KEYCODE\_\-INPUT}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e5587889f23bb0e8200ae938156c15834}{
MSP430LIB\_\-KEYCODE\_\-INPUT}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e5587889f23bb0e8200ae938156c15834}
}]\index{MSP430LIB_KEYCODE_REWIND@{MSP430LIB\_\-KEYCODE\_\-REWIND}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_REWIND@{MSP430LIB\_\-KEYCODE\_\-REWIND}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ec24c62d9f13895ed7956cdedaf0306ea}{
MSP430LIB\_\-KEYCODE\_\-REWIND}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ec24c62d9f13895ed7956cdedaf0306ea}
}]\index{MSP430LIB_KEYCODE_PLAY@{MSP430LIB\_\-KEYCODE\_\-PLAY}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_PLAY@{MSP430LIB\_\-KEYCODE\_\-PLAY}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e79714cf4eda3a5be1d5d6ba39ce1f30c}{
MSP430LIB\_\-KEYCODE\_\-PLAY}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e79714cf4eda3a5be1d5d6ba39ce1f30c}
}]\index{MSP430LIB_KEYCODE_FASTFORWARD@{MSP430LIB\_\-KEYCODE\_\-FASTFORWARD}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_FASTFORWARD@{MSP430LIB\_\-KEYCODE\_\-FASTFORWARD}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e617346d08f1b23457193a4d0d1d98c39}{
MSP430LIB\_\-KEYCODE\_\-FASTFORWARD}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e617346d08f1b23457193a4d0d1d98c39}
}]\index{MSP430LIB_KEYCODE_RECORD@{MSP430LIB\_\-KEYCODE\_\-RECORD}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_RECORD@{MSP430LIB\_\-KEYCODE\_\-RECORD}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e0f54a5fd816bb91f82a1faa29f8b6a91}{
MSP430LIB\_\-KEYCODE\_\-RECORD}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e0f54a5fd816bb91f82a1faa29f8b6a91}
}]\index{MSP430LIB_KEYCODE_STOP@{MSP430LIB\_\-KEYCODE\_\-STOP}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_STOP@{MSP430LIB\_\-KEYCODE\_\-STOP}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e1be5f4df32ba84b622dbfedb9fb40aba}{
MSP430LIB\_\-KEYCODE\_\-STOP}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e1be5f4df32ba84b622dbfedb9fb40aba}
}]\index{MSP430LIB_KEYCODE_PAUSE@{MSP430LIB\_\-KEYCODE\_\-PAUSE}!msp430lib.h@{msp430lib.h}}\index{msp430lib.h@{msp430lib.h}!MSP430LIB_KEYCODE_PAUSE@{MSP430LIB\_\-KEYCODE\_\-PAUSE}}\item[{\em 
\hypertarget{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ecb16488b28b018f593a5beb5a816f53b}{
MSP430LIB\_\-KEYCODE\_\-PAUSE}
\label{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045ecb16488b28b018f593a5beb5a816f53b}
}]\end{description}
\end{Desc}



\subsubsection{Function Documentation}
\hypertarget{msp430lib_8h_0f24653ebb9b8fb7b78ddbb76aeafa47}{
\index{msp430lib.h@{msp430lib.h}!msp430lib_init@{msp430lib\_\-init}}
\index{msp430lib_init@{msp430lib\_\-init}!msp430lib.h@{msp430lib.h}}
\paragraph[msp430lib\_\-init]{\setlength{\rightskip}{0pt plus 5cm}int msp430lib\_\-init (void)}\hfill}
\label{msp430lib_8h_0f24653ebb9b8fb7b78ddbb76aeafa47}


Initializes the MSP430 library. Must be called before any API calls. 

\begin{Desc}
\item[Returns:]MSP430LIB\_\-SUCCESS on success and MSP430LIB\_\-FAILURE on failure. \end{Desc}
\hypertarget{msp430lib_8h_e160773f9383c63941f4a985a100b80c}{
\index{msp430lib.h@{msp430lib.h}!msp430lib_get_rtc@{msp430lib\_\-get\_\-rtc}}
\index{msp430lib_get_rtc@{msp430lib\_\-get\_\-rtc}!msp430lib.h@{msp430lib.h}}
\paragraph[msp430lib\_\-get\_\-rtc]{\setlength{\rightskip}{0pt plus 5cm}int msp430lib\_\-get\_\-rtc (int $\ast$ {\em year}, int $\ast$ {\em month}, int $\ast$ {\em day}, int $\ast$ {\em hour}, int $\ast$ {\em minute}, int $\ast$ {\em second})}\hfill}
\label{msp430lib_8h_e160773f9383c63941f4a985a100b80c}


Get the current Real Time Clock value from the MSP430. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em year}]The current year returned. \item[{\em month}]The current month returned. \item[{\em day}]The current day returned. \item[{\em hour}]The current hour returned. \item[{\em minute}]The current minute returned. \item[{\em second}]The current second returned. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]MSP430LIB\_\-SUCCESS on success and MSP430LIB\_\-FAILURE on failure. \end{Desc}
\hypertarget{msp430lib_8h_5d56c3732b0360e287a350fff5c2795a}{
\index{msp430lib.h@{msp430lib.h}!msp430lib_set_rtc@{msp430lib\_\-set\_\-rtc}}
\index{msp430lib_set_rtc@{msp430lib\_\-set\_\-rtc}!msp430lib.h@{msp430lib.h}}
\paragraph[msp430lib\_\-set\_\-rtc]{\setlength{\rightskip}{0pt plus 5cm}int msp430lib\_\-set\_\-rtc (int {\em year}, int {\em month}, int {\em day}, int {\em hour}, int {\em minute}, int {\em second})}\hfill}
\label{msp430lib_8h_5d56c3732b0360e287a350fff5c2795a}


Set the current Real Time Clock value on the MSP430. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em year}]The year to set. \item[{\em month}]The month to set. \item[{\em day}]The day to set. \item[{\em hour}]The hour to set. \item[{\em minute}]The minute to set. \item[{\em second}]The second to set. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]MSP430LIB\_\-SUCCESS on success and MSP430LIB\_\-FAILURE on failure. \end{Desc}
\hypertarget{msp430lib_8h_34268a884c6bed5937a6a5b7a968c3f8}{
\index{msp430lib.h@{msp430lib.h}!msp430lib_get_ir_key@{msp430lib\_\-get\_\-ir\_\-key}}
\index{msp430lib_get_ir_key@{msp430lib\_\-get\_\-ir\_\-key}!msp430lib.h@{msp430lib.h}}
\paragraph[msp430lib\_\-get\_\-ir\_\-key]{\setlength{\rightskip}{0pt plus 5cm}int msp430lib\_\-get\_\-ir\_\-key (enum \hyperlink{msp430lib_8h_e65891ede5d6d3192f22fdb401a3045e}{msp430lib\_\-keycode} $\ast$ {\em key})}\hfill}
\label{msp430lib_8h_34268a884c6bed5937a6a5b7a968c3f8}


Get a new IR key from the msp430 (if any). 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em key}]The key pressed returned or 0 if no new key pressed. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]MSP430LIB\_\-SUCCESS on success and MSP430LIB\_\-FAILURE on failure. \end{Desc}
\hypertarget{msp430lib_8h_5eca5e6b5e10add550ed3c06d9a75da1}{
\index{msp430lib.h@{msp430lib.h}!msp430lib_exit@{msp430lib\_\-exit}}
\index{msp430lib_exit@{msp430lib\_\-exit}!msp430lib.h@{msp430lib.h}}
\paragraph[msp430lib\_\-exit]{\setlength{\rightskip}{0pt plus 5cm}int msp430lib\_\-exit (void)}\hfill}
\label{msp430lib_8h_5eca5e6b5e10add550ed3c06d9a75da1}


Deinitalize the MSP430 library. No API calls can be made after this function has been called. 

\begin{Desc}
\item[Returns:]MSP430LIB\_\-SUCCESS on success and MSP430LIB\_\-FAILURE on failure. \end{Desc}
