Rtos API example
Embed:
(wiki syntax)
Show/hide line numbers
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 Sun Jul 17 2022 08:25:28 by
1.7.2