summaryrefslogtreecommitdiff
path: root/cesar/cp2/cco/bw/inc
diff options
context:
space:
mode:
authorboure2008-06-13 14:55:30 +0000
committerboure2008-06-13 14:55:30 +0000
commit6aa4e7a349bd141a04e700d33067b956b9e1b51d (patch)
tree125d0362161e3036a91c640b0edcfbbdee2f4dc6 /cesar/cp2/cco/bw/inc
parenta17fa72d9698c8efa3d722674dca26adcc474a5d (diff)
Modification of the BLE access
Now using the lists beginning of the implementation of the schedule git-svn-id: svn+ssh://pessac/svn/cesar/trunk@2333 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/cp2/cco/bw/inc')
-rw-r--r--cesar/cp2/cco/bw/inc/bw.h25
1 files changed, 18 insertions, 7 deletions
diff --git a/cesar/cp2/cco/bw/inc/bw.h b/cesar/cp2/cco/bw/inc/bw.h
index 851b94a935..64d98f0cad 100644
--- a/cesar/cp2/cco/bw/inc/bw.h
+++ b/cesar/cp2/cco/bw/inc/bw.h
@@ -88,20 +88,31 @@ cp_cco_bw_set_next_free_allocation_time(cp_t *ctx, cp_cco_bw_alloc_t *alloc,
cp_cco_bw_alloc_t *next_alloc);
+/**
+ * Study the allocation possbility
+ * \param actual_ble « param description »
+ * \param nb_pb « param description »
+ * \param alloc « param description »
+ * \param next_alloc « param description »
+ * \return « return value description »
+ *
+ * « details »
+ */
bool
cp_cco_bw_is_enough_time(cp_link_ble_interval_t *actual_ble,
u16 nb_pb,
cp_cco_bw_alloc_t *alloc,
cp_cco_bw_alloc_t *next_alloc);
-#define CP_CCO_BW_GET_FIRST_ALLOC(ctx, persistence...)\
- PASTE_EXPAND(CP_CCO_BW_GET_FIRST_ALLOC_, \
- PREPROC_NARG(mac, ## persistence))(mac, ## persistence)
-#define CP_CCO_BW_GET_FIRST_ALLOC_1(ctx_)\
-cp_cco_bw_get_first_alloc_global(ctx_)
+cp_link_ble_interval_t*
+cp_cco_bw_get_last_ble(cp_link_ble_interval_t *first_ble, u16 nb_pb,
+ cp_cco_bw_alloc_t *alloc, cp_cco_bw_alloc_t *next_alloc);
-#define CP_CCO_BW_GET_FIRST_ALLOC_2(ctx_, persistence_)\
- cp_cco_bw_get_first_alloc(ctx_, persistence_)
+bool
+calculation_of_alloc_time(cp_link_ble_interval_t *first_ble,
+ cp_link_ble_interval_t *last_ble, u16 nb_pb,
+ u16 *alloc_st, u16 *alloc_et,
+ cp_cco_bw_alloc_t *alloc, cp_cco_bw_alloc_t *next_alloc);
#endif /* cp_cco_bw_private_h */