33 #ifndef __REGIONNVM_H__
34 #define __REGIONNVM_H__
46 typedef enum eRegionCN470ChannelPlan
49 CHANNEL_PLAN_20MHZ_TYPE_A,
50 CHANNEL_PLAN_20MHZ_TYPE_B,
51 CHANNEL_PLAN_26MHZ_TYPE_A,
52 CHANNEL_PLAN_26MHZ_TYPE_B
56 #if defined( REGION_CN470 )
57 #define REGION_NVM_MAX_NB_CHANNELS 96
58 #elif defined( REGION_US915 ) || defined( REGION_AU915 )
59 #define REGION_NVM_MAX_NB_CHANNELS 72
60 #elif defined( REGION_AS923 ) || defined( REGION_CN779 ) || \
61 defined( REGION_EU433 ) || defined( REGION_EU868 ) || \
62 defined( REGION_IN865 ) || defined( REGION_KR920 )
63 #define REGION_NVM_MAX_NB_CHANNELS 16
66 #define REGION_NVM_MAX_NB_CHANNELS 8
70 #if defined( REGION_EU868 )
71 #define REGION_NVM_MAX_NB_BANDS 6
74 #define REGION_NVM_MAX_NB_BANDS 1
78 #if defined( REGION_CN470 ) || defined( REGION_US915 ) || \
79 defined( REGION_AU915 )
80 #define REGION_NVM_CHANNELS_MASK_SIZE 6
83 #define REGION_NVM_CHANNELS_MASK_SIZE 1
89 typedef struct sRegionNvmDataGroup1
91 #if defined( REGION_US915 ) || defined( REGION_AU915 ) || defined( REGION_CN470 )
95 uint16_t ChannelsMaskRemaining[ REGION_NVM_CHANNELS_MASK_SIZE ];
97 #if defined( REGION_US915 ) || defined( REGION_AU915 )
102 uint8_t JoinChannelGroupsCurrentIndex;
106 uint8_t JoinTrialsCounter;
118 typedef struct sRegionNvmDataGroup2
127 uint16_t ChannelsMask[ REGION_NVM_CHANNELS_MASK_SIZE ];
131 uint16_t ChannelsDefaultMask[ REGION_NVM_CHANNELS_MASK_SIZE ];
132 #if defined( REGION_CN470 )
141 uint8_t CommonJoinChannelIndex;
160 #endif // __REGIONNVM_H__