Static Methodmadmachineio.swiftio 0.1.0SwiftIO
up
Ethernet.swift:45static func up()
static func up()
import SwiftIO
The SwiftIO library allows you to access and control the hardware in an easy way.
final class Ethernet
static let rxHandler: EthernetRxHandler
static func down()
static func setup(mac: [UInt8], txHandler: EthernetTxHandler)
typealias EthernetRxHandler = @convention(c) (UnsafeMutablePointer<UInt8>?, Int32) -> Int32
typealias EthernetTxHandler = @convention(c) (UnsafePointer<UInt8>?, Int32) -> Int32