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.
Diff: features/nanostack/FEATURE_NANOSTACK/nanostack-interface/NanostackRfPhy.h
- Revision:
- 0:f269e3021894
diff -r 000000000000 -r f269e3021894 features/nanostack/FEATURE_NANOSTACK/nanostack-interface/NanostackRfPhy.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/features/nanostack/FEATURE_NANOSTACK/nanostack-interface/NanostackRfPhy.h Sun Oct 23 15:10:02 2016 +0000
@@ -0,0 +1,40 @@
+/*
+ * Copyright (c) 2016 ARM Limited. All rights reserved.
+ */
+
+#ifndef NANOSTACK_RF_PHY_H_
+#define NANOSTACK_RF_PHY_H_
+
+class NanostackRfPhy {
+public:
+
+ /** Register this physical interface with Nanostack
+ *
+ * @return Device driver ID or a negative error
+ * code on failure
+ */
+ virtual int8_t rf_register() = 0;
+
+ /** Unregister this physical interface
+ *
+ */
+ virtual void rf_unregister() = 0;
+
+ /** Read the mac address of this physical interface
+ *
+ * Note - some devices do not have a mac address
+ * in hardware.
+ */
+ virtual void get_mac_address(uint8_t *mac) = 0;
+
+ /** Set the mac address of this physical interface
+ *
+ */
+ virtual void set_mac_address(uint8_t *mac) = 0;
+
+protected:
+ NanostackRfPhy() {}
+ virtual ~NanostackRfPhy() {}
+};
+
+#endif /* NANOSTACK_INTERFACE_H_ */