rkremote.h 4.79 KB
/*
 * rkremote.h
 *
 * Copyright 1994, Silicon Graphics, Inc.
 * All Rights Reserved.
 *
 * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
 * the contents of this file may not be disclosed to third parties, copied or
 * duplicated in any form, in whole or in part, without the prior written
 * permission of Silicon Graphics, Inc.
 *
 * RESTRICTED RIGHTS LEGEND:
 * Use, duplication or disclosure by the Government is subject to restrictions
 * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
 * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
 * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
 * rights reserved under the Copyright Laws of the United States.
 */
#ifndef __rkremote_h_
#define __rkremote_h_

#ifdef __cplusplus
extern "C" {
#endif

/* the keys on the remote control */

#define TV_RC_CHANNEL_UP        0xfe01
#define TV_RC_CHANNEL_DOWN      0xfe02
#define TV_RC_FAVORITE          0xfe03
#define TV_RC_VOLUME_UP         0xfe04
#define TV_RC_VOLUME_DOWN       0xfe05
#define TV_RC_VOLUME_MUTE       0xfe06
#define TV_RC_POWER_ON          0xfe07
#define TV_RC_POWER_OFF		0xfe08
#define TV_RC_BYPASS		0xfe09

#define TV_RC_LAST              0xfe10
#define TV_RC_RETURN            0xfe11
#define TV_RC_INFO              0xfe12
#define TV_RC_HOME              0xfe13

#define TV_RC_REWIND            0xfe15
#define TV_RC_PLAY_PAUSE        0xfe17
#define TV_RC_FASTFORWARD       0xfe18
#define TV_RC_SKIP_BACKWARD     0xfe19
#define TV_RC_SKIP_FORWARD      0xfe1a

#define TV_RC_NORTH             0xfe20
#define TV_RC_NORTHEAST         0xfe21
#define TV_RC_EAST              0xfe22
#define TV_RC_SOUTHEAST         0xfe23
#define TV_RC_SOUTH             0xfe24
#define TV_RC_SOUTHWEST         0xfe25
#define TV_RC_WEST              0xfe26
#define TV_RC_NORTHWEST         0xfe27

#define TV_RC_0                 0xfe30
#define TV_RC_1                 0xfe31
#define TV_RC_2                 0xfe32
#define TV_RC_3                 0xfe33
#define TV_RC_4                 0xfe34
#define TV_RC_5                 0xfe35
#define TV_RC_6                 0xfe36
#define TV_RC_7                 0xfe37
#define TV_RC_8                 0xfe38
#define TV_RC_9                 0xfe39

#define TV_RC_SELECT            0xfe40
#define TV_RC_A                 0xfe41
#define TV_RC_B                 0xfe42
#define TV_RC_C                 0xfe43

#define TV_RC_TV		0xfe50
#define TV_RC_SHOW_ME		0xfe51
#define TV_RC_LINK		0xfe52
#define TV_RC_OMNIO_INFO	0xfe53

#define TV_RC_CHANNEL_SHIFT	0xff01

/*
 * obsolete values,  left in until 20 June to allow compilations
 * to proceed until folks have time to update their code
 */

#define TV_RC_PAUSE 0xb0b0
#define TV_RC_PLAY TV_RC_PLAY_PAUSE

/* masks for auto-repeat events */

#define TV_RC_NULL_MASK		0x000000000000ull

#define TV_RC_CHANNEL_UP_MASK	0x000000000001ull
#define TV_RC_CHANNEL_DOWN_MASK	0x000000000002ull
#define TV_RC_FAVORITE_MASK	0x000000000004ull
#define TV_RC_VOLUME_UP_MASK	0x000000000008ull
#define TV_RC_VOLUME_DOWN_MASK	0x000000000010ull
#define TV_RC_VOLUME_MUTE_MASK	0x000000000020ull
#define TV_RC_POWER_ON_MASK	0x000000000040ull
#define TV_RC_POWER_OFF_MASK	0x000000000080ull
#define TV_RC_BYPASS_MASK	0x000000000100ull

#define TV_RC_LAST_MASK		0x000000000400ull
#define TV_RC_RETURN_MASK	0x000000000800ull
#define TV_RC_INFO_MASK		0x000000001000ull
#define TV_RC_HOME_MASK		0x000000002000ull

#define TV_RC_REWIND_MASK	0x000000008000ull
#define TV_RC_STOP_MASK		0x000000010000ull
#define TV_RC_PLAY_PAUSE_MASK	0x000000020000ull
#define TV_RC_FASTFORWARD_MASK	0x000000040000ull
#define TV_RC_SKIP_BACKWARD_MASK    0x00080000ull
#define TV_RC_SKIP_FORWARD_MASK	0x000000100000ull

#define TV_RC_NORTH_MASK	0x000000200000ull
#define TV_RC_NORTHEAST_MASK	0x000000400000ull
#define TV_RC_EAST_MASK		0x000000800000ull
#define TV_RC_SOUTHEAST_MASK	0x000001000000ull
#define TV_RC_SOUTH_MASK	0x000002000000ull
#define TV_RC_SOUTHWEST_MASK	0x000004000000ull
#define TV_RC_WEST_MASK		0x000008000000ull
#define TV_RC_NORTHWEST_MASK	0x000010000000ull

#define TV_RC_0_MASK		0x000020000000ull
#define TV_RC_1_MASK		0x000040000000ull
#define TV_RC_2_MASK		0x000080000000ull
#define TV_RC_3_MASK		0x000100000000ull
#define TV_RC_4_MASK		0x000200000000ull
#define TV_RC_5_MASK		0x000400000000ull
#define TV_RC_6_MASK		0x000800000000ull
#define TV_RC_7_MASK		0x001000000000ull
#define TV_RC_8_MASK		0x002000000000ull
#define TV_RC_9_MASK		0x004000000000ull

#define TV_RC_SELECT_MASK	0x010000000000ull
#define TV_RC_A_MASK		0x020000000000ull
#define TV_RC_B_MASK		0x040000000000ull
#define TV_RC_C_MASK		0x080000000000ull

#define TV_RC_TV_MASK		0x100000000000ull
#define TV_RC_SHOW_ME_MASK	0x200000000000ull
#define TV_RC_LINK_MASK		0x400000000000ull
#define TV_RC_OMNIO_INFO_MASK	0x800000000000ull

#ifdef __cplusplus
}
#endif

#endif /* __rkremote_h_ */