summaryrefslogtreecommitdiff
path: root/cesar/cp/eoc/cco/bw/inc/bw.h
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/cp/eoc/cco/bw/inc/bw.h')
-rw-r--r--cesar/cp/eoc/cco/bw/inc/bw.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/cesar/cp/eoc/cco/bw/inc/bw.h b/cesar/cp/eoc/cco/bw/inc/bw.h
new file mode 100644
index 0000000000..4298f7a032
--- /dev/null
+++ b/cesar/cp/eoc/cco/bw/inc/bw.h
@@ -0,0 +1,35 @@
+#ifndef cp_eoc_cco_bw_inc_bw_h
+#define cp_eoc_cco_bw_inc_bw_h
+/* Cesar project {{{
+ *
+ * Cppyright (C) 2009 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+#include "cp/eoc/cco/bw/inc/service.h"
+#include "cp/eoc/cco/bw/service.h"
+
+/** Minimal duration of CSMA period in EoC (ticks). Should not be less than 3ms*/
+#define MIN_CSMA_EOC_TCK MAX ((3 * BSU_ACLF_BP_CABLE_TCK / 100), \
+ MAC_US_TO_TCK (4300))
+/** Duration of allocation beacon */
+#define MIN_SPC_CENTRAL_TCK MAC_US_TO_TCK (1300)
+
+/** Duration of startup period on CCo */
+#define CP_EOC_CCO_STARTUP_PERIOD MAC_MS_TO_TCK (MAC_SEC_TO_MS (20))
+/** Duration of CSMA period in beacon during statrup */
+#define CP_EOC_CSMA_STARTUP_PERIOD MAC_MS_TO_TCK (25)
+
+/** Number of beacon periods to disconnect non-replying slave. */
+#define CP_EOC_CCO_RELEASE_LIMIT 10
+
+/** Scheduling context of CP */
+struct cp_eoc_cco_bw_sched_t
+{
+ /** Service pool of scheduling context*/
+ cp_eoc_cco_services_t services;
+};
+typedef struct cp_eoc_cco_bw_sched_t cp_eoc_cco_bw_sched_t;
+
+#endif /* cp_eoc_cco_bw_inc_bw_h */