w5500-device

xod/w5500/w5500-device

Represents a W5500-based ethernet device
w5500-device
@/w5500-device
Represents a W5500-based ethernet device
MACxod/net/mac-address
A MAC address. Should be unique for a device. Often printed on the bottom or a package.
CSport
A chip select port
w5500-device
MAC
CS
DEV
DEV@/w5500-device
A W5500-based internet provider device

C++ implementation

struct State {
};

struct Type {
    uint8_t* mac;
    uint8_t cs;
};

{{ GENERATED_CODE }}

void evaluate(Context ctx) {
    auto mac = getValue<input_MAC>(ctx);
    auto csPort = getValue<input_CS>(ctx);

    Type dev;
    dev.mac = mac;
    dev.cs = csPort;

    emitValue<output_DEV>(ctx, dev);
}