summaryrefslogtreecommitdiff
path: root/cesar/mac/pbproc/inc/fsm_tx_rts_cts.h
blob: f73c888728aefd9fc3c2c87c887ed6d82d63c694 (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
#ifndef mac_pbproc_inc_fsm_tx_rts_cts_h
#define mac_pbproc_inc_fsm_tx_rts_cts_h
/* Cesar project {{{
 *
 * Copyright (C) 2007 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    mac/pbproc/inc/fsm_tx_rts_cts.h
 * \brief   FSM TX RTS CTS part.
 * \ingroup mac_pbproc
 */

BEGIN_DECLS

/**
 * Initialise FSM TX RTS CTS part.
 * \param  ctx  pbproc context
 */
void
pbproc_ftrc_init (pbproc_t *ctx);

/**
 * Handle a TX RTS CTS, called from FSM top.
 * \param  ctx  pbproc context
 */
void
pbproc_ftrc__handle (pbproc_t *ctx);

/**
 * TX WAIT CTS =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_ftrc__tx_wait_cts__rx_fc (pbproc_t *ctx, u32 rx_date,
                                 const pbproc_fc_t *fc_av);

/**
 * TX WAIT CTS =ACCESS=>.
 * \param  ctx  pbproc context
 */
void
pbproc_ftrc__tx_wait_cts__access (pbproc_t *ctx);

END_DECLS

#endif /* mac_pbproc_inc_fsm_tx_rts_cts_h */