mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
boards/boardctl: Add BOARDIOC_MACADDR command
Add a new boardctl command BOARDIOC_MACADDR to retrieve the MAC address of the network interface. The board_macaddr function needs to be implemented by the board logic. Signed-off-by: daichuan <daichuan@xiaomi.com>
This commit is contained in:
@@ -110,6 +110,16 @@ Board information
|
||||
which to receive the board unique ID.
|
||||
|
||||
:dependencies: Board logic must provide the :c:func:`board_uniqueid` interface.
|
||||
|
||||
.. c:macro:: BOARDIOC_MACADDR
|
||||
|
||||
Get the network driver MAC address.
|
||||
|
||||
:Argument: A pointer to an instance of :c:struct:`boardioc_macaddr_s`.
|
||||
|
||||
:configuration: CONFIG_BOARDCTL_MACADDR
|
||||
|
||||
:dependencies: Board logic must provide the :c:func:`board_macaddr` interface.
|
||||
|
||||
Filesystems
|
||||
-----------
|
||||
|
||||
Reference in New Issue
Block a user