Function stationAddress [src]

Modifies or resets the current station address, if supported.

Prototype

pub fn stationAddress( self: *SimpleNetwork, reset_flag: bool, new: ?*const MacAddress, ) StationAddressError!void

Parameters

self: *SimpleNetworkreset_flag: boolnew: ?*const MacAddress

Possible Errors

DeviceError
InvalidParameter
NotStarted
Unexpected UnexpectedError
Unsupported

Source

pub fn stationAddress( self: *SimpleNetwork, reset_flag: bool, new: ?*const MacAddress, ) StationAddressError!void { switch (self._station_address(self, reset_flag, new)) { .success => {}, .not_started => return Error.NotStarted, .invalid_parameter => return Error.InvalidParameter, .device_error => return Error.DeviceError, .unsupported => return Error.Unsupported, else => |status| return uefi.unexpectedStatus(status), } }