1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     cec_Const.h
4 
5   Copyright (C)2009 Nintendo Co., Ltd.  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   $Rev: 36150 $
14  *---------------------------------------------------------------------------*/
15 #ifndef NN_CEC_CTR_CEC_CONST_H_
16 #define NN_CEC_CTR_CEC_CONST_H_
17 
18 #include <nn/types.h>
19 
20 #define CEC_SIZEOF_SENDERID     (16)
21 #define CEC_SIZEOF_HASH         (32)
22 
23 #define MESSAGE_HMAC_KEYLEN        (32)
24 
25 #define MESSID_LEN_8
26 
27 namespace nn {
28 namespace cec {
29 namespace CTR {
30 
31     /* Please see man pages for details */
32     static const s32 CEC_SIZEOF_MESSAGEID = (8);
33 /*
34     static const size_t MESSAGE_ID_SIZE             = CEC_SIZEOF_MESSAGEID;
35     static const size_t MESSAGE_HEADER_SIZE         = 128;
36     static const size_t MESSAGE_ICON_SIZE           = 3200;
37     static const size_t MODULE_FILTER_HEADER_SIZE   = 5;
38     static const size_t MODULE_FILTER_SIZE_MAX      = 0x10;
39 */
40     /* Please see man pages for details */
41     static const size_t MESSAGE_BODY_SIZE_MAX       = 96*1024;
42 
43     //
44     //
45 
46     /* Please see man pages for details
47 
48                 */
49     static const u8 MESSAGE_SENDCOUNT_ONCE             = (0x01);
50 
51     /* Please see man pages for details
52 
53                 */
54     static const u8 MESSAGE_SENDCOUNT_UNLIMITED        = (0xFF);
55 
56     /* Please see man pages for details
57 
58                 */
59     static const u8 MESSAGE_PROPAGATIONCOUNT_ONCE      = (0x01);
60 
61     //
62 
63 } // namespace CTR
64 } // namespace cec
65 } // namespace nn
66 
67 
68 #endif  //NN_CEC_CTR_CEC_CONST_H_
69 
70