Wafer.DeviceID protocol (wafer v1.1.1)

View Source

Allows devices to generate a unique identifier.

Mainly used for InterruptRegistry but you might find it useful too. Can be derived in the same manner as all other Wafer protocols.

Summary

Types

t()

All the types that implement this protocol.

Functions

Generate a unique identifier for conn.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

id(conn)

@spec id(Wafer.Conn.t()) :: any()

Generate a unique identifier for conn.