Hi Phil,

first of all thanks for the answer. It was very helpfull.

I tried to read the IR using the structure you put here, but only one value
is returned by msp430lib_get_ir_key(). Even pressing diferent keys on the
remote only one number is returned. Is there any configuration needed for
the receiver ou for the remote control? I mean, something like configurate
the remote control(s) that the msp430lib can comunicate with?

Thanks again and sorry for my bad english.

On Fri, Aug 1, 2008 at 6:12 AM, Phil Quiney
<[EMAIL PROTECTED]>wrote:

>  Hi,
>
> The IR receiver can be read by using the msp430lib.a library that ships
> with the example programs.
>
> To use it (some code snippets)...
>
> #include "msp430lib.h"
>
>     initMask |= MSP430LIBINITIALIZED;
>     // Initialize the MSP430 library to be able to receive IR commands
>     if (msp430lib_init() == MSP430LIB_FAILURE)
>     {
>         perror( "Failed to initialize msp430lib" );
>         return(-1);
>     }
>
>     enum msp430lib_keycode key;
>
>         /* See if an IR remote key has been pressed */
>         if( msp430lib_get_ir_key( &key ) == MSP430LIB_FAILURE )
>         {
>             printf("Failed to get IR value.\n");
>         }
>
> The key returned is one of...
>
>     MSP430LIB_KEYCODE_POWER
>     MSP430LIB_KEYCODE_CHANINC
>     MSP430LIB_KEYCODE_CHANDEC
>     MSP430LIB_KEYCODE_VOLINC
>     MSP430LIB_KEYCODE_VOLDEC
>     MSP430LIB_KEYCODE_OK
>     MSP430LIB_KEYCODE_0
>     MSP430LIB_KEYCODE_1
>     MSP430LIB_KEYCODE_2
>     MSP430LIB_KEYCODE_3
>     MSP430LIB_KEYCODE_4
>     MSP430LIB_KEYCODE_5
>     MSP430LIB_KEYCODE_6
>     MSP430LIB_KEYCODE_7
>     MSP430LIB_KEYCODE_8
>     MSP430LIB_KEYCODE_9
>     MSP430LIB_KEYCODE_FASTFORWARD
>     MSP430LIB_KEYCODE_REWIND
>     MSP430LIB_KEYCODE_ENTER
>     MSP430LIB_KEYCODE_INPUT
>     MSP430LIB_KEYCODE_MENU
>     MSP430LIB_KEYCODE_MENUDONE
>     MSP430LIB_KEYCODE_INFOSELECT
>     MSP430LIB_KEYCODE_SLEEP
>     MSP430LIB_KEYCODE_SUBTITLE
>     MSP430LIB_KEYCODE_REPEAT
>     MSP430LIB_KEYCODE_PLAY
>     MSP430LIB_KEYCODE_RECORD
>     MSP430LIB_KEYCODE_STOP
>     MSP430LIB_KEYCODE_PAUSE
>
>
> Regards
>
> Phil Q
>
> Phil Quiney, Senior Software Engineer
> Trinity Convergence
> Cambridge Business Park
> Cowley Road
> Cambridge CB4 0WZ, UK
> T: +44(0)1223-435536
> F: +44(0)1223-435560
> www.trinityconvergence.com
>
>
>  ------------------------------
> *From:* davinci-linux-open-source-bounces+pquiney=trinityconvergence.com@
> linux.davincidsp.com 
> [mailto:davinci-linux-open-source-bounces+pquiney<davinci-linux-open-source-bounces%2Bpquiney>
> [EMAIL PROTECTED] *On Behalf Of *Rodolfo Leffa
> *Sent:* 31 July 2008 22:46
> *To:* [email protected]
> *Subject:* Infrared device on DM6446
>
>  Hello,
>
> i am new on the list and i have a doubt. Does anybody know to which device
> the infrared receiver on DM6446 board is mapped in the linux filesystem?
> Does the infrared device need some especific driver to work?
>
> I'm trying to integrate lirc with vlc player on this board. Any help would
> be nice!
>
> Best regards,
>
> --
> Rodolfo Leffa de Oliveira
>
>
>


-- 
Rodolfo Leffa de Oliveira
Laboratório de Integração de Software e Hardware - LISHA
Mestrando em Ciência da Computação - PPGCC
Universidade Federal de Santa Catarina - UFSC
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to