We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdddae1 commit 54b9bf8Copy full SHA for 54b9bf8
include/zephyr/net/phy.h
@@ -88,6 +88,16 @@ enum phy_link_speed {
88
#define PHY_LINK_IS_SPEED_100M(x) \
89
(x & (LINK_HALF_100BASE_T | LINK_FULL_100BASE_T | LINK_FULL_100BASE_X))
90
91
+/**
92
+ * @brief Check if phy link speed is 10 Mbit/sec.
93
+ *
94
+ * @param x Link capabilities
95
96
+ * @return True if link is 10 Mbit/sec, false if not.
97
+ */
98
+#define PHY_LINK_IS_SPEED_10M(x) \
99
+ (x & (LINK_HALF_10BASE_T | LINK_FULL_10BASE_T | LINK_FULL_10BASE_X))
100
+
101
/** @brief Link state */
102
struct phy_link_state {
103
/** Link speed */
0 commit comments