source: rtems/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm9/rumble.h @ 0d34641c

4.104.115
Last change on this file since 0d34641c was 0d34641c, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/30/09 at 04:14:38

Remove CVS-'s.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1/*---------------------------------------------------------------------------------
2        $Id$
3
4        Copyright (C) 2005
5                Michael Noland (joat)
6                Jason Rogers (dovoto)
7                Dave Murphy (WinterMute)
8                Mike Parks (BigRedPimp)
9        This software is provided 'as-is', without any express or implied
10        warranty.  In no event will the authors be held liable for any
11        damages arising from the use of this software.
12        Permission is granted to anyone to use this software for any
13        purpose, including commercial applications, and to alter it and
14        redistribute it freely, subject to the following restrictions:
15
16  1. The origin of this software must not be misrepresented; you
17     must not claim that you wrote the original software. If you use
18     this software in a product, an acknowledgment in the product
19     documentation would be appreciated but is not required.
20  2. Altered source versions must be plainly marked as such, and
21     must not be misrepresented as being the original software.
22  3. This notice may not be removed or altered from any source
23     distribution.
24
25---------------------------------------------------------------------------------*/
26/*! \file rumble.h
27    \brief nds rumble option pak support.
28*/
29#ifndef RUMBLE_HEADER_INCLUDE
30#define RUMBLE_HEADER_INCLUDE
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36#define RUMBLE_PAK                      (*(vuint16 *)0x08000000)
37#define WARIOWARE_PAK           (*(vuint16 *)0x080000C4)
38#define WARIOWARE_ENABLE        (*(vuint16 *)0x080000C6)
39
40typedef enum {
41   RUMBLE,
42   WARIOWARE
43}RUMBLE_TYPE;
44
45/*! \fn bool isRumbleInserted(void);
46        \brief Check for rumble option pak.
47        Returns true if the cart in the GBA slot is a Rumble option pak.
48*/
49bool isRumbleInserted(void);
50
51/*! \fn void setRumble(bool position);
52        \param position Alternates position of the actuator in the pak
53        \brief Fires the rumble actuator.
54*/
55void setRumble(bool position);
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif
Note: See TracBrowser for help on using the repository browser.