Mistake on this page?
Report an issue in GitHub or email us
mac_commands.h
1 /*
2  * Copyright (c) 2017, Arm Limited and affiliates.
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 #ifndef MAC_COMMANDS_H_
18 #define MAC_COMMANDS_H_
19 
20 #include <cstring>
21 #include <cstdlib>
22 
23 #include "ns_cmdline.h"
24 #include "nsdynmemLIB.h"
25 #include "mbed_trace.h"
26 #include "mac_api.h"
27 #include "mlme.h"
28 #include "mac_mcps.h"
29 #include "mac_common_defines.h"
30 #include "mac_filter_api.h"
31 #include "mac_tester_util.h"
32 
33 #define LOOKUP_DESCRIPTOR_TABLE_SIZE 2
34 #define DEVICE_DESCRIPTOR_TABLE_SIZE 2
35 #define USAGE_DESCRIPTOR_TABLE_SIZE 2
36 #define KEY_DESCRIPTOR_TABLE_SIZE 2
37 
38 void mac_commands_init(void);
39 
40 void mac_data_confirm_handler(const mac_api_t *api, const mcps_data_conf_t *data);
41 void mac_data_indication_handler(const mac_api_t *api, const mcps_data_ind_t *data);
42 void mac_purge_confirm_handler(const mac_api_t *api, mcps_purge_conf_t *data);
43 void mac_mlme_confirm_handler(const mac_api_t *api, mlme_primitive id, const void *data);
44 void mac_mlme_indication_handler(const mac_api_t *api, mlme_primitive id, const void *data);
45 
46 int mac_start_command(int argc, char *argv[]);
47 int mac_scan_command(int argc, char *argv[]);
48 int mac_data_command(int argc, char *argv[]);
49 int mac_poll_command(int argc, char *argv[]);
50 int mac_purge_command(int argc, char *argv[]);
51 int mac_set_command(int argc, char *argv[]);
52 int mac_get_command(int argc, char *argv[]);
53 int mac_reset_command(int argc, char *argv[]);
54 int mac_address_command(int argc, char *argv[]);
55 int mac_key_command(int argc, char *argv[]);
56 int mac_add_neighbour_command(int argc, char *argv[]);
57 int mac_filter_command(int argc, char *argv[]);
58 int mac_config_status_command(int argc, char *argv[]);
59 int mac_find_beacon_command(int argc, char *argv[]);
60 int mac_wait_command(int argc, char *argv[]);
61 int mac_analyze_ed_command(int argc, char *argv[]);
62 int reset_command(int argc, char *argv[]);
63 int silent_mode_command(int argc, char *argv[]);
64 
65 #endif
Command line library - mbedOS shell.
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.