Rtos API example
Embed:
(wiki syntax)
Show/hide line numbers
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 #include "NanostackPhy.h" 00009 00010 class NanostackRfPhy : public NanostackPhy { 00011 public: 00012 00013 /** Register this physical interface with Nanostack 00014 * 00015 * @return Device driver ID or a negative error 00016 * code on failure 00017 */ 00018 virtual int8_t rf_register() = 0; 00019 00020 /** Unregister this physical interface 00021 * 00022 */ 00023 virtual void rf_unregister() = 0; 00024 00025 /** Register this physical interface with Nanostack 00026 * 00027 * @return Device driver ID or a negative error 00028 * code on failure 00029 */ 00030 virtual int8_t phy_register() { return rf_register();} 00031 00032 /** Unregister this physical interface 00033 * 00034 */ 00035 virtual void unregister() { rf_unregister(); } 00036 }; 00037 00038 #endif /* NANOSTACK_RF_PHY_H_ */
Generated on Sun Jul 17 2022 08:25:28 by
1.7.2