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.
Dependents: blinky_max32630fthr
NanostackRfPhy.h
00001 /* 00002 * Copyright (c) 2016 ARM Limited. All rights reserved. 00003 */ 00004 00005 #ifndef NANOSTACK_RF_PHY_H_ 00006 #define NANOSTACK_RF_PHY_H_ 00007 00008 class NanostackRfPhy { 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 rf_register() = 0; 00017 00018 /** Unregister this physical interface 00019 * 00020 */ 00021 virtual void rf_unregister() = 0; 00022 00023 /** Read the mac address of this physical interface 00024 * 00025 * Note - some devices do not have a mac address 00026 * in hardware. 00027 */ 00028 virtual void get_mac_address(uint8_t *mac) = 0; 00029 00030 /** Set the mac address of this physical interface 00031 * 00032 */ 00033 virtual void set_mac_address(uint8_t *mac) = 0; 00034 00035 protected: 00036 NanostackRfPhy() {} 00037 virtual ~NanostackRfPhy() {} 00038 }; 00039 00040 #endif /* NANOSTACK_INTERFACE_H_ */
Generated on Tue Jul 12 2022 14:21:16 by
1.7.2
