We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 758a528 commit fc585dbCopy full SHA for fc585db
include/zephyr/net/phy.h
@@ -56,6 +56,18 @@ enum phy_link_speed {
56
LINK_FULL_5000BASE_T = BIT(11),
57
};
58
59
+/**
60
+ * @brief Check if phy link is BASE-T.
61
+ *
62
+ * @param x Link capabilities
63
64
+ * @return True if link is BASE-T, false if not.
65
+ */
66
+#define PHY_LINK_IS_BASE_T(x) \
67
+ (x & (LINK_HALF_10BASE_T | LINK_FULL_10BASE_T | LINK_HALF_100BASE_T | \
68
+ LINK_FULL_100BASE_T | LINK_HALF_1000BASE_T | LINK_FULL_1000BASE_T | \
69
+ LINK_FULL_2500BASE_T | LINK_FULL_5000BASE_T))
70
+
71
/**
72
* @brief Check if phy link is full duplex.
73
*
0 commit comments