takashi kadono / Mbed OS Nucleo_446

Dependencies:   ssd1331

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mac_commands.h Source File

mac_commands.h

00001 /*
00002  * Copyright (c) 2017, Arm Limited and affiliates.
00003  * SPDX-License-Identifier: Apache-2.0
00004  *
00005  * Licensed under the Apache License, Version 2.0 (the "License");
00006  * you may not use this file except in compliance with the License.
00007  * You may obtain a copy of the License at
00008  *
00009  *     http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 #ifndef MAC_COMMANDS_H_
00018 #define MAC_COMMANDS_H_
00019 
00020 #include <cstring>
00021 #include <cstdlib>
00022 
00023 #include "ns_cmdline.h"
00024 #include "nsdynmemLIB.h"
00025 #include "mbed_trace.h"
00026 #include "mac_api.h"
00027 #include "mlme.h"
00028 #include "mac_mcps.h"
00029 #include "mac_common_defines.h"
00030 #include "mac_filter_api.h"
00031 #include "util.h"
00032 
00033 #define LOOKUP_DESCRIPTOR_TABLE_SIZE 2
00034 #define DEVICE_DESCRIPTOR_TABLE_SIZE 2
00035 #define USAGE_DESCRIPTOR_TABLE_SIZE 2
00036 #define KEY_DESCRIPTOR_TABLE_SIZE 2
00037 
00038 void mac_commands_init(void);
00039 
00040 void mac_data_confirm_handler(const mac_api_t *api, const mcps_data_conf_t *data);
00041 void mac_data_indication_handler(const mac_api_t *api, const mcps_data_ind_t *data);
00042 void mac_purge_confirm_handler(const mac_api_t *api, mcps_purge_conf_t *data);
00043 void mac_mlme_confirm_handler(const mac_api_t *api, mlme_primitive id, const void *data);
00044 void mac_mlme_indication_handler(const mac_api_t *api, mlme_primitive id, const void *data);
00045 
00046 int mac_start_command(int argc, char *argv[]);
00047 int mac_scan_command(int argc, char *argv[]);
00048 int mac_data_command(int argc, char *argv[]);
00049 int mac_poll_command(int argc, char *argv[]);
00050 int mac_purge_command(int argc, char *argv[]);
00051 int mac_set_command(int argc, char *argv[]);
00052 int mac_get_command(int argc, char *argv[]);
00053 int mac_reset_command(int argc, char *argv[]);
00054 int mac_address_command(int argc, char *argv[]);
00055 int mac_key_command(int argc, char *argv[]);
00056 int mac_add_neighbour_command(int argc, char *argv[]);
00057 int mac_filter_command(int argc, char *argv[]);
00058 int mac_config_status_command(int argc, char *argv[]);
00059 int mac_find_beacon_command(int argc, char *argv[]);
00060 int mac_wait_command(int argc, char *argv[]);
00061 int mac_analyze_ed_command(int argc, char *argv[]);
00062 int reset_command(int argc, char *argv[]);
00063 int silent_mode_command(int argc, char *argv[]);
00064 
00065 #endif