summaryrefslogtreecommitdiff
path: root/cesar/mac/pbproc/inc/fsm_rx_data.h
blob: 60ed3e5d7519184d12a57df9202208d766ab90f8 (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
60
61
62
63
64
65
66
67
#ifndef mac_pbproc_inc_fsm_rx_data_h
#define mac_pbproc_inc_fsm_rx_data_h
/* Cesar project {{{
 *
 * Copyright (C) 2007 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    mac/pbproc/inc/fsm_rx_data.h
 * \brief   FSM RX data part.
 * \ingroup mac_pbproc
 */

BEGIN_DECLS

/**
 * Initialise FSM RX data part.
 * \param  ctx  pbproc context
 */
void
pbproc_frda_init (pbproc_t *ctx);

/**
 * Handle a RX data, called from handle_fc.
 * \param  ctx  pbproc context
 * \param  rx_date  start of preamble date
 * \param  sof  SOF frame control
 */
void
pbproc_frda__handle (pbproc_t *ctx, u32 rx_date, const pbproc_fc_sof_t *sof);

/**
 * RX DATA WACK =ACCESS (PB)=>.
 * \param  ctx  pbproc context
 */
void
pbproc_frda__rx_data_wack__access (pbproc_t *ctx);

/**
 * RX DATA WACK LAST PB =ACCESS (PB)=>.
 * \param  ctx  pbproc context
 */
void
pbproc_frda__rx_data_wack_last_pb__access (pbproc_t *ctx);

/**
 * RX BURST =RX=FC=>.
 * \param  ctx  pbproc context
 * \param  rx_date  start of preamble date
 * \param  fc_av  frame control, or NULL if FCCS error
 */
void
pbproc_frda__rx_burst__rx_fc (pbproc_t *ctx, u32 rx_date,
                              const pbproc_fc_t *fc_av);

/**
 * RX BURST =ACCESS=>.
 * \param  ctx  pbproc context
 */
void
pbproc_frda__rx_burst__access (pbproc_t *ctx);

END_DECLS

#endif /* mac_pbproc_inc_fsm_rx_data_h */