ON Semiconductor / mbed-os

Dependents:   mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers NanostackPhy.h Source File

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_ */