WL05 Driver Library – API Documentation

Header image

Main page


§ wl05_read_cfg_from_chip_ini()

int wl05_read_cfg_from_chip_ini ( WL05_HW_Cfg wl05_hw_cfg_ptr,
WL05_Band band,
WL05_Connect_Params wl05_connect_params_ptr,
DevUserDriver *  devdrv,
uint32 *  gateway,
uint8 *  wep128CurrKeyIdx,
uint8 *  wep128KeysTable,
uint8 *  stopped,
char *  ipaddrstr,
char *  netmaskstr,
char *  gatewaystr 
)

Read WL05 parameters from CHIP.INI section [WLAN] and IP configuration.

This function parses any available CHIP.INI parameters in the [WLAN] section, and stores them into the various output parameters that the user may provide. The user may pass a NULL pointer to any of the output parameters, in order to ignore it.

Parameters
[out]wl05_hw_cfg_ptrPointer to a user provided WL05_HW_Cfg structure. Pass a NULL pointer to ignore.
[out]bandPointer to a user provided WL05_Band structure. Pass a NULL pointer to ignore.
[out]wl05_connect_params_ptrPointer to a user provided WL05_Connect_Params structure. Pass a NULL pointer to ignore.
[out]devdrvPointer to a user provided DevUserDriver structure. Pass a NULL pointer to ignore.
[out]gatewayPointer to a user provided 32 bit variable. Pass a NULL pointer to ignore.
[out]wep128CurrKeyIdxPointer to a user provided 8 bit variable. Pass a NULL pointer to ignore.
[out]wep128KeysTablePointer to a user provided string array. The array should be able to hold up to 4 null terminated strings, for each of the 4 WEP keys. Pass a NULL pointer to ignore.
[out]stoppedPointer to a user provided 8 bit variable. Pass a NULL pointer to ignore.
[out]ipaddrstrPointer to a user provided character buffer. The buffer should have a minimum size of 16 bytes. Pass a NULL pointer to ignore.
[out]netmaskstrPointer to a user provided character buffer. The buffer should have a minimum size of 16 bytes. Pass a NULL pointer to ignore.
[out]gatewaystrPointer to a user provided character buffer. The buffer should have a minimum size of 16 bytes. Pass a NULL pointer to ignore.
Returns
  • 0: Success
  • -1: Error
Since
V2.00





Top of page | Main page

Copyright © 2016 Beck IPC GmbH
Generated by Doxygen 1.8.12