summaryrefslogtreecommitdiff
path: root/cp/station/inc/station_actions.h
blob: f457f48caec7a021ebafdb97074c6e7baa24b73d (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
/* Cesar project {{{
 *
 * Copyright (C) 2007 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    cp/station/inc/station_actions.h
 * \brief   all the action called from the visual state machine
 * \ingroup cp_station
 */
#ifndef STATION_EVENTS_H_
#define STATION_EVENTS_H_

#include "cp/station/station.h"
#include "cp/station/inc/station_event_handler.h"
#include "cp/msg/msg.h"


/**
 * \brief       called when the ustt timer has expired
 * \param       
 * \return         
 */
void 
station_ustt_expires(void);


void init_system (void);
void launch_bbt_timer (void);

uint rand_in(uint min, uint max);

void launch_beacon_timer (void);
void launch_ustt_timer (void);
void transmit_unassoc_sta_mme(void);
void station_bbt_expires(void);
VS_VOID process_usta_mme (VS_VOIDPTR mme_address);
VS_VOID trace_cco (VS_VOID);
VS_VOID trace_pond (VS_VOID);
VS_VOID trace_sta (VS_VOID);
VS_VOID trace_ucco (VS_VOID);
VS_VOID trace_usta (VS_VOID);
VS_VOID try_associate (VS_VOIDPTR beacon_address);
/**
 * \brief       process cc_assoc_req message received by the cco
 * \param       address of the message
 * \return         
 */
VS_VOID process_cc_assoc_req (VS_VOIDPTR mme_address);
VS_VOID process_cc_assoc_cnf (VS_VOIDPTR mme_address);

VS_VOID process_cc_set_tei_map_ind (VS_VOIDPTR mme_address);
VS_VOID process_cc_set_tei_map_req (VS_VOIDPTR mme_address);



#endif /*STATION_EVENTS_H_*/