Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef GZLL_PARAMETERS_H__
00015 #define GZLL_PARAMETERS_H__
00016
00017 #define GZLL_DEFAULT_CHANNEL_TAB {4, 25, 42, 63, 77}
00018 #define GZLL_DEFAULT_CHANNEL_TAB_SIZE 5
00019
00020 #define GZLL_DEFAULT_ADDRESS_PIPE0 {1, 4, 7, 10, 13}
00021 #define GZLL_DEFAULT_ADDRESS_PIPE1 {2, 5, 8, 11, 14}
00022 #define GZLL_DEFAULT_ADDRESS_PIPE2 3
00023 #define GZLL_DEFAULT_ADDRESS_PIPE3 4
00024 #define GZLL_DEFAULT_ADDRESS_PIPE4 5
00025 #define GZLL_DEFAULT_ADDRESS_PIPE5 6
00026
00027 #define GZLL_DEFAULT_PARAM_DEVICE_MODE 0
00028 #define GZLL_DEFAULT_PARAM_TX_TIMEOUT 500 // [#attempts]
00029 #define GZLL_DEFAULT_PARAM_TX_ATTEMPTS_PR_CHANNEL_WHEN_SYNC_ON 2
00030 #define GZLL_DEFAULT_PARAM_TX_ATTEMPTS_PR_CHANNEL_WHEN_SYNC_OFF (GZLL_DEFAULT_CHANNEL_TAB_SIZE * 7)
00031
00032 #define GZLL_DEFAULT_PARAM_HOST_MODE 0
00033 #define GZLL_DEFAULT_PARAM_RX_PIPES 0x3f
00034 #define GZLL_DEFAULT_PARAM_CRYPT_PIPES 0x00
00035 #define GZLL_DEFAULT_PARAM_RX_TIMEOUT 0 // [# GZLL_DEFAULT_PARAM_RX_PERIODs]
00036 #define GZLL_DEFAULT_PARAM_RX_PERIOD 1008 // [us]
00037 #define GZLL_DEFAULT_PARAM_RX_CHANNEL_HOLD_PERIODS 2 // [# GZLL_DEFAULT_PARAM_RX_PERIODs]
00038
00039 #define GZLL_DEFAULT_PARAM_OUTPUT_POWER HAL_NRF_0DBM
00040 #define GZLL_DEFAULT_PARAM_POWER_DOWN_IDLE_ENABLE 0
00041 #define GZLL_DEFAULT_PARAM_MAX_SYNC_PERIOD 150 // [# GZLL_DEFAULT_PARAM_RX_PERIODs]
00042 #define GZLL_DEFAULT_PARAM_HOST_MODE_1_CYCLE_PERIOD 100 // [# GZLL_DEFAULT_PARAM_RX_PERIODs]
00043 #define GZLL_DEFAULT_PARAM_COLLISION_CHANNEL_SWITCH_LIMIT 50 // [# Channel switches]
00044
00045 #define GZLL_DEFAULT_AES_KEYS {0}
00046
00047
00048 #define GZLL_DATARATE GZLL_DR_2MBPS
00049 #define GZLL_MAX_CHANNEL_TAB_SIZE 16 // [# channels]
00050 #define GZLL_MAX_FW_PAYLOAD_LENGTH 27 // [bytes]
00051 #define GZLL_MAX_ACK_PAYLOAD_LENGTH 10 // [bytes]
00052 #define GZLL_MAX_CRYPT_PIPES 0 // [# pipes]
00053
00054 #ifdef __C51__
00055 #define GZLL_DEFAULT_PARAM_RX_PERIOD_MODIFIER 360 // [us]
00056 #elif __ICC8051__
00057 #define GZLL_DEFAULT_PARAM_RX_PERIOD_MODIFIER 600 // [us]
00058 #endif
00059
00060 #endif // GZLL_PARAMETERS_H__