summaryrefslogtreecommitdiff
path: root/cp/station/maximus/inc/maximus_cp_station.h
blob: 6290bdba615d61bb59b19d9a8ad57ba38f7b0e42 (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
/* Cesar project {{{
 *
 * Copyright (C) 2007 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    maximus_cp_station.h
 * \brief   Declaration of Maximus function calls used for the station configuration
 * \ingroup 
 */
#ifndef cp_station_maximus_inc_maximus_cp_station_h
#define cp_station_maximus_inc_maximus_cp_station_h

#include "hal/phy/defs.h" // for 'PHY_CARRIER_NB'
#include "host/fwd.h" // for 'station_ctx_t', 'fcall_ctx_t', and 'sci_msg_t', 
#include "host/fcall.h" // for 'fcall_param_t'

// typedef unsigned char mac_address_t[6]; // defined in 'cp/cp_types.h'
typedef bool cco_preference_t;
typedef bool was_cco_t;
typedef char npw_t[64];
typedef char dpw_t[64];
typedef char m_sta_hfid_t[64];
typedef char u_sta_hfid_t[64];
typedef char avln_hfid_t[64];
typedef u8 sl_t;
typedef u8 tonemask_t[(PHY_CARRIER_NB + 7) / 8];
// typedef unsigned char snid_t; // defined in 'cp/cp_types.h'

void maximus_cp_station_init (station_ctx_t *station);

int maximus_set_mac_address (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg, void *data);
int maximus_set_cco_preference (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg, void *data);
int maximus_set_was_cco (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg, void *data);
int maximus_set_npw (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg, void *data);
int maximus_set_dpw (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg, void *data);
int maximus_set_m_sta_hfid (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg, void *data);
int maximus_set_u_sta_hfid (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg, void *data);
int maximus_set_avln_hfid (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg, void *data);
int maximus_set_sl (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg, void *data);
int maximus_set_tonemask (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg, void *data);
int maximus_set_snid (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg, void *data);

int maximus_mac_start (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg, void *data);
int maximus_mac_stop (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg, void *data);

#endif /* cp_station_maximus_inc_maximus_cp_station_h */