Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
NanostackPhy.h
00001 /* 00002 * Copyright (c) 2016 ARM Limited. All rights reserved. 00003 */ 00004 00005 #ifndef NANOSTACK_PHY_H_ 00006 #define NANOSTACK_PHY_H_ 00007 00008 class NanostackPhy { 00009 public: 00010 00011 /** Register this physical interface with Nanostack 00012 * 00013 * @return Device driver ID or a negative error 00014 * code on failure 00015 */ 00016 virtual int8_t phy_register() = 0; 00017 00018 /** Read the mac address of this physical interface 00019 * 00020 * Note - some devices do not have a mac address 00021 * in hardware. 00022 */ 00023 virtual void get_mac_address(uint8_t *mac) = 0; 00024 00025 /** Set the mac address of this physical interface 00026 * 00027 */ 00028 virtual void set_mac_address(uint8_t *mac) = 0; 00029 00030 protected: 00031 NanostackPhy() {} 00032 virtual ~NanostackPhy() {} 00033 }; 00034 00035 #endif /* NANOSTACK_INTERFACE_H_ */
Generated on Thu Jul 14 2022 14:36:20 by
