View Javadoc

1   /*
2    * Copyright 2007-2008 Volker Fritzsch
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License. 
15   */
16  package motej;
17  
18  /**
19   * 
20   * <p>
21   * @author <a href="mailto:vfritzsch@users.sourceforge.net">Volker Fritzsch</a>
22   */
23  public enum IrCameraSensitivity {
24  	
25  	/**
26  	 * Sensitivity Settings as provided by <a href="http://www.wiibrew.org/wiki/Wiimote#Sensitivity_Settings">Marcan</a>.
27  	 */
28  	MARCAN(new byte[] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, (byte) 0x90, 0x00,
29  			(byte) 0xc0 }, new byte[] { 0x40, 0 }),
30  
31  	/**
32  	 * Sensitivity settings as provided by <a href="http://www.wiibrew.org/wiki/Wiimote#Sensitivity_Settings">inio</a>.
33  	 */
34  	INIO(new byte[] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, (byte) 0x90, 0x00, 0x41 },
35  			new byte[] { 0x40, 0x00 }),
36  			
37  	WII_LEVEL_1(new byte[] { 0x02, 0x00, 0x00, 0x71, 0x01, 0x00, 0x64, 0x00, (byte) 0xfe }, new byte[] { (byte) 0xfd, 0x05 }),
38  	
39  	WII_LEVEL_2(new byte[] { 0x02, 0x00, 0x00, 0x71, 0x01, 0x00, (byte) 0x96, 0x00, (byte) 0xb4 }, new byte[] { (byte) 0xb3, 0x04 }),
40  	
41  	WII_LEVEL_3(new byte[] { 0x02, 0x00, 0x00, 0x71, 0x01, 0x00, (byte) 0xaa, 0x00, 0x64 }, new byte[] { 0x63, 0x03 }),
42  	
43  	WII_LEVEL_4(new byte[] { 0x02, 0x00, 0x00, 0x71, 0x01, 0x00, (byte) 0xc8, 0x00, 0x36 }, new byte[] { 0x35, 0x03 }),
44  	
45  	WII_LEVEL_5(new byte[] { 0x07, 0x00, 0x00, 0x71, 0x01, 0x00, 0x72, 0x00, 0x20 }, new byte[] { 0x1f, 0x03 });
46  
47  	private final byte[] block1;
48  	private final byte[] block2;
49  
50  	private IrCameraSensitivity(byte[] block1, byte[] block2) {
51  		this.block1 = block1;
52  		this.block2 = block2;
53  	}
54  
55  	public byte[] block1() {
56  		return block1;
57  	}
58  
59  	public byte[] block2() {
60  		return block2;
61  	}
62  }