NNN50 WIFI_API library
Dependents: NNN50_CE_Test_UDP NNN50_linux_firmware NNN50_SoftAP_HelloWorld NNN50_BLEWIFISensor ... more
This is mbed compatible EthernetInterface lib exclude for Delta DFCM-NNN50 platform.
Additional information and examples can be found in mbed Handbook
Diff: WIFIDevice.h
- Revision:
- 27:617c6acde338
- Parent:
- 25:2008b3bae5ca
- Child:
- 29:86b2de427eab
--- a/WIFIDevice.h Thu Jun 22 01:14:09 2017 +0000 +++ b/WIFIDevice.h Thu Jun 29 04:17:47 2017 +0000 @@ -66,6 +66,21 @@ */ int enableAccessPoint(char* SSID, char* PW, char* AP_ip = "192.168.1.1", uint8_t secType=M2M_WIFI_SEC_WEP, uint8_t channel=1); + /** Set TX power level, must be called after the EthernetInterface initialization and before any connection request and can't be changed in runtime. + * \param power_level can be configurable as following + TX_PWR_HIGH < High power level > + TX_PWR_MED < Med power level > + TX_PWR_LOW < Low power level > + * \return 0 on success, a negative number on failure + */ + int setTXPower(uint8_t power_level); + + /** Set the PPA (Pre-Power Amplifier) gain, must be called after the EthernetInterface initialization + * \param gain_dB is only configable among 3, 6, 9 dB, default is 9 dB + * \return 0 on success, a negative number on failure + */ + int setPPAGain(uint8_t gain_dB); + /** Erase a 4KB sector of embeeded flash. * Flash memory will be erased in groups of 4KB sector. * \param address range from 0x00 to 0x3F000 (must be a multiple of 0x1000). @@ -98,3 +113,4 @@ void RF_Switch_WIFI_unlock(void); #endif /* WIFIDEVICE_H_ */ +