summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm9/ndsmotion.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-20 16:31:41 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-20 16:31:41 +0000
commit9a85541b388cf04ebaa897ca9281ef270653c982 (patch)
treec0e80e2164d991563f10f897c4b3ba927a25a670 /c/src/lib/libbsp/arm/nds/libnds/include/nds/arm9/ndsmotion.h
parent2008-08-20 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-9a85541b388cf04ebaa897ca9281ef270653c982.tar.bz2
2008-08-20 Joel Sherrill <joel.sherrill@OARcorp.com>
* block/block.c, console/console.c, dswifi/arm9/source/sgIP.h, dswifi/arm9/source/sgIP_ARP.h, dswifi/arm9/source/sgIP_Config.h, dswifi/arm9/source/sgIP_DHCP.h, dswifi/arm9/source/sgIP_DNS.h, dswifi/arm9/source/sgIP_Hub.h, dswifi/arm9/source/sgIP_ICMP.h, dswifi/arm9/source/sgIP_IP.h, dswifi/arm9/source/sgIP_TCP.h, dswifi/arm9/source/sgIP_UDP.h, dswifi/arm9/source/sgIP_memblock.h, dswifi/arm9/source/wifi_arm9.c, dswifi/arm9/source/wifi_arm9.h, dswifi/include/dswifi7.h, dswifi/include/dswifi9.h, fb/fb.c, include/my_ipc.h, libfat/source/disc_io/disc_io.h, libfat/source/disc_io/io_nmmc.c, libnds/include/nds/arm9/exceptions.h, libnds/include/nds/arm9/input.h, libnds/include/nds/arm9/ndsmotion.h, libnds/include/nds/arm9/videoGL.h, libnds/source/arm9/console.c, libnds/source/arm9/gurumeditation.c, libnds/source/arm9/ndsmotion.c, libnds/source/common/card.c, libnds/source/common/interrupts.c, sound/sound.c, startup/start.c, touchscreen/reco.h, wifi/compat.c, wifi/compat.h: Fix most warnings.
Diffstat (limited to 'c/src/lib/libbsp/arm/nds/libnds/include/nds/arm9/ndsmotion.h')
-rw-r--r--c/src/lib/libbsp/arm/nds/libnds/include/nds/arm9/ndsmotion.h76
1 files changed, 38 insertions, 38 deletions
diff --git a/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm9/ndsmotion.h b/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm9/ndsmotion.h
index e1ab018b5a..6335cadf35 100644
--- a/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm9/ndsmotion.h
+++ b/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm9/ndsmotion.h
@@ -47,52 +47,52 @@ typedef struct
extern "C" {
#endif
-/*! \fn int motion_init()
+/*! \fn int motion_init(void)
\brief Initializes the DS Motion Sensor.
Run this before using any of the DS Motion Sensor functions
save the return value and pass it to the other motion_ functions
*/
-int motion_init();
+int motion_init(void);
-/*! \fn int motion_deinit()
+/*! \fn int motion_deinit(void)
\brief Deinitializes the DS Motion Sensor
*/
-void motion_deinit();
+void motion_deinit(void);
-/*! \fn signed int motion_read_x()
+/*! \fn signed int motion_read_x(void)
\brief read the X acceleration
*/
-signed int motion_read_x();
+signed int motion_read_x(void);
-/*! \fn signed int motion_read_y()
+/*! \fn signed int motion_read_y(void)
\brief read the Y acceleration
*/
-signed int motion_read_y();
+signed int motion_read_y(void);
-/*! \fn signed int motion_read_z()
+/*! \fn signed int motion_read_z(void)
\brief read the Z acceleration
*/
-signed int motion_read_z();
+signed int motion_read_z(void);
-/*! \fn signed int motion_read_gyro()
+/*! \fn signed int motion_read_gyro(void)
\brief read the Z rotational speed
*/
-signed int motion_read_gyro();
+signed int motion_read_gyro(void);
-/*! \fn int motion_acceleration_x()
+/*! \fn int motion_acceleration_x(void)
\brief gets acceleration value to mili G (where g is 9.8 m/s*s)
*/
-int motion_acceleration_x();
+int motion_acceleration_x(void);
-/*! \fn int motion_acceleration_y()
+/*! \fn int motion_acceleration_y(void)
\brief gets acceleration value to mili G (where g is 9.8 m/s*s)
*/
-int motion_acceleration_y();
+int motion_acceleration_y(void);
-/*! \fn int motion_acceleration_z()
+/*! \fn int motion_acceleration_z(void)
\brief gets acceleration value to mili G (where g is 9.8 m/s*s)
*/
-int motion_acceleration_z();
+int motion_acceleration_z(void);
/*! \fn void motion_set_sens_x(int sens)
\brief this should be passed the raw reading at 1g for accurate
@@ -118,39 +118,39 @@ acceleration calculations. Default is 825
*/
void motion_set_sens_gyro(int sens);
-/*! \fn void motion_set_offs_x()
+/*! \fn void motion_set_offs_x(void)
\brief this should be called when the axis is under no acceleration
default is 2048
*/
-void motion_set_offs_x();
+void motion_set_offs_x(void);
-/*! \fn void motion_set_offs_y()
+/*! \fn void motion_set_offs_y(void)
\brief this should be called when the axis is under no acceleration
default is 2048
*/
-void motion_set_offs_y();
+void motion_set_offs_y(void);
-/*! \fn void motion_set_offs_z()
+/*! \fn void motion_set_offs_z(void)
\brief this should be called when the axis is under no acceleration
default is 2048
*/
-void motion_set_offs_z();
+void motion_set_offs_z(void);
-/*! \fn void motion_set_offs_gyro()
+/*! \fn void motion_set_offs_gyro(void)
\brief this should be called when the axis is under no rotation
default is 1680
*/
-void motion_set_offs_gyro();
+void motion_set_offs_gyro(void);
-/*! \fn int motion_rotation()
+/*! \fn int motion_rotation(void)
\brief converts raw rotation value to degrees per second
*/
-int motion_rotation();
+int motion_rotation(void);
-/*! \fn MotionCalibration* motion_get_calibration()
+/*! \fn MotionCalibration* motion_get_calibration(void)void
\brief This returns the current calibration settings for saving
*/
-MotionCalibration* motion_get_calibration();
+MotionCalibration* motion_get_calibration(void);
/*! \fn void motion_set_calibration(MotionCalibration* cal)
\brief This sets the calibration settings. Intended
@@ -158,29 +158,29 @@ to restore saved calibration settings
*/
void motion_set_calibration(MotionCalibration* cal);
-/*! \fn MotionCalibration* motion_enable_ain_1()
+/*! \fn MotionCalibration* motion_enable_ain_1(void)
\brief This enables the analog input number 1.
Required before reading analog input number 1.
*/
-void motion_enable_ain_1();
+void motion_enable_ain_1(void);
-/*! \fn MotionCalibration* motion_enable_ain_2()
+/*! \fn MotionCalibration* motion_enable_ain_2(void)
\brief This enables the analog input number 2.
Required before reading analog input number 2.
*/
-void motion_enable_ain_2();
+void motion_enable_ain_2(void);
-/*! \fn MotionCalibration* motion_read_ain_1()
+/*! \fn MotionCalibration* motion_read_ain_1(void)
\brief This reads the analog input number 1.
analog input number 1 needs to be enabled before reading.
*/
-int motion_read_ain_1();
+int motion_read_ain_1(void);
-/*! \fn MotionCalibration* motion_read_ain_2()
+/*! \fn MotionCalibration* motion_read_ain_2(void)
\brief This reads the analog input number 2.
analog input number 2 needs to be enabled before reading.
*/
-int motion_read_ain_2();
+int motion_read_ain_2(void);
#ifdef __cplusplus
}