zmacConst.h
上传用户:joranyuan
上传日期:2022-06-23
资源大小:3306k
文件大小:1k
- #ifndef ZMAC_CONST_H
- #define ZMAC_CONST_H
- #define T_O 8 // owner/non-owner backoffs
- #define T_NO 32
- #define GLOBAL_FRAME_LENGTH 32
- // ecn parameters
- #define ECNCHECKPERIOD 16
- #define ECNSENDPERIOD 96 //in terms of TDMA slots
- #define ECNEXPIREPERIOD 192 //in terms of TDMA slots
- #define ECNMINPACKETS 10
- #define ECNTHRESHOLD 3.0
- #define ALPHA 0.25
- // types of messages
- #define ECNTYPE 222
- #define SYNCTYPE 223
- // sync parameters
- #define MIN_TRUST 1
- #define MAX_TRUST 8
- #define SYNC_PERIOD 100
- #define TRUST_FACTOR 1
- #endif