summaryrefslogtreecommitdiff
path: root/cesar/ce/rx/bitloading/inc/transition.h
blob: 06983ee666d942e37fbdce63dc91f1d24f8493f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef ce_rx_bitloading_inc_transition_h
#define ce_rx_bitloading_inc_transition_h
/* Cesar project {{{
 *
 * Copyright (C) 2009 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    ce/rx/bitloading/inc/transition.h
 * \brief   Transitions of the CE RX Bit Loading FSM.
 * \ingroup ce_rx
 *
 * This file contains the transitions of the FSM of the CE RX Bit Loading.
 */

#include "mac/common/sta.h"
#include "ce_rx_bl_fsm_defs.h"

BEGIN_DECLS

/**
 * Handle reception of measure_received in IDLE state.
 * \param  ce_rx  the CE RX context.
 * \param  sta  the corresponding sta.
 * \param  data  the data associated to the event.
 * \return  the next state.
 */
ce_rx_bl_fsm_branch_t
ce_rx_bl__IDLE__measure_received (ce_rx_t *ce_rx, sta_t *sta,
                                  ce_rx_bitloading_fsm_event_param_t data);

/**
 * Handle reception of measure_received in INITIAL state.
 * \param  ce_rx  the CE RX context.
 * \param  sta  the corresponding sta.
 * \param  data  the data associated to the event.
 * \return  the next state.
 */
ce_rx_bl_fsm_branch_t
ce_rx_bl__INITIAL__measure_received (ce_rx_t *ce_rx, sta_t *sta,
                                     ce_rx_bitloading_fsm_event_param_t data);

/**
 * Handle reception of measure_received in TRACKING state.
 * \param  ce_rx  the CE RX context.
 * \param  sta  the corresponding sta.
 * \param  data  the data associated to the event.
 * \return  the next state.
 */
ce_rx_bl_fsm_branch_t
ce_rx_bl__TRACKING__measure_received (ce_rx_t *ce_rx, sta_t *sta,
                                      ce_rx_bitloading_fsm_event_param_t
                                      data);

END_DECLS

#endif /* ce_rx_bitloading_inc_transition_h */