1 /*---------------------------------------------------------------------------*
2   Project:  TwlSDK - WM - demos - wmPadRead-child
3   File:     wh_config.h
4 
5   Copyright 2007-2008 Nintendo. All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law. They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Date:: 2008-09-17#$
14   $Rev: 8556 $
15   $Author: okubata_ryoma $
16  *---------------------------------------------------------------------------*/
17 
18 #ifndef WH_CONFIG_H__
19 #define WH_CONFIG_H__
20 
21 // DMA number used for wireless communications
22 #define WH_DMA_NO                 2
23 
24 // Maximum number of children (this number does not include the parent)
25 #define WH_CHILD_MAX              15
26 
27 // Maximum size of data that can be shared
28 #define WH_DS_DATA_SIZE           8
29 
30 // Maximum size of data sent in one transmission.
31 // If you are performing normal communication in addition to data sharing, increase this value only by the amount that those normal communications use.
32 // You must then add enough for the additional headers and footers that accompany multi-packet transmissions.
33 //
34 // For more details, see docs/TechnicalNotes/WirelessManager.doc.
35 // GUIDELINE: Guideline compliance point (6.3.2)
36 // We recommend a value of 5600 microseconds or less for the time required by a single MP transmission, as calculated in the Function Reference Manual under Wireless Manager (WM) > Figures and Information > Wireless communication time calculation sheet.
37 //
38 #define WH_PARENT_MAX_SIZE      (WH_DS_DATA_SIZE * (1 + WH_CHILD_MAX) + WM_SIZE_DS_PARENT_HEADER)
39 #define WH_CHILD_MAX_SIZE       (WH_DS_DATA_SIZE)
40 
41 // Upper limit on the number of MP communications for one picture frame
42 // When multiple protocols are used in parallel (such as data sharing and block transfer), this value must be set greater than 1 (or to 0, specifying no limit).
43 //
44 // Without that, the only protocol that will be allowed to run MP communication will be the one with the highest priority.
45 //
46 #define WH_MP_FREQUENCY           1
47 
48 // Port to use for normal MP communication
49 #define WH_DATA_PORT              14
50 
51 // Priority to use for normal MP communication
52 #define WH_DATA_PRIO              WM_PRIORITY_NORMAL
53 
54 // Port to use for data sharing
55 #define WH_DS_PORT                12
56 
57 
58 
59 #endif // WH_CONFIG_H__
60