From 9ede631e766f9a8dd28a625fe173bfa11be7cecb Mon Sep 17 00:00:00 2001 From: Arto Kinnunen Date: Wed, 25 Nov 2020 09:17:20 +0200 Subject: [PATCH] Update EmacTestNetworkStack -Uncomment get_mac_address -Document set_mac_address --- .../tests/TESTS/network/emac/emac_TestNetworkStack.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/connectivity/netsocket/tests/TESTS/network/emac/emac_TestNetworkStack.h b/connectivity/netsocket/tests/TESTS/network/emac/emac_TestNetworkStack.h index f24f5c037d..95eba068a4 100644 --- a/connectivity/netsocket/tests/TESTS/network/emac/emac_TestNetworkStack.h +++ b/connectivity/netsocket/tests/TESTS/network/emac/emac_TestNetworkStack.h @@ -84,8 +84,17 @@ public: * * @return MAC address as "V:W:X:Y:Z" */ - //virtual char *get_mac_address(char *buf, nsapi_size_t buflen); + virtual char *get_mac_address(char *buf, nsapi_size_t buflen); + /** Set MAC address on the network interface + * + * @param mac_addr Buffer containing the MAC address in hexadecimal format. + * @param addr_len Length of provided buffer in bytes (6 or 8) + * @retval NSAPI_ERROR_OK on success + * @retval NSAPI_ERROR_UNSUPPORTED if this feature is not supported + * @retval NSAPI_ERROR_PARAMETER if address is not valid + * @retval NSAPI_ERROR_BUSY if address can't be set. + */ virtual nsapi_error_t set_mac_address(uint8_t *mac_addr, nsapi_size_t addr_len); /** Copies IP address of the network interface to user supplied buffer