forked from josephchan91/Robockey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
m_wii.h
42 lines (35 loc) · 912 Bytes
/
m_wii.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// -----------------------------------------------------------------------------
// M2 Wiimote Pixart Sensor interface
// version: 1.1
// date: Nov 11, 2011
// author: J. Fiene
// -----------------------------------------------------------------------------
#ifndef m_wii__
#define m_wii__
#include "m_general.h"
#include "m_bus.h"
// -----------------------------------------------------------------------------
// Public functions:
// -----------------------------------------------------------------------------
char m_wii_open(void);
// FUNCTIONALITY:
// configure the mWii Pixart sensor.
// (note: the mWii does not generate interrupts)
//
// TAKES:
// nothing
//
// RETURNS:
// 1 : success
// 0 : failure
char m_wii_read(unsigned int* blobs);
// FUNCTIONALITY:
// read blob data
//
// TAKES:
// blobs : pointer to a 12-element unsigned int buffer
//
// RETURNS:
// 1 : success
// 0 : failure
#endif