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 <http://www.trinityconvergence.com/> 

 

________________________________

From: [EMAIL PROTECTED] [mailto:[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



_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to