Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of WlanBP3595AP by
WlanBP3595.h@1:5424d25360ea, 2016-11-22 (annotated)
- Committer:
- tousaki
- Date:
- Tue Nov 22 08:51:43 2016 +0000
- Revision:
- 1:5424d25360ea
- Parent:
- 0:7683dafa8c1a
supported GCC_ARM
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| tousaki | 0:7683dafa8c1a | 1 | /****************************************************************************/ |
| tousaki | 0:7683dafa8c1a | 2 | /* Copyright (c) 2015 GRAPE SYSTEMS INC. */ |
| tousaki | 0:7683dafa8c1a | 3 | /* */ |
| tousaki | 0:7683dafa8c1a | 4 | /* Licensed under the Apache License, Version 2.0 (the "License"); */ |
| tousaki | 0:7683dafa8c1a | 5 | /* you may not use this file except in compliance with the License. */ |
| tousaki | 0:7683dafa8c1a | 6 | /* You may obtain a copy of the License at */ |
| tousaki | 0:7683dafa8c1a | 7 | /* */ |
| tousaki | 0:7683dafa8c1a | 8 | /* http://www.apache.org/licenses/LICENSE-2.0 */ |
| tousaki | 0:7683dafa8c1a | 9 | /* */ |
| tousaki | 0:7683dafa8c1a | 10 | /* Unless required by applicable law or agreed to in writing, software */ |
| tousaki | 0:7683dafa8c1a | 11 | /* distributed under the License is distributed on an "AS IS" BASIS, */ |
| tousaki | 0:7683dafa8c1a | 12 | /* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ |
| tousaki | 0:7683dafa8c1a | 13 | /* See the License for the specific language governing permissions and */ |
| tousaki | 0:7683dafa8c1a | 14 | /* limitations under the License. */ |
| tousaki | 0:7683dafa8c1a | 15 | /* */ |
| tousaki | 0:7683dafa8c1a | 16 | /* [Additional license terms] */ |
| tousaki | 0:7683dafa8c1a | 17 | /* */ |
| tousaki | 0:7683dafa8c1a | 18 | /* This library is free for non-commercial purposes. */ |
| tousaki | 0:7683dafa8c1a | 19 | /* To use this commercially, contact us at */ |
| tousaki | 0:7683dafa8c1a | 20 | /* */ |
| tousaki | 0:7683dafa8c1a | 21 | /* sales@info.grape.co.jp */ |
| tousaki | 0:7683dafa8c1a | 22 | /* */ |
| tousaki | 0:7683dafa8c1a | 23 | /****************************************************************************/ |
| tousaki | 0:7683dafa8c1a | 24 | |
| tousaki | 0:7683dafa8c1a | 25 | /** @file |
| tousaki | 0:7683dafa8c1a | 26 | * |
| tousaki | 0:7683dafa8c1a | 27 | * WlanBP3595 library. |
| tousaki | 0:7683dafa8c1a | 28 | * This library only works with GR-PEACH. |
| tousaki | 0:7683dafa8c1a | 29 | * |
| tousaki | 0:7683dafa8c1a | 30 | * @note |
| tousaki | 0:7683dafa8c1a | 31 | * Please refer to ROHM's "Software Development Specs" for the information of WID. |
| tousaki | 0:7683dafa8c1a | 32 | */ |
| tousaki | 0:7683dafa8c1a | 33 | |
| tousaki | 0:7683dafa8c1a | 34 | #ifndef _WLANBP3595_H_ |
| tousaki | 0:7683dafa8c1a | 35 | #define _WLANBP3595_H_ |
| tousaki | 0:7683dafa8c1a | 36 | |
| tousaki | 0:7683dafa8c1a | 37 | #include "rza1_bp3595_emac.h" |
| tousaki | 0:7683dafa8c1a | 38 | #include "lwip/opt.h" |
| tousaki | 0:7683dafa8c1a | 39 | #include "lwip/pbuf.h" |
| tousaki | 0:7683dafa8c1a | 40 | |
| tousaki | 0:7683dafa8c1a | 41 | #ifdef __cplusplus |
| tousaki | 0:7683dafa8c1a | 42 | extern "C" { |
| tousaki | 0:7683dafa8c1a | 43 | #endif |
| tousaki | 0:7683dafa8c1a | 44 | |
| tousaki | 0:7683dafa8c1a | 45 | /**** CONSTANT DEFINES **************************************************************************/ |
| tousaki | 0:7683dafa8c1a | 46 | |
| tousaki | 0:7683dafa8c1a | 47 | /** @name Status of WlanBP3595 |
| tousaki | 0:7683dafa8c1a | 48 | * |
| tousaki | 0:7683dafa8c1a | 49 | */ |
| tousaki | 0:7683dafa8c1a | 50 | /*@{*/ |
| tousaki | 0:7683dafa8c1a | 51 | #define WLAN_BP3595_NONE 0 /*!< BP3595 is not connected, or the firmware is not downloaded */ |
| tousaki | 0:7683dafa8c1a | 52 | #define WLAN_BP3595_FW_DL 1 /*!< The firmware is being downloaded */ |
| tousaki | 0:7683dafa8c1a | 53 | #define WLAN_BP3595_START 2 /*!< The firmware was downloaded and is working */ |
| tousaki | 0:7683dafa8c1a | 54 | /*@}*/ |
| tousaki | 0:7683dafa8c1a | 55 | |
| tousaki | 0:7683dafa8c1a | 56 | /**** FUNCTION PROTOTYPE & MACRO FUNCTION ******************************************************/ |
| tousaki | 0:7683dafa8c1a | 57 | |
| tousaki | 0:7683dafa8c1a | 58 | /** Initialize WlanBP3595 |
| tousaki | 0:7683dafa8c1a | 59 | * |
| tousaki | 0:7683dafa8c1a | 60 | * @note |
| tousaki | 0:7683dafa8c1a | 61 | * After executing this function, please wait until the state becomes WLAN_BP3595_START. |
| tousaki | 0:7683dafa8c1a | 62 | * You can get the status by WlanBP3595_GetWlanSts(). |
| tousaki | 0:7683dafa8c1a | 63 | * |
| tousaki | 0:7683dafa8c1a | 64 | * @param pfnWlanInfoNotication The information callback function |
| tousaki | 0:7683dafa8c1a | 65 | * - 1st param : The message type ('I' or 'N') |
| tousaki | 0:7683dafa8c1a | 66 | * - 2nd param : WID number |
| tousaki | 0:7683dafa8c1a | 67 | * - 3rd param : The data size |
| tousaki | 0:7683dafa8c1a | 68 | * - 4th param : The data buffer |
| tousaki | 0:7683dafa8c1a | 69 | * @retval 0 Success |
| tousaki | 0:7683dafa8c1a | 70 | * @retval "The others" Failure |
| tousaki | 0:7683dafa8c1a | 71 | */ |
| tousaki | 0:7683dafa8c1a | 72 | int WlanBP3595_Init(void (*pfnWlanInfoNotication)(uint8_t, uint16_t, uint16_t, uint8_t *)); |
| tousaki | 0:7683dafa8c1a | 73 | |
| tousaki | 0:7683dafa8c1a | 74 | /** Get the status of WlanBP3595 |
| tousaki | 0:7683dafa8c1a | 75 | * |
| tousaki | 0:7683dafa8c1a | 76 | * @retval WLAN_BP3595_NONE BP3595 is not connected, or the firmware is not downloaded |
| tousaki | 0:7683dafa8c1a | 77 | * @retval WLAN_BP3595_FW_DL The firmware is being downloaded |
| tousaki | 0:7683dafa8c1a | 78 | * @retval WLAN_BP3595_START The firmware was downloaded and is working |
| tousaki | 0:7683dafa8c1a | 79 | */ |
| tousaki | 0:7683dafa8c1a | 80 | uint32_t WlanBP3595_GetWlanSts(void); |
| tousaki | 0:7683dafa8c1a | 81 | |
| tousaki | 0:7683dafa8c1a | 82 | /** Execute WID function |
| tousaki | 0:7683dafa8c1a | 83 | * |
| tousaki | 0:7683dafa8c1a | 84 | * @param ulFunc A function number |
| tousaki | 0:7683dafa8c1a | 85 | * @param pvParam The data buffer (the parameter) |
| tousaki | 0:7683dafa8c1a | 86 | * @retval 0 Success |
| tousaki | 0:7683dafa8c1a | 87 | * @retval "The others" Failure |
| tousaki | 0:7683dafa8c1a | 88 | */ |
| tousaki | 0:7683dafa8c1a | 89 | int WlanBP3595_Ioctl(uint32_t ulFunc, void *pvParam); |
| tousaki | 0:7683dafa8c1a | 90 | |
| tousaki | 0:7683dafa8c1a | 91 | /** Output an ethernet frame |
| tousaki | 0:7683dafa8c1a | 92 | * |
| tousaki | 0:7683dafa8c1a | 93 | * @note |
| tousaki | 0:7683dafa8c1a | 94 | * This function is used in EthernetInterface driver. |
| tousaki | 0:7683dafa8c1a | 95 | * |
| tousaki | 0:7683dafa8c1a | 96 | * @param p A pbuf to output |
| tousaki | 0:7683dafa8c1a | 97 | * @retval 0 Success |
| tousaki | 0:7683dafa8c1a | 98 | * @retval "The others" Failure |
| tousaki | 0:7683dafa8c1a | 99 | */ |
| tousaki | 0:7683dafa8c1a | 100 | int WlanBP3595_Output(struct pbuf *p); |
| tousaki | 0:7683dafa8c1a | 101 | |
| tousaki | 0:7683dafa8c1a | 102 | /** Enable receiving |
| tousaki | 0:7683dafa8c1a | 103 | * |
| tousaki | 0:7683dafa8c1a | 104 | * @note |
| tousaki | 0:7683dafa8c1a | 105 | * This function is used in EthernetInterface driver. |
| tousaki | 0:7683dafa8c1a | 106 | */ |
| tousaki | 0:7683dafa8c1a | 107 | void WlanBP3595_RecvEnable(void); |
| tousaki | 0:7683dafa8c1a | 108 | |
| tousaki | 0:7683dafa8c1a | 109 | /** Disable receiving |
| tousaki | 0:7683dafa8c1a | 110 | * |
| tousaki | 0:7683dafa8c1a | 111 | * @note |
| tousaki | 0:7683dafa8c1a | 112 | * This function is used in EthernetInterface driver. |
| tousaki | 0:7683dafa8c1a | 113 | */ |
| tousaki | 0:7683dafa8c1a | 114 | void WlanBP3595_RecvDisable(void); |
| tousaki | 0:7683dafa8c1a | 115 | |
| tousaki | 0:7683dafa8c1a | 116 | /** @name Macro Function |
| tousaki | 0:7683dafa8c1a | 117 | * |
| tousaki | 0:7683dafa8c1a | 118 | */ |
| tousaki | 0:7683dafa8c1a | 119 | /*@{*/ |
| tousaki | 0:7683dafa8c1a | 120 | |
| tousaki | 0:7683dafa8c1a | 121 | /** Notify the EthernetInterface driver that WLAN was connected |
| tousaki | 0:7683dafa8c1a | 122 | * |
| tousaki | 0:7683dafa8c1a | 123 | * When WLAN was connected, |
| tousaki | 0:7683dafa8c1a | 124 | * please call this macro function from your application program. |
| tousaki | 0:7683dafa8c1a | 125 | * The types of the argument and the return value are "void". |
| tousaki | 0:7683dafa8c1a | 126 | * You can know the change of the connection state by the information callback. |
| tousaki | 0:7683dafa8c1a | 127 | * |
| tousaki | 0:7683dafa8c1a | 128 | * @note |
| tousaki | 0:7683dafa8c1a | 129 | * When this function is called before executing EthernetInterface::init(), this function does nothing. |
| tousaki | 0:7683dafa8c1a | 130 | * If you use WlanBP3595_Disconnected() in a different thread, please perform exclusive control. |
| tousaki | 0:7683dafa8c1a | 131 | */ |
| tousaki | 0:7683dafa8c1a | 132 | #define WlanBP3595_Connected() rza1_bp3595_connected() |
| tousaki | 0:7683dafa8c1a | 133 | |
| tousaki | 0:7683dafa8c1a | 134 | /** Notify the EthernetInterface driver that WLAN was disconnected |
| tousaki | 0:7683dafa8c1a | 135 | * |
| tousaki | 0:7683dafa8c1a | 136 | * When WLAN was disconnected, |
| tousaki | 0:7683dafa8c1a | 137 | * please call this macro function from your application program. |
| tousaki | 0:7683dafa8c1a | 138 | * The types of the argument and the return value are "void". |
| tousaki | 0:7683dafa8c1a | 139 | * You can know the change of the connection state by the information callback. |
| tousaki | 0:7683dafa8c1a | 140 | * |
| tousaki | 0:7683dafa8c1a | 141 | * @note |
| tousaki | 0:7683dafa8c1a | 142 | * When this function is called before executing EthernetInterface::init(), this function does nothing. |
| tousaki | 0:7683dafa8c1a | 143 | * If you use WlanBP3595_Connected() in a different thread, please perform exclusive control. |
| tousaki | 0:7683dafa8c1a | 144 | */ |
| tousaki | 0:7683dafa8c1a | 145 | #define WlanBP3595_Disconnected() rza1_bp3595_disconnected() |
| tousaki | 0:7683dafa8c1a | 146 | |
| tousaki | 0:7683dafa8c1a | 147 | /*@}*/ |
| tousaki | 0:7683dafa8c1a | 148 | |
| tousaki | 0:7683dafa8c1a | 149 | /**** TYPE DEFINES ******************************************************************************/ |
| tousaki | 0:7683dafa8c1a | 150 | typedef unsigned int grp_ui; |
| tousaki | 0:7683dafa8c1a | 151 | typedef signed int grp_si; |
| tousaki | 0:7683dafa8c1a | 152 | |
| tousaki | 0:7683dafa8c1a | 153 | typedef unsigned long grp_u32; |
| tousaki | 0:7683dafa8c1a | 154 | typedef signed long grp_s32; |
| tousaki | 0:7683dafa8c1a | 155 | |
| tousaki | 0:7683dafa8c1a | 156 | typedef unsigned short grp_u16; |
| tousaki | 0:7683dafa8c1a | 157 | typedef signed short grp_s16; |
| tousaki | 0:7683dafa8c1a | 158 | |
| tousaki | 0:7683dafa8c1a | 159 | typedef unsigned char grp_u8; |
| tousaki | 0:7683dafa8c1a | 160 | typedef signed char grp_s8; |
| tousaki | 0:7683dafa8c1a | 161 | |
| tousaki | 0:7683dafa8c1a | 162 | /**** SIZE DEFINES ******************************************************************************/ |
| tousaki | 0:7683dafa8c1a | 163 | #define GRP_WLD_SSID_SIZE 32 |
| tousaki | 0:7683dafa8c1a | 164 | #define GRP_WLD_BSSID_SIZE 6 |
| tousaki | 0:7683dafa8c1a | 165 | #define GRP_WLD_MAC_ADDRESS_SIZE 6 |
| tousaki | 0:7683dafa8c1a | 166 | #define GRP_WLD_WEP_KEY_SIZE_128 13 |
| tousaki | 0:7683dafa8c1a | 167 | |
| tousaki | 0:7683dafa8c1a | 168 | /**** IOCTL FUNCTION PARAMETER DEFINES **********************************************************/ |
| tousaki | 0:7683dafa8c1a | 169 | #define GRP_WLD_IOCTL_SITE_SURVEY_RESULT_MAX 8 |
| tousaki | 0:7683dafa8c1a | 170 | |
| tousaki | 0:7683dafa8c1a | 171 | /**** IOCTL FUNCTION BASE NUMBER DEFINES ********************************************************/ |
| tousaki | 0:7683dafa8c1a | 172 | #define GRP_WLD_IOCTL_FUNCTION_KIND_MASK 0xc000 |
| tousaki | 0:7683dafa8c1a | 173 | #define GRP_WLD_IOCTL_GET_FUNCTION 0x8000 |
| tousaki | 0:7683dafa8c1a | 174 | #define GRP_WLD_IOCTL_SET_FUNCTION 0x4000 |
| tousaki | 0:7683dafa8c1a | 175 | |
| tousaki | 0:7683dafa8c1a | 176 | /**** IOCTL FUNCTION NUMBER DEFINES *************************************************************/ |
| tousaki | 0:7683dafa8c1a | 177 | |
| tousaki | 0:7683dafa8c1a | 178 | /** @name Function code |
| tousaki | 0:7683dafa8c1a | 179 | * |
| tousaki | 0:7683dafa8c1a | 180 | */ |
| tousaki | 0:7683dafa8c1a | 181 | /*@{*/ |
| tousaki | 0:7683dafa8c1a | 182 | #define GRP_WLD_IOCTL_GET_BSS_TYPE GRP_WLD_IOCTL_GET_FUNCTION + 0x0001 /*!< The function code of WID_BSS_TYPE for getting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 183 | #define GRP_WLD_IOCTL_SET_BSS_TYPE GRP_WLD_IOCTL_SET_FUNCTION + 0x0001 /*!< The function code of WID_BSS_TYPE for setting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 184 | #define GRP_WLD_IOCTL_GET_CHANNEL GRP_WLD_IOCTL_GET_FUNCTION + 0x0002 /*!< The function code of WID_CURRENT_CHANNEL for getting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 185 | #define GRP_WLD_IOCTL_SET_CHANNEL GRP_WLD_IOCTL_SET_FUNCTION + 0x0002 /*!< The function code of WID_CURRENT_CHANNEL for setting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 186 | #define GRP_WLD_IOCTL_GET_ENABLE_CHANNEL GRP_WLD_IOCTL_GET_FUNCTION + 0x0003 /*!< The function code of WID_ENABLE_CHANNEL for getting. The parameter type is "grp_u32". */ |
| tousaki | 0:7683dafa8c1a | 187 | #define GRP_WLD_IOCTL_SET_ENABLE_CHANNEL GRP_WLD_IOCTL_SET_FUNCTION + 0x0003 /*!< The function code of WID_ENABLE_CHANNEL for setting. The parameter type is "grp_u32". */ |
| tousaki | 0:7683dafa8c1a | 188 | #define GRP_WLD_IOCTL_GET_11I_MODE GRP_WLD_IOCTL_GET_FUNCTION + 0x0004 /*!< The function code of WID_11I_MODE for getting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 189 | #define GRP_WLD_IOCTL_SET_11I_MODE GRP_WLD_IOCTL_SET_FUNCTION + 0x0004 /*!< The function code of WID_11I_MODE for setting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 190 | #define GRP_WLD_IOCTL_GET_11I_PSK GRP_WLD_IOCTL_GET_FUNCTION + 0x0005 /*!< The function code of WID_11I_PSK for getting. The parameter type is "grp_wld_byte_array". */ |
| tousaki | 0:7683dafa8c1a | 191 | #define GRP_WLD_IOCTL_SET_11I_PSK GRP_WLD_IOCTL_SET_FUNCTION + 0x0005 /*!< The function code of WID_11I_PSK for setting. The parameter type is "grp_wld_byte_array". */ |
| tousaki | 0:7683dafa8c1a | 192 | #define GRP_WLD_IOCTL_GET_SCAN_FILTER GRP_WLD_IOCTL_GET_FUNCTION + 0x0006 /*!< The function code of WID_SCAN_FILTER for getting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 193 | #define GRP_WLD_IOCTL_SET_SCAN_FILTER GRP_WLD_IOCTL_SET_FUNCTION + 0x0006 /*!< The function code of WID_SCAN_FILTER for setting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 194 | #define GRP_WLD_IOCTL_GET_RSSI GRP_WLD_IOCTL_GET_FUNCTION + 0x000f /*!< The function code of WID_RSSI for getting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 195 | #define GRP_WLD_IOCTL_GET_POWER_MANAGEMENT GRP_WLD_IOCTL_GET_FUNCTION + 0x0010 |
| tousaki | 0:7683dafa8c1a | 196 | #define GRP_WLD_IOCTL_SET_POWER_MANAGEMENT GRP_WLD_IOCTL_SET_FUNCTION + 0x0010 |
| tousaki | 0:7683dafa8c1a | 197 | #define GRP_WLD_IOCTL_GET_POWER_SAVE GRP_WLD_IOCTL_GET_FUNCTION + 0x0011 |
| tousaki | 0:7683dafa8c1a | 198 | #define GRP_WLD_IOCTL_SET_POWER_SAVE GRP_WLD_IOCTL_SET_FUNCTION + 0x0011 |
| tousaki | 0:7683dafa8c1a | 199 | #define GRP_WLD_IOCTL_GET_MAC_STATUS GRP_WLD_IOCTL_GET_FUNCTION + 0x0012 /*!< The function code of WID_CURRENT_MAC_STATUS for getting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 200 | #define GRP_WLD_IOCTL_GET_SSID GRP_WLD_IOCTL_GET_FUNCTION + 0x0013 /*!< The function code of WID_SSID for getting. The parameter type is "grp_wld_byte_array". */ |
| tousaki | 0:7683dafa8c1a | 201 | #define GRP_WLD_IOCTL_SET_SSID GRP_WLD_IOCTL_SET_FUNCTION + 0x0013 /*!< The function code of WID_SSID for setting. The parameter type is "grp_wld_byte_array". */ |
| tousaki | 0:7683dafa8c1a | 202 | #define GRP_WLD_IOCTL_GET_BCAST_SSID GRP_WLD_IOCTL_GET_FUNCTION + 0x0014 /*!< The function code of WID_BCAST_SSID for getting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 203 | #define GRP_WLD_IOCTL_SET_BCAST_SSID GRP_WLD_IOCTL_SET_FUNCTION + 0x0014 /*!< The function code of WID_BCAST_SSID for setting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 204 | #define GRP_WLD_IOCTL_GET_BSSID GRP_WLD_IOCTL_GET_FUNCTION + 0x0015 /*!< The function code of WID_BSSID for getting. The parameter type is "grp_wld_byte_array". */ |
| tousaki | 0:7683dafa8c1a | 205 | #define GRP_WLD_IOCTL_GET_WEP_KEY GRP_WLD_IOCTL_GET_FUNCTION + 0x0016 /*!< The function code of WID_WEP_KEY_VALUE for getting. The parameter type is "grp_wld_byte_array". */ |
| tousaki | 0:7683dafa8c1a | 206 | #define GRP_WLD_IOCTL_SET_WEP_KEY GRP_WLD_IOCTL_SET_FUNCTION + 0x0016 /*!< The function code of WID_WEP_KEY_VALUE for setting. The parameter type is "grp_wld_byte_array". */ |
| tousaki | 0:7683dafa8c1a | 207 | #define GRP_WLD_IOCTL_GET_WEP_KEY_INDEX GRP_WLD_IOCTL_GET_FUNCTION + 0x0017 /*!< The function code of WID_KEY_ID for getting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 208 | #define GRP_WLD_IOCTL_SET_WEP_KEY_INDEX GRP_WLD_IOCTL_SET_FUNCTION + 0x0017 /*!< The function code of WID_KEY_ID for setting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 209 | #define GRP_WLD_IOCTL_GET_LISTEN_INTERVAL GRP_WLD_IOCTL_GET_FUNCTION + 0x0019 /*!< The function code of WID_LISTEN_INTERVAL for getting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 210 | #define GRP_WLD_IOCTL_SET_LISTEN_INTERVAL GRP_WLD_IOCTL_SET_FUNCTION + 0x0019 /*!< The function code of WID_LISTEN_INTERVAL for setting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 211 | #define GRP_WLD_IOCTL_GET_SITE_SURVEY_RESULT GRP_WLD_IOCTL_GET_FUNCTION + 0x001a /*!< The function code of WID_SITE_SURVEY_RESULTS for getting. The parameter type is "grp_wld_site_survey_result_array". */ |
| tousaki | 0:7683dafa8c1a | 212 | #define GRP_WLD_IOCTL_GET_DEVICE_STRINGS GRP_WLD_IOCTL_GET_FUNCTION + 0x001b /*!< The function code of WID_FIRMWARE_VERSION & WID_SERIAL_NUMBER for getting. The parameter type is "grp_wld_dev_strings". */ |
| tousaki | 0:7683dafa8c1a | 213 | #define GRP_WLD_IOCTL_GET_MAC_ADDRESS GRP_WLD_IOCTL_GET_FUNCTION + 0x001c /*!< The function code of WID_MAC_ADDR for getting. The parameter type is "grp_wld_byte_array". */ |
| tousaki | 0:7683dafa8c1a | 214 | #define GRP_WLD_IOCTL_GET_SCAN_TYPE GRP_WLD_IOCTL_GET_FUNCTION + 0x0022 /*!< The function code of WID_SCAN_TYPE for getting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 215 | #define GRP_WLD_IOCTL_SET_SCAN_TYPE GRP_WLD_IOCTL_SET_FUNCTION + 0x0022 /*!< The function code of WID_SCAN_TYPE for setting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 216 | #define GRP_WLD_IOCTL_GET_AUTH_TYPE GRP_WLD_IOCTL_GET_FUNCTION + 0x0026 /*!< The function code of WID_AUTH_TYPE for getting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 217 | #define GRP_WLD_IOCTL_SET_AUTH_TYPE GRP_WLD_IOCTL_SET_FUNCTION + 0x0026 /*!< The function code of WID_AUTH_TYPE for setting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 218 | #define GRP_WLD_IOCTL_GET_SEL_ANTENNA GRP_WLD_IOCTL_GET_FUNCTION + 0x0030 /*!< The function code of WID_ANTENNA_SELECTION for getting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 219 | #define GRP_WLD_IOCTL_SET_SEL_ANTENNA GRP_WLD_IOCTL_SET_FUNCTION + 0x0030 /*!< The function code of WID_ANTENNA_SELECTION for setting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 220 | #define GRP_WLD_IOCTL_GET_WPS_START GRP_WLD_IOCTL_GET_FUNCTION + 0x0035 /*!< The function code of WID_WPS_START for getting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 221 | #define GRP_WLD_IOCTL_SET_WPS_START GRP_WLD_IOCTL_SET_FUNCTION + 0x0035 /*!< The function code of WID_WPS_START for setting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 222 | #define GRP_WLD_IOCTL_GET_WPS_DEV_MODE GRP_WLD_IOCTL_GET_FUNCTION + 0x0036 /*!< The function code of WID_WPS_DEV_MODE for getting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 223 | #define GRP_WLD_IOCTL_SET_WPS_DEV_MODE GRP_WLD_IOCTL_SET_FUNCTION + 0x0036 /*!< The function code of WID_WPS_DEV_MODE for setting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 224 | #define GRP_WLD_IOCTL_GET_BEACON_INTERVAL GRP_WLD_IOCTL_GET_FUNCTION + 0x004a /*!< The function code of WID_BEACON_INTERVAL for getting. The parameter type is "grp_u16". */ |
| tousaki | 0:7683dafa8c1a | 225 | #define GRP_WLD_IOCTL_SET_BEACON_INTERVAL GRP_WLD_IOCTL_SET_FUNCTION + 0x004a /*!< The function code of WID_BEACON_INTERVAL for setting. The parameter type is "grp_u16". */ |
| tousaki | 0:7683dafa8c1a | 226 | #define GRP_WLD_IOCTL_GET_WPS_PIN GRP_WLD_IOCTL_GET_FUNCTION + 0x0064 /*!< The function code of WID_WPS_PIN for getting. The parameter type is "grp_wld_byte_array". */ |
| tousaki | 0:7683dafa8c1a | 227 | #define GRP_WLD_IOCTL_SET_WPS_PIN GRP_WLD_IOCTL_SET_FUNCTION + 0x0064 /*!< The function code of WID_WPS_PIN for setting. The parameter type is "grp_wld_byte_array". */ |
| tousaki | 0:7683dafa8c1a | 228 | #define GRP_WLD_IOCTL_GET_WPS_CRED_LIST GRP_WLD_IOCTL_GET_FUNCTION + 0x006a /*!< The function code of WID_WPS_CRED_LIST for getting. The parameter type is "grp_wld_wps_cred_list". */ |
| tousaki | 0:7683dafa8c1a | 229 | #define GRP_WLD_IOCTL_SET_WPS_CRED_LIST GRP_WLD_IOCTL_SET_FUNCTION + 0x006a /*!< The function code of WID_WPS_CRED_LIST for setting. The parameter type is "grp_wld_wps_cred_list". */ |
| tousaki | 0:7683dafa8c1a | 230 | #define GRP_WLD_IOCTL_GET_USB_IN_XFER_MODE GRP_WLD_IOCTL_GET_FUNCTION + 0x006b /*!< The function code of WID_USB_IN_XFER_MODE for getting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 231 | #define GRP_WLD_IOCTL_SET_USB_IN_XFER_MODE GRP_WLD_IOCTL_SET_FUNCTION + 0x006b /*!< The function code of WID_USB_IN_XFER_MODE for setting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 232 | #define GRP_WLD_IOCTL_GET_TX_POWER_RATE GRP_WLD_IOCTL_GET_FUNCTION + 0x006c /*!< The function code of WID_TX_POWER_RATE for getting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 233 | #define GRP_WLD_IOCTL_SET_TX_POWER_RATE GRP_WLD_IOCTL_SET_FUNCTION + 0x006c /*!< The function code of WID_TX_POWER_RATE for setting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 234 | |
| tousaki | 0:7683dafa8c1a | 235 | #define GRP_WLD_IOCTL_GET_VSIE_FRAME GRP_WLD_IOCTL_GET_FUNCTION + 0x006d /*!< The function code of WID_VSIE_FRAME for getting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 236 | #define GRP_WLD_IOCTL_SET_VSIE_FRAME GRP_WLD_IOCTL_SET_FUNCTION + 0x006d /*!< The function code of WID_VSIE_FRAME for setting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 237 | #define GRP_WLD_IOCTL_GET_VSIE_INFO_ENABLE GRP_WLD_IOCTL_GET_FUNCTION + 0x006e /*!< The function code of WID_VSIE_INFO_ENABLE for getting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 238 | #define GRP_WLD_IOCTL_SET_VSIE_INFO_ENABLE GRP_WLD_IOCTL_SET_FUNCTION + 0x006e /*!< The function code of WID_VSIE_INFO_ENABLE for setting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 239 | #define GRP_WLD_IOCTL_GET_VSIE_RX_OUI GRP_WLD_IOCTL_GET_FUNCTION + 0x006f /*!< The function code of WID_VSIE_RX_OUI for getting. The parameter type is "grp_u32". */ |
| tousaki | 0:7683dafa8c1a | 240 | #define GRP_WLD_IOCTL_SET_VSIE_RX_OUI GRP_WLD_IOCTL_SET_FUNCTION + 0x006f /*!< The function code of WID_VSIE_RX_OUI for setting. The parameter type is "grp_u32". */ |
| tousaki | 0:7683dafa8c1a | 241 | #define GRP_WLD_IOCTL_GET_VSIE_TX_DATA GRP_WLD_IOCTL_GET_FUNCTION + 0x0070 /*!< The function code of WID_VSIE_TX_DATA for getting. The parameter type is "grp_wld_byte_array". */ |
| tousaki | 0:7683dafa8c1a | 242 | #define GRP_WLD_IOCTL_SET_VSIE_TX_DATA GRP_WLD_IOCTL_SET_FUNCTION + 0x0070 /*!< The function code of WID_VSIE_TX_DATA for setting. The parameter type is "grp_wld_byte_array". */ |
| tousaki | 0:7683dafa8c1a | 243 | #define GRP_WLD_IOCTL_GET_VSIE_RX_DATA GRP_WLD_IOCTL_GET_FUNCTION + 0x0071 /*!< The function code of WID_VSIE_RX_DATA for getting. The parameter type is "grp_wld_byte_array". */ |
| tousaki | 0:7683dafa8c1a | 244 | #define GRP_WLD_IOCTL_GET_DTIM_PERIOD GRP_WLD_IOCTL_GET_FUNCTION + 0x0072 /*!< The function code of WID_DTIM_PERIOD for getting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 245 | #define GRP_WLD_IOCTL_SET_DTIM_PERIOD GRP_WLD_IOCTL_SET_FUNCTION + 0x0072 /*!< The function code of WID_DTIM_PERIOD for setting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 246 | #define GRP_WLD_IOCTL_SET_DISCONNECT GRP_WLD_IOCTL_SET_FUNCTION + 0x0073 /*!< The function code of WID_DISCONNECT for setting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 247 | #define GRP_WLD_IOCTL_GET_REKEY_PERIOD GRP_WLD_IOCTL_GET_FUNCTION + 0x0074 /*!< The function code of WID_REKEY_PERIOD for getting. The parameter type is "grp_u32". */ |
| tousaki | 0:7683dafa8c1a | 248 | #define GRP_WLD_IOCTL_SET_REKEY_PERIOD GRP_WLD_IOCTL_SET_FUNCTION + 0x0074 /*!< The function code of WID_REKEY_PERIOD for setting. The parameter type is "grp_u32". */ |
| tousaki | 0:7683dafa8c1a | 249 | #define GRP_WLD_IOCTL_GET_WPS_PASS_ID GRP_WLD_IOCTL_GET_FUNCTION + 0x0075 /*!< The function code of WID_WPS_PASS_ID for getting. The parameter type is "grp_u16". */ |
| tousaki | 0:7683dafa8c1a | 250 | #define GRP_WLD_IOCTL_SET_WPS_PASS_ID GRP_WLD_IOCTL_SET_FUNCTION + 0x0075 /*!< The function code of WID_WPS_PASS_ID for setting. The parameter type is "grp_u16". */ |
| tousaki | 0:7683dafa8c1a | 251 | #define GRP_WLD_IOCTL_GET_REKEY_POLICY GRP_WLD_IOCTL_GET_FUNCTION + 0x0076 /*!< The function code of WID_REKEY_POLICY for getting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 252 | #define GRP_WLD_IOCTL_SET_REKEY_POLICY GRP_WLD_IOCTL_SET_FUNCTION + 0x0076 /*!< The function code of WID_REKEY_POLICY for setting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 253 | #define GRP_WLD_IOCTL_GET_CONNECTED_STA_LIST GRP_WLD_IOCTL_GET_FUNCTION + 0x0077 /*!< The function code of WID_CONNECTED_STA_LIST for getting. The parameter type is "grp_wld_connected_sta_list_info". */ |
| tousaki | 0:7683dafa8c1a | 254 | |
| tousaki | 0:7683dafa8c1a | 255 | #define GRP_WLD_IOCTL_SET_JOIN_REQUEST GRP_WLD_IOCTL_SET_FUNCTION + 0x0902 /*!< The function code of WID_JOIN_REQ for setting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 256 | #define GRP_WLD_IOCTL_SET_START_SCAN_REQ GRP_WLD_IOCTL_SET_FUNCTION + 0x0905 /*!< The function code of WID_START_SCAN_REQ for setting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 257 | #define GRP_WLD_IOCTL_GET_CHECK_SCAN_END GRP_WLD_IOCTL_GET_FUNCTION + 0x0906 /*!< The function code of WID_START_SCAN_REQ for getting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 258 | #define GRP_WLD_IOCTL_GET_SITE_SURVEY GRP_WLD_IOCTL_GET_FUNCTION + 0x0907 /*!< The function code of WID_SITE_SURVEY for getting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 259 | #define GRP_WLD_IOCTL_SET_SITE_SURVEY GRP_WLD_IOCTL_SET_FUNCTION + 0x0907 /*!< The function code of WID_SITE_SURVEY for setting. The parameter type is "grp_u8". */ |
| tousaki | 0:7683dafa8c1a | 260 | /*@}*/ |
| tousaki | 0:7683dafa8c1a | 261 | |
| tousaki | 0:7683dafa8c1a | 262 | /**** STRUCTURE DEFINES *************************************************************************/ |
| tousaki | 0:7683dafa8c1a | 263 | |
| tousaki | 0:7683dafa8c1a | 264 | /** Byte array structure |
| tousaki | 0:7683dafa8c1a | 265 | * |
| tousaki | 0:7683dafa8c1a | 266 | */ |
| tousaki | 0:7683dafa8c1a | 267 | typedef struct GRP_WLD_BYTE_ARRAY_T { /* Byte array structure */ |
| tousaki | 0:7683dafa8c1a | 268 | grp_u32 ulSize; /*!< Array size */ |
| tousaki | 0:7683dafa8c1a | 269 | grp_u8 *pucData; /*!< Byte array buffer pointer */ |
| tousaki | 0:7683dafa8c1a | 270 | } grp_wld_byte_array; |
| tousaki | 0:7683dafa8c1a | 271 | |
| tousaki | 0:7683dafa8c1a | 272 | /** Device strings structure |
| tousaki | 0:7683dafa8c1a | 273 | * |
| tousaki | 0:7683dafa8c1a | 274 | */ |
| tousaki | 0:7683dafa8c1a | 275 | typedef struct GRP_WLD_DEV_STRINGS_T { /* Device strings structure */ |
| tousaki | 0:7683dafa8c1a | 276 | grp_u32 ulFirmwareVersionSize; /*!< buffer size */ |
| tousaki | 0:7683dafa8c1a | 277 | grp_u8 *pucFirmwareVersionBuf; /*!< buffer pointer */ |
| tousaki | 0:7683dafa8c1a | 278 | grp_u32 ulSerialNumberSize; /*!< buffer size */ |
| tousaki | 0:7683dafa8c1a | 279 | grp_u8 *pucSerialNumberBuf; /*!< buffer pointer */ |
| tousaki | 0:7683dafa8c1a | 280 | } grp_wld_dev_strings; |
| tousaki | 0:7683dafa8c1a | 281 | |
| tousaki | 0:7683dafa8c1a | 282 | /** Site survey result structure |
| tousaki | 0:7683dafa8c1a | 283 | * |
| tousaki | 0:7683dafa8c1a | 284 | */ |
| tousaki | 0:7683dafa8c1a | 285 | typedef struct GRP_WLD_SITE_SURVEY_RESULT_T { /* Site survey result structure */ |
| tousaki | 0:7683dafa8c1a | 286 | grp_u8 aucSsid[GRP_WLD_SSID_SIZE + 1]; /*!< SSID */ |
| tousaki | 0:7683dafa8c1a | 287 | grp_u8 ucBssType; /*!< BSS type */ |
| tousaki | 0:7683dafa8c1a | 288 | grp_u8 ucChannel; /*!< Channel */ |
| tousaki | 0:7683dafa8c1a | 289 | grp_u8 ucSecurity; /*!< Security */ |
| tousaki | 0:7683dafa8c1a | 290 | grp_u8 aucBssid[GRP_WLD_BSSID_SIZE]; /*!< BSSID */ |
| tousaki | 0:7683dafa8c1a | 291 | grp_u8 ucRxPower; /*!< Rx power */ |
| tousaki | 0:7683dafa8c1a | 292 | } grp_wld_site_survey_result; |
| tousaki | 0:7683dafa8c1a | 293 | |
| tousaki | 0:7683dafa8c1a | 294 | /** Site survey result array structure |
| tousaki | 0:7683dafa8c1a | 295 | * |
| tousaki | 0:7683dafa8c1a | 296 | */ |
| tousaki | 0:7683dafa8c1a | 297 | typedef struct GRP_WLD_SITE_SURVEY_RESULT_ARRAY_T { /* Site survey result array structure */ |
| tousaki | 0:7683dafa8c1a | 298 | grp_si iCnt; /*!< Valid data count */ |
| tousaki | 0:7683dafa8c1a | 299 | grp_wld_site_survey_result atResult[GRP_WLD_IOCTL_SITE_SURVEY_RESULT_MAX]; /*!< result */ |
| tousaki | 0:7683dafa8c1a | 300 | } grp_wld_site_survey_result_array; |
| tousaki | 0:7683dafa8c1a | 301 | |
| tousaki | 0:7683dafa8c1a | 302 | /** WPS cred list structure |
| tousaki | 0:7683dafa8c1a | 303 | * |
| tousaki | 0:7683dafa8c1a | 304 | */ |
| tousaki | 0:7683dafa8c1a | 305 | typedef struct GRP_WLD_WPS_CRED_T { /* WPS cred list structure */ |
| tousaki | 0:7683dafa8c1a | 306 | grp_u8 aucSSID[GRP_WLD_SSID_SIZE+1]; /*!< SSID */ |
| tousaki | 0:7683dafa8c1a | 307 | grp_u8 ucAuthType; /*!< auth type */ |
| tousaki | 0:7683dafa8c1a | 308 | grp_u8 uc11imode; /*!< 11i mode */ |
| tousaki | 0:7683dafa8c1a | 309 | grp_u8 ucWEPKeyId; /*!< WEP key ID */ |
| tousaki | 0:7683dafa8c1a | 310 | grp_u8 aucWEPKey[GRP_WLD_WEP_KEY_SIZE_128+1]; /*!< WEP key value */ |
| tousaki | 0:7683dafa8c1a | 311 | grp_u8 ucWEPKeyLen; /*!< WEP key length */ |
| tousaki | 0:7683dafa8c1a | 312 | grp_u8 aucPSK[64+1]; /*!< PSK */ |
| tousaki | 0:7683dafa8c1a | 313 | grp_u8 ucPSKLen; /*!< PSK Length */ |
| tousaki | 0:7683dafa8c1a | 314 | grp_u8 aucBSSID[GRP_WLD_BSSID_SIZE]; /*!< BSSID */ |
| tousaki | 0:7683dafa8c1a | 315 | } grp_wld_wps_cred; |
| tousaki | 0:7683dafa8c1a | 316 | |
| tousaki | 0:7683dafa8c1a | 317 | /** WPS cred list structure |
| tousaki | 0:7683dafa8c1a | 318 | * |
| tousaki | 0:7683dafa8c1a | 319 | */ |
| tousaki | 0:7683dafa8c1a | 320 | typedef struct GRP_WLD_WPS_CRED_LIST_T { /* WPS cred list structure */ |
| tousaki | 0:7683dafa8c1a | 321 | grp_si iNum; /*!< Cred info number */ |
| tousaki | 0:7683dafa8c1a | 322 | grp_wld_wps_cred *ptCredBuf; /*!< Cred info buffer */ |
| tousaki | 0:7683dafa8c1a | 323 | } grp_wld_wps_cred_list; |
| tousaki | 0:7683dafa8c1a | 324 | |
| tousaki | 0:7683dafa8c1a | 325 | /** STA join information |
| tousaki | 0:7683dafa8c1a | 326 | * |
| tousaki | 0:7683dafa8c1a | 327 | */ |
| tousaki | 0:7683dafa8c1a | 328 | typedef struct GRP_WLD_STA_JOIN_INFO_T { /* STA join information */ |
| tousaki | 0:7683dafa8c1a | 329 | grp_u8 ucAID; /*!< Association ID lower 8bit */ |
| tousaki | 0:7683dafa8c1a | 330 | grp_u8 ucSTAType; /*!< STA type */ |
| tousaki | 0:7683dafa8c1a | 331 | grp_u8 uc11gInfo; /*!< 11g information */ |
| tousaki | 0:7683dafa8c1a | 332 | grp_u8 ucSecInfo; /*!< Security information */ |
| tousaki | 0:7683dafa8c1a | 333 | grp_u16 usWMMInfo; /*!< WMM information */ |
| tousaki | 0:7683dafa8c1a | 334 | grp_u16 us11nInfo; /*!< 11N information */ |
| tousaki | 0:7683dafa8c1a | 335 | grp_u8 aucMacAddress[GRP_WLD_MAC_ADDRESS_SIZE]; |
| tousaki | 0:7683dafa8c1a | 336 | /*!< MAC address */ |
| tousaki | 0:7683dafa8c1a | 337 | } grp_wld_sta_join_info; |
| tousaki | 0:7683dafa8c1a | 338 | |
| tousaki | 0:7683dafa8c1a | 339 | /** Connected Sta list information |
| tousaki | 0:7683dafa8c1a | 340 | * |
| tousaki | 0:7683dafa8c1a | 341 | */ |
| tousaki | 0:7683dafa8c1a | 342 | typedef struct GRP_WLD_CONNECTED_STA_LIST_INFO_T { /* Connected Sta list information */ |
| tousaki | 0:7683dafa8c1a | 343 | grp_si iNum; /*!< Connected sta info number */ |
| tousaki | 0:7683dafa8c1a | 344 | grp_wld_sta_join_info *ptCnctStaBuf; /*!< Connected sta info buffer */ |
| tousaki | 0:7683dafa8c1a | 345 | } grp_wld_connected_sta_list_info; |
| tousaki | 0:7683dafa8c1a | 346 | |
| tousaki | 0:7683dafa8c1a | 347 | #ifdef __cplusplus |
| tousaki | 0:7683dafa8c1a | 348 | } |
| tousaki | 0:7683dafa8c1a | 349 | #endif |
| tousaki | 0:7683dafa8c1a | 350 | |
| tousaki | 0:7683dafa8c1a | 351 | #endif /* _WLANBP3595_H_ */ |
