LWIPBP3595Interface library for mbed-os.
Dependents: LWIPBP3595Interface_STA_for_mbed-os
Fork of LWIPBP3595Interface by
wifi_arch.h@4:b49b4b36aaa4, 2016-10-28 (annotated)
- Committer:
- dkato
- Date:
- Fri Oct 28 06:27:14 2016 +0000
- Revision:
- 4:b49b4b36aaa4
- Parent:
- 0:a933851e5d22
Support the API set_channel(), get_rssi(), and scan().
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tousaki | 0:a933851e5d22 | 1 | /* wifi_arch.h */ |
tousaki | 0:a933851e5d22 | 2 | /* Copyright (C) 2016 Grape Systems, Inc. */ |
tousaki | 0:a933851e5d22 | 3 | /* The base file is eth_arch.h. */ |
tousaki | 0:a933851e5d22 | 4 | |
tousaki | 0:a933851e5d22 | 5 | /* eth_arch.h */ |
tousaki | 0:a933851e5d22 | 6 | /* Copyright (C) 2012 mbed.org, MIT License |
tousaki | 0:a933851e5d22 | 7 | * |
tousaki | 0:a933851e5d22 | 8 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software |
tousaki | 0:a933851e5d22 | 9 | * and associated documentation files (the "Software"), to deal in the Software without restriction, |
tousaki | 0:a933851e5d22 | 10 | * including without limitation the rights to use, copy, modify, merge, publish, distribute, |
tousaki | 0:a933851e5d22 | 11 | * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is |
tousaki | 0:a933851e5d22 | 12 | * furnished to do so, subject to the following conditions: |
tousaki | 0:a933851e5d22 | 13 | * |
tousaki | 0:a933851e5d22 | 14 | * The above copyright notice and this permission notice shall be included in all copies or |
tousaki | 0:a933851e5d22 | 15 | * substantial portions of the Software. |
tousaki | 0:a933851e5d22 | 16 | * |
tousaki | 0:a933851e5d22 | 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING |
tousaki | 0:a933851e5d22 | 18 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
tousaki | 0:a933851e5d22 | 19 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
tousaki | 0:a933851e5d22 | 20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
tousaki | 0:a933851e5d22 | 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
tousaki | 0:a933851e5d22 | 22 | */ |
tousaki | 0:a933851e5d22 | 23 | |
tousaki | 0:a933851e5d22 | 24 | // Architecture specific WiFi interface |
tousaki | 0:a933851e5d22 | 25 | // Must be implemented by each target |
tousaki | 0:a933851e5d22 | 26 | |
tousaki | 0:a933851e5d22 | 27 | #ifndef WIFIARCH_H_ |
tousaki | 0:a933851e5d22 | 28 | #define WIFIARCH_H_ |
tousaki | 0:a933851e5d22 | 29 | |
tousaki | 0:a933851e5d22 | 30 | #include "lwip/netif.h" |
tousaki | 0:a933851e5d22 | 31 | |
tousaki | 0:a933851e5d22 | 32 | #ifdef __cplusplus |
tousaki | 0:a933851e5d22 | 33 | extern "C" { |
tousaki | 0:a933851e5d22 | 34 | #endif |
tousaki | 0:a933851e5d22 | 35 | void wifi_arch_enable_interrupts(void); |
tousaki | 0:a933851e5d22 | 36 | void wifi_arch_disable_interrupts(void); |
tousaki | 0:a933851e5d22 | 37 | err_t wifi_arch_enetif_init(struct netif *netif); |
tousaki | 0:a933851e5d22 | 38 | |
tousaki | 0:a933851e5d22 | 39 | #ifdef __cplusplus |
tousaki | 0:a933851e5d22 | 40 | } |
tousaki | 0:a933851e5d22 | 41 | #endif |
tousaki | 0:a933851e5d22 | 42 | |
tousaki | 0:a933851e5d22 | 43 | #endif // #ifndef WIFIARCH_H_ |
tousaki | 0:a933851e5d22 | 44 | |
dkato | 4:b49b4b36aaa4 | 45 |