This is WlanBP3595 library for STA mode. This library only works with GR-PEACH. We performed the operation check on GR-PEACH E version. Please refer to LICENSE.txt about license of this library.

Fork of WlanBP3595STA by Rohm

Committer:
tousaki
Date:
Tue Nov 22 07:47:43 2016 +0000
Revision:
1:ea0f182b4bac
Parent:
0:d6fcd1e2aebd
supported GCC_ARM

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tousaki 0:d6fcd1e2aebd 1 /****************************************************************************/
tousaki 0:d6fcd1e2aebd 2 /* Copyright (c) 2015 GRAPE SYSTEMS INC. */
tousaki 0:d6fcd1e2aebd 3 /* */
tousaki 0:d6fcd1e2aebd 4 /* Licensed under the Apache License, Version 2.0 (the "License"); */
tousaki 0:d6fcd1e2aebd 5 /* you may not use this file except in compliance with the License. */
tousaki 0:d6fcd1e2aebd 6 /* You may obtain a copy of the License at */
tousaki 0:d6fcd1e2aebd 7 /* */
tousaki 0:d6fcd1e2aebd 8 /* http://www.apache.org/licenses/LICENSE-2.0 */
tousaki 0:d6fcd1e2aebd 9 /* */
tousaki 0:d6fcd1e2aebd 10 /* Unless required by applicable law or agreed to in writing, software */
tousaki 0:d6fcd1e2aebd 11 /* distributed under the License is distributed on an "AS IS" BASIS, */
tousaki 0:d6fcd1e2aebd 12 /* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
tousaki 0:d6fcd1e2aebd 13 /* See the License for the specific language governing permissions and */
tousaki 0:d6fcd1e2aebd 14 /* limitations under the License. */
tousaki 0:d6fcd1e2aebd 15 /* */
tousaki 0:d6fcd1e2aebd 16 /* [Additional license terms] */
tousaki 0:d6fcd1e2aebd 17 /* */
tousaki 0:d6fcd1e2aebd 18 /* This library is free for non-commercial purposes. */
tousaki 0:d6fcd1e2aebd 19 /* To use this commercially, contact us at */
tousaki 0:d6fcd1e2aebd 20 /* */
tousaki 0:d6fcd1e2aebd 21 /* sales@info.grape.co.jp */
tousaki 0:d6fcd1e2aebd 22 /* */
tousaki 0:d6fcd1e2aebd 23 /****************************************************************************/
tousaki 0:d6fcd1e2aebd 24
tousaki 0:d6fcd1e2aebd 25 /** @file
tousaki 0:d6fcd1e2aebd 26 *
tousaki 0:d6fcd1e2aebd 27 * WlanBP3595 library.
tousaki 0:d6fcd1e2aebd 28 * This library only works with GR-PEACH.
tousaki 0:d6fcd1e2aebd 29 *
tousaki 0:d6fcd1e2aebd 30 * @note
tousaki 0:d6fcd1e2aebd 31 * Please refer to ROHM's "Software Development Specs" for the information of WID.
tousaki 0:d6fcd1e2aebd 32 */
tousaki 0:d6fcd1e2aebd 33
tousaki 0:d6fcd1e2aebd 34 #ifndef _WLANBP3595_H_
tousaki 0:d6fcd1e2aebd 35 #define _WLANBP3595_H_
tousaki 0:d6fcd1e2aebd 36
tousaki 0:d6fcd1e2aebd 37 #include "rza1_bp3595_emac.h"
tousaki 0:d6fcd1e2aebd 38 #include "lwip/opt.h"
tousaki 0:d6fcd1e2aebd 39 #include "lwip/pbuf.h"
tousaki 0:d6fcd1e2aebd 40
tousaki 0:d6fcd1e2aebd 41 #ifdef __cplusplus
tousaki 0:d6fcd1e2aebd 42 extern "C" {
tousaki 0:d6fcd1e2aebd 43 #endif
tousaki 0:d6fcd1e2aebd 44
tousaki 0:d6fcd1e2aebd 45 /**** CONSTANT DEFINES **************************************************************************/
tousaki 0:d6fcd1e2aebd 46
tousaki 0:d6fcd1e2aebd 47 /** @name Status of WlanBP3595
tousaki 0:d6fcd1e2aebd 48 *
tousaki 0:d6fcd1e2aebd 49 */
tousaki 0:d6fcd1e2aebd 50 /*@{*/
tousaki 0:d6fcd1e2aebd 51 #define WLAN_BP3595_NONE 0 /*!< BP3595 is not connected, or the firmware is not downloaded */
tousaki 0:d6fcd1e2aebd 52 #define WLAN_BP3595_FW_DL 1 /*!< The firmware is being downloaded */
tousaki 0:d6fcd1e2aebd 53 #define WLAN_BP3595_START 2 /*!< The firmware was downloaded and is working */
tousaki 0:d6fcd1e2aebd 54 /*@}*/
tousaki 0:d6fcd1e2aebd 55
tousaki 0:d6fcd1e2aebd 56 /**** FUNCTION PROTOTYPE & MACRO FUNCTION ******************************************************/
tousaki 0:d6fcd1e2aebd 57
tousaki 0:d6fcd1e2aebd 58 /** Initialize WlanBP3595
tousaki 0:d6fcd1e2aebd 59 *
tousaki 0:d6fcd1e2aebd 60 * @note
tousaki 0:d6fcd1e2aebd 61 * After executing this function, please wait until the state becomes WLAN_BP3595_START.
tousaki 0:d6fcd1e2aebd 62 * You can get the status by WlanBP3595_GetWlanSts().
tousaki 0:d6fcd1e2aebd 63 *
tousaki 0:d6fcd1e2aebd 64 * @param pfnWlanInfoNotication The information callback function
tousaki 0:d6fcd1e2aebd 65 * - 1st param : The message type ('I' or 'N')
tousaki 0:d6fcd1e2aebd 66 * - 2nd param : WID number
tousaki 0:d6fcd1e2aebd 67 * - 3rd param : The data size
tousaki 0:d6fcd1e2aebd 68 * - 4th param : The data buffer
tousaki 0:d6fcd1e2aebd 69 * @retval 0 Success
tousaki 0:d6fcd1e2aebd 70 * @retval "The others" Failure
tousaki 0:d6fcd1e2aebd 71 */
tousaki 0:d6fcd1e2aebd 72 int WlanBP3595_Init(void (*pfnWlanInfoNotication)(uint8_t, uint16_t, uint16_t, uint8_t *));
tousaki 0:d6fcd1e2aebd 73
tousaki 0:d6fcd1e2aebd 74 /** Get the status of WlanBP3595
tousaki 0:d6fcd1e2aebd 75 *
tousaki 0:d6fcd1e2aebd 76 * @retval WLAN_BP3595_NONE BP3595 is not connected, or the firmware is not downloaded
tousaki 0:d6fcd1e2aebd 77 * @retval WLAN_BP3595_FW_DL The firmware is being downloaded
tousaki 0:d6fcd1e2aebd 78 * @retval WLAN_BP3595_START The firmware was downloaded and is working
tousaki 0:d6fcd1e2aebd 79 */
tousaki 0:d6fcd1e2aebd 80 uint32_t WlanBP3595_GetWlanSts(void);
tousaki 0:d6fcd1e2aebd 81
tousaki 0:d6fcd1e2aebd 82 /** Execute WID function
tousaki 0:d6fcd1e2aebd 83 *
tousaki 0:d6fcd1e2aebd 84 * @param ulFunc A function number
tousaki 0:d6fcd1e2aebd 85 * @param pvParam The data buffer (the parameter)
tousaki 0:d6fcd1e2aebd 86 * @retval 0 Success
tousaki 0:d6fcd1e2aebd 87 * @retval "The others" Failure
tousaki 0:d6fcd1e2aebd 88 */
tousaki 0:d6fcd1e2aebd 89 int WlanBP3595_Ioctl(uint32_t ulFunc, void *pvParam);
tousaki 0:d6fcd1e2aebd 90
tousaki 0:d6fcd1e2aebd 91 /** Output an ethernet frame
tousaki 0:d6fcd1e2aebd 92 *
tousaki 0:d6fcd1e2aebd 93 * @note
tousaki 0:d6fcd1e2aebd 94 * This function is used in EthernetInterface driver.
tousaki 0:d6fcd1e2aebd 95 *
tousaki 0:d6fcd1e2aebd 96 * @param p A pbuf to output
tousaki 0:d6fcd1e2aebd 97 * @retval 0 Success
tousaki 0:d6fcd1e2aebd 98 * @retval "The others" Failure
tousaki 0:d6fcd1e2aebd 99 */
tousaki 0:d6fcd1e2aebd 100 int WlanBP3595_Output(struct pbuf *p);
tousaki 0:d6fcd1e2aebd 101
tousaki 0:d6fcd1e2aebd 102 /** Enable receiving
tousaki 0:d6fcd1e2aebd 103 *
tousaki 0:d6fcd1e2aebd 104 * @note
tousaki 0:d6fcd1e2aebd 105 * This function is used in EthernetInterface driver.
tousaki 0:d6fcd1e2aebd 106 */
tousaki 0:d6fcd1e2aebd 107 void WlanBP3595_RecvEnable(void);
tousaki 0:d6fcd1e2aebd 108
tousaki 0:d6fcd1e2aebd 109 /** Disable receiving
tousaki 0:d6fcd1e2aebd 110 *
tousaki 0:d6fcd1e2aebd 111 * @note
tousaki 0:d6fcd1e2aebd 112 * This function is used in EthernetInterface driver.
tousaki 0:d6fcd1e2aebd 113 */
tousaki 0:d6fcd1e2aebd 114 void WlanBP3595_RecvDisable(void);
tousaki 0:d6fcd1e2aebd 115
tousaki 0:d6fcd1e2aebd 116 /** @name Macro Function
tousaki 0:d6fcd1e2aebd 117 *
tousaki 0:d6fcd1e2aebd 118 */
tousaki 0:d6fcd1e2aebd 119 /*@{*/
tousaki 0:d6fcd1e2aebd 120
tousaki 0:d6fcd1e2aebd 121 /** Notify the EthernetInterface driver that WLAN was connected
tousaki 0:d6fcd1e2aebd 122 *
tousaki 0:d6fcd1e2aebd 123 * When WLAN was connected,
tousaki 0:d6fcd1e2aebd 124 * please call this macro function from your application program.
tousaki 0:d6fcd1e2aebd 125 * The types of the argument and the return value are "void".
tousaki 0:d6fcd1e2aebd 126 * You can know the change of the connection state by the information callback.
tousaki 0:d6fcd1e2aebd 127 *
tousaki 0:d6fcd1e2aebd 128 * @note
tousaki 0:d6fcd1e2aebd 129 * When this function is called before executing EthernetInterface::init(), this function does nothing.
tousaki 0:d6fcd1e2aebd 130 * If you use WlanBP3595_Disconnected() in a different thread, please perform exclusive control.
tousaki 0:d6fcd1e2aebd 131 */
tousaki 0:d6fcd1e2aebd 132 #define WlanBP3595_Connected() rza1_bp3595_connected()
tousaki 0:d6fcd1e2aebd 133
tousaki 0:d6fcd1e2aebd 134 /** Notify the EthernetInterface driver that WLAN was disconnected
tousaki 0:d6fcd1e2aebd 135 *
tousaki 0:d6fcd1e2aebd 136 * When WLAN was disconnected,
tousaki 0:d6fcd1e2aebd 137 * please call this macro function from your application program.
tousaki 0:d6fcd1e2aebd 138 * The types of the argument and the return value are "void".
tousaki 0:d6fcd1e2aebd 139 * You can know the change of the connection state by the information callback.
tousaki 0:d6fcd1e2aebd 140 *
tousaki 0:d6fcd1e2aebd 141 * @note
tousaki 0:d6fcd1e2aebd 142 * When this function is called before executing EthernetInterface::init(), this function does nothing.
tousaki 0:d6fcd1e2aebd 143 * If you use WlanBP3595_Connected() in a different thread, please perform exclusive control.
tousaki 0:d6fcd1e2aebd 144 */
tousaki 0:d6fcd1e2aebd 145 #define WlanBP3595_Disconnected() rza1_bp3595_disconnected()
tousaki 0:d6fcd1e2aebd 146
tousaki 0:d6fcd1e2aebd 147 /*@}*/
tousaki 0:d6fcd1e2aebd 148
tousaki 0:d6fcd1e2aebd 149 /**** TYPE DEFINES ******************************************************************************/
tousaki 0:d6fcd1e2aebd 150 typedef unsigned int grp_ui;
tousaki 0:d6fcd1e2aebd 151 typedef signed int grp_si;
tousaki 0:d6fcd1e2aebd 152
tousaki 0:d6fcd1e2aebd 153 typedef unsigned long grp_u32;
tousaki 0:d6fcd1e2aebd 154 typedef signed long grp_s32;
tousaki 0:d6fcd1e2aebd 155
tousaki 0:d6fcd1e2aebd 156 typedef unsigned short grp_u16;
tousaki 0:d6fcd1e2aebd 157 typedef signed short grp_s16;
tousaki 0:d6fcd1e2aebd 158
tousaki 0:d6fcd1e2aebd 159 typedef unsigned char grp_u8;
tousaki 0:d6fcd1e2aebd 160 typedef signed char grp_s8;
tousaki 0:d6fcd1e2aebd 161
tousaki 0:d6fcd1e2aebd 162 /**** SIZE DEFINES ******************************************************************************/
tousaki 0:d6fcd1e2aebd 163 #define GRP_WLD_SSID_SIZE 32
tousaki 0:d6fcd1e2aebd 164 #define GRP_WLD_BSSID_SIZE 6
tousaki 0:d6fcd1e2aebd 165 #define GRP_WLD_MAC_ADDRESS_SIZE 6
tousaki 0:d6fcd1e2aebd 166 #define GRP_WLD_WEP_KEY_SIZE_128 13
tousaki 0:d6fcd1e2aebd 167
tousaki 0:d6fcd1e2aebd 168 /**** IOCTL FUNCTION PARAMETER DEFINES **********************************************************/
tousaki 0:d6fcd1e2aebd 169 #define GRP_WLD_IOCTL_SITE_SURVEY_RESULT_MAX 8
tousaki 0:d6fcd1e2aebd 170
tousaki 0:d6fcd1e2aebd 171 /**** IOCTL FUNCTION BASE NUMBER DEFINES ********************************************************/
tousaki 0:d6fcd1e2aebd 172 #define GRP_WLD_IOCTL_FUNCTION_KIND_MASK 0xc000
tousaki 0:d6fcd1e2aebd 173 #define GRP_WLD_IOCTL_GET_FUNCTION 0x8000
tousaki 0:d6fcd1e2aebd 174 #define GRP_WLD_IOCTL_SET_FUNCTION 0x4000
tousaki 0:d6fcd1e2aebd 175
tousaki 0:d6fcd1e2aebd 176 /**** IOCTL FUNCTION NUMBER DEFINES *************************************************************/
tousaki 0:d6fcd1e2aebd 177
tousaki 0:d6fcd1e2aebd 178 /** @name Function code
tousaki 0:d6fcd1e2aebd 179 *
tousaki 0:d6fcd1e2aebd 180 */
tousaki 0:d6fcd1e2aebd 181 /*@{*/
tousaki 0:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 195 #define GRP_WLD_IOCTL_GET_POWER_MANAGEMENT GRP_WLD_IOCTL_GET_FUNCTION + 0x0010
tousaki 0:d6fcd1e2aebd 196 #define GRP_WLD_IOCTL_SET_POWER_MANAGEMENT GRP_WLD_IOCTL_SET_FUNCTION + 0x0010
tousaki 0:d6fcd1e2aebd 197 #define GRP_WLD_IOCTL_GET_POWER_SAVE GRP_WLD_IOCTL_GET_FUNCTION + 0x0011
tousaki 0:d6fcd1e2aebd 198 #define GRP_WLD_IOCTL_SET_POWER_SAVE GRP_WLD_IOCTL_SET_FUNCTION + 0x0011
tousaki 0:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 234
tousaki 0:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 254
tousaki 0:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 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:d6fcd1e2aebd 260 /*@}*/
tousaki 0:d6fcd1e2aebd 261
tousaki 0:d6fcd1e2aebd 262 /**** STRUCTURE DEFINES *************************************************************************/
tousaki 0:d6fcd1e2aebd 263
tousaki 0:d6fcd1e2aebd 264 /** Byte array structure
tousaki 0:d6fcd1e2aebd 265 *
tousaki 0:d6fcd1e2aebd 266 */
tousaki 0:d6fcd1e2aebd 267 typedef struct GRP_WLD_BYTE_ARRAY_T { /* Byte array structure */
tousaki 0:d6fcd1e2aebd 268 grp_u32 ulSize; /*!< Array size */
tousaki 0:d6fcd1e2aebd 269 grp_u8 *pucData; /*!< Byte array buffer pointer */
tousaki 0:d6fcd1e2aebd 270 } grp_wld_byte_array;
tousaki 0:d6fcd1e2aebd 271
tousaki 0:d6fcd1e2aebd 272 /** Device strings structure
tousaki 0:d6fcd1e2aebd 273 *
tousaki 0:d6fcd1e2aebd 274 */
tousaki 0:d6fcd1e2aebd 275 typedef struct GRP_WLD_DEV_STRINGS_T { /* Device strings structure */
tousaki 0:d6fcd1e2aebd 276 grp_u32 ulFirmwareVersionSize; /*!< buffer size */
tousaki 0:d6fcd1e2aebd 277 grp_u8 *pucFirmwareVersionBuf; /*!< buffer pointer */
tousaki 0:d6fcd1e2aebd 278 grp_u32 ulSerialNumberSize; /*!< buffer size */
tousaki 0:d6fcd1e2aebd 279 grp_u8 *pucSerialNumberBuf; /*!< buffer pointer */
tousaki 0:d6fcd1e2aebd 280 } grp_wld_dev_strings;
tousaki 0:d6fcd1e2aebd 281
tousaki 0:d6fcd1e2aebd 282 /** Site survey result structure
tousaki 0:d6fcd1e2aebd 283 *
tousaki 0:d6fcd1e2aebd 284 */
tousaki 0:d6fcd1e2aebd 285 typedef struct GRP_WLD_SITE_SURVEY_RESULT_T { /* Site survey result structure */
tousaki 0:d6fcd1e2aebd 286 grp_u8 aucSsid[GRP_WLD_SSID_SIZE + 1]; /*!< SSID */
tousaki 0:d6fcd1e2aebd 287 grp_u8 ucBssType; /*!< BSS type */
tousaki 0:d6fcd1e2aebd 288 grp_u8 ucChannel; /*!< Channel */
tousaki 0:d6fcd1e2aebd 289 grp_u8 ucSecurity; /*!< Security */
tousaki 0:d6fcd1e2aebd 290 grp_u8 aucBssid[GRP_WLD_BSSID_SIZE]; /*!< BSSID */
tousaki 0:d6fcd1e2aebd 291 grp_u8 ucRxPower; /*!< Rx power */
tousaki 0:d6fcd1e2aebd 292 } grp_wld_site_survey_result;
tousaki 0:d6fcd1e2aebd 293
tousaki 0:d6fcd1e2aebd 294 /** Site survey result array structure
tousaki 0:d6fcd1e2aebd 295 *
tousaki 0:d6fcd1e2aebd 296 */
tousaki 0:d6fcd1e2aebd 297 typedef struct GRP_WLD_SITE_SURVEY_RESULT_ARRAY_T { /* Site survey result array structure */
tousaki 0:d6fcd1e2aebd 298 grp_si iCnt; /*!< Valid data count */
tousaki 0:d6fcd1e2aebd 299 grp_wld_site_survey_result atResult[GRP_WLD_IOCTL_SITE_SURVEY_RESULT_MAX]; /*!< result */
tousaki 0:d6fcd1e2aebd 300 } grp_wld_site_survey_result_array;
tousaki 0:d6fcd1e2aebd 301
tousaki 0:d6fcd1e2aebd 302 /** WPS cred list structure
tousaki 0:d6fcd1e2aebd 303 *
tousaki 0:d6fcd1e2aebd 304 */
tousaki 0:d6fcd1e2aebd 305 typedef struct GRP_WLD_WPS_CRED_T { /* WPS cred list structure */
tousaki 0:d6fcd1e2aebd 306 grp_u8 aucSSID[GRP_WLD_SSID_SIZE+1]; /*!< SSID */
tousaki 0:d6fcd1e2aebd 307 grp_u8 ucAuthType; /*!< auth type */
tousaki 0:d6fcd1e2aebd 308 grp_u8 uc11imode; /*!< 11i mode */
tousaki 0:d6fcd1e2aebd 309 grp_u8 ucWEPKeyId; /*!< WEP key ID */
tousaki 0:d6fcd1e2aebd 310 grp_u8 aucWEPKey[GRP_WLD_WEP_KEY_SIZE_128+1]; /*!< WEP key value */
tousaki 0:d6fcd1e2aebd 311 grp_u8 ucWEPKeyLen; /*!< WEP key length */
tousaki 0:d6fcd1e2aebd 312 grp_u8 aucPSK[64+1]; /*!< PSK */
tousaki 0:d6fcd1e2aebd 313 grp_u8 ucPSKLen; /*!< PSK Length */
tousaki 0:d6fcd1e2aebd 314 grp_u8 aucBSSID[GRP_WLD_BSSID_SIZE]; /*!< BSSID */
tousaki 0:d6fcd1e2aebd 315 } grp_wld_wps_cred;
tousaki 0:d6fcd1e2aebd 316
tousaki 0:d6fcd1e2aebd 317 /** WPS cred list structure
tousaki 0:d6fcd1e2aebd 318 *
tousaki 0:d6fcd1e2aebd 319 */
tousaki 0:d6fcd1e2aebd 320 typedef struct GRP_WLD_WPS_CRED_LIST_T { /* WPS cred list structure */
tousaki 0:d6fcd1e2aebd 321 grp_si iNum; /*!< Cred info number */
tousaki 0:d6fcd1e2aebd 322 grp_wld_wps_cred *ptCredBuf; /*!< Cred info buffer */
tousaki 0:d6fcd1e2aebd 323 } grp_wld_wps_cred_list;
tousaki 0:d6fcd1e2aebd 324
tousaki 0:d6fcd1e2aebd 325 /** STA join information
tousaki 0:d6fcd1e2aebd 326 *
tousaki 0:d6fcd1e2aebd 327 */
tousaki 0:d6fcd1e2aebd 328 typedef struct GRP_WLD_STA_JOIN_INFO_T { /* STA join information */
tousaki 0:d6fcd1e2aebd 329 grp_u8 ucAID; /*!< Association ID lower 8bit */
tousaki 0:d6fcd1e2aebd 330 grp_u8 ucSTAType; /*!< STA type */
tousaki 0:d6fcd1e2aebd 331 grp_u8 uc11gInfo; /*!< 11g information */
tousaki 0:d6fcd1e2aebd 332 grp_u8 ucSecInfo; /*!< Security information */
tousaki 0:d6fcd1e2aebd 333 grp_u16 usWMMInfo; /*!< WMM information */
tousaki 0:d6fcd1e2aebd 334 grp_u16 us11nInfo; /*!< 11N information */
tousaki 0:d6fcd1e2aebd 335 grp_u8 aucMacAddress[GRP_WLD_MAC_ADDRESS_SIZE];
tousaki 0:d6fcd1e2aebd 336 /*!< MAC address */
tousaki 0:d6fcd1e2aebd 337 } grp_wld_sta_join_info;
tousaki 0:d6fcd1e2aebd 338
tousaki 0:d6fcd1e2aebd 339 /** Connected Sta list information
tousaki 0:d6fcd1e2aebd 340 *
tousaki 0:d6fcd1e2aebd 341 */
tousaki 0:d6fcd1e2aebd 342 typedef struct GRP_WLD_CONNECTED_STA_LIST_INFO_T { /* Connected Sta list information */
tousaki 0:d6fcd1e2aebd 343 grp_si iNum; /*!< Connected sta info number */
tousaki 0:d6fcd1e2aebd 344 grp_wld_sta_join_info *ptCnctStaBuf; /*!< Connected sta info buffer */
tousaki 0:d6fcd1e2aebd 345 } grp_wld_connected_sta_list_info;
tousaki 0:d6fcd1e2aebd 346
tousaki 0:d6fcd1e2aebd 347 #ifdef __cplusplus
tousaki 0:d6fcd1e2aebd 348 }
tousaki 0:d6fcd1e2aebd 349 #endif
tousaki 0:d6fcd1e2aebd 350
tousaki 0:d6fcd1e2aebd 351 #endif /* _WLANBP3595_H_ */