- Main Page
- Files
- Related Pages

- File List
- Globals

# msp430lib.h

Go to the documentation of this file.

    00001
    00018 #ifndef _MSP430LIB_H
    00019 #define _MSP430LIB_H
    00020
    00021 #define MSP430LIB_SUCCESS 1
    00022 #define MSP430LIB_FAILURE 0
    00023
    00024
    00028 enum msp430lib_keycode {
    00029     MSP430LIB_KEYCODE_POWER           = 0x300c,
    00030     MSP430LIB_KEYCODE_CHANINC         = 0x3020,
    00031     MSP430LIB_KEYCODE_CHANDEC         = 0x3021,
    00032     MSP430LIB_KEYCODE_VOLINC          = 0x3010,
    00033     MSP430LIB_KEYCODE_VOLDEC          = 0x3011,
    00034     MSP430LIB_KEYCODE_OK              = 0x300d,
    00035     MSP430LIB_KEYCODE_MENU            = 0x302e,
    00036     MSP430LIB_KEYCODE_MENUDONE        = 0x300f,
    00037     MSP430LIB_KEYCODE_INFOSELECT      = 0x300f, // !!!!
    00038     MSP430LIB_KEYCODE_SLEEP           = 0x3026,
    00039     MSP430LIB_KEYCODE_SUBTITLE        = 0x30cb,
    00040     MSP430LIB_KEYCODE_REPEAT          = 0x3022,
    00041     MSP430LIB_KEYCODE_1               = 0x3001,
    00042     MSP430LIB_KEYCODE_2               = 0x3002,
    00043     MSP430LIB_KEYCODE_3               = 0x3003,
    00044     MSP430LIB_KEYCODE_4               = 0x3004,
    00045     MSP430LIB_KEYCODE_5               = 0x3005,
    00046     MSP430LIB_KEYCODE_6               = 0x3006,
    00047     MSP430LIB_KEYCODE_7               = 0x3007,
    00048     MSP430LIB_KEYCODE_8               = 0x3008,
    00049     MSP430LIB_KEYCODE_9               = 0x3009,
    00050     MSP430LIB_KEYCODE_0               = 0x3000,
    00051     MSP430LIB_KEYCODE_ENTER           = 0x2039,
    00052     MSP430LIB_KEYCODE_INPUT           = 0x20ff,
    00053     MSP430LIB_KEYCODE_REWIND          = 0x3172,
    00054     MSP430LIB_KEYCODE_PLAY            = 0x3175,
    00055     MSP430LIB_KEYCODE_FASTFORWARD     = 0x3174,
    00056     MSP430LIB_KEYCODE_RECORD          = 0x3177,
    00057     MSP430LIB_KEYCODE_STOP            = 0x3176,
    00058     MSP430LIB_KEYCODE_PAUSE           = 0x3169,
    00059 };
    00060
    00061 #if defined (__cplusplus)
    00062 extern "C" {
    00063 #endif
    00064
    00069 extern int msp430lib_init(void);
    00070
    00081 extern int msp430lib_get_rtc(int *year, int *month, int *day, int *hour,
    00082                              int *minute, int *second);
    00083
    00094 extern int msp430lib_set_rtc(int year, int month, int day, int hour,
    00095                              int minute, int second);
    00096
    00102 extern int msp430lib_get_ir_key(enum msp430lib_keycode *key);
    00103
    00109 extern int msp430lib_exit(void);
    00110
    00111 #if defined (__cplusplus)
    00112 }
    00113 #endif
    00114
    00115 #endif // _SIMPLEWIDGET_H

Copyright 2006, Texas Instruments Incorporated