Skip to main content

FXmacSetMacAddress

Function FXmacSetMacAddress 

Source
pub fn FXmacSetMacAddress(address_ptr: &[u8; 6], index: u8) -> u32
Expand description

Sets the MAC address for the specified address slot.

The device must be stopped before calling this function.

§Arguments

  • address_ptr - 6-byte MAC address.
  • index - Address slot index (0..FXMAC_MAX_MAC_ADDR).

§Panics

Panics if index is out of range.