Skip to content

Commit 743ba1a

Browse files
author
Arto Kinnunen
committed
Update EmacTestNetworkStack
-Uncomment get_mac_address -Document set_mac_address
1 parent db4efc8 commit 743ba1a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

TESTS/network/emac/emac_TestNetworkStack.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,17 @@ class EmacTestNetworkStack : public OnboardNetworkStack, private mbed::NonCopyab
8484
*
8585
* @return MAC address as "V:W:X:Y:Z"
8686
*/
87-
//virtual char *get_mac_address(char *buf, nsapi_size_t buflen);
87+
virtual char *get_mac_address(char *buf, nsapi_size_t buflen);
8888

89+
/** Set MAC address on the network interface
90+
*
91+
* @param mac_addr Buffer containing the MAC address in hexadecimal format.
92+
* @param addr_len Length of provided buffer in bytes (6 or 8)
93+
* @retval NSAPI_ERROR_OK on success
94+
* @retval NSAPI_ERROR_UNSUPPORTED if this feature is not supported
95+
* @retval NSAPI_ERROR_PARAMETER if address is not valid
96+
* @retval NSAPI_ERROR_BUSY if address can't be set.
97+
*/
8998
virtual nsapi_error_t set_mac_address(uint8_t *mac_addr, nsapi_size_t addr_len);
9099

91100
/** Copies IP address of the network interface to user supplied buffer

0 commit comments

Comments
 (0)