Go to the source code of this file.
Enumerations | |
| enum | RTL8211_REG_Type { RTL8211_BMCR = 0 , RTL8211_BMSR = 1 , RTL8211_PHYID1 = 2 , RTL8211_PHYID2 = 3 , RTL8211_PHYSR = 17 , RTL8211_BMCR = 0 , RTL8211_BMSR = 1 , RTL8211_PHYID1 = 2 , RTL8211_PHYID2 = 3 , RTL8211_PHYSR = 17 } |
| #define RTL8211_BMCR_ANE_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMCR_ANE_MASK) >> RTL8211_BMCR_ANE_SHIFT) |
| #define RTL8211_BMCR_ANE_MASK (0x1000U) |
| #define RTL8211_BMCR_ANE_SET | ( | x | ) | (((uint16_t)(x) << RTL8211_BMCR_ANE_SHIFT) & RTL8211_BMCR_ANE_MASK) |
| #define RTL8211_BMCR_ANE_SHIFT (12U) |
| #define RTL8211_BMCR_COLLISION_TEST_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMCR_COLLISION_TEST_MASK) >> RTL8211_BMCR_COLLISION_TEST_SHIFT) |
| #define RTL8211_BMCR_COLLISION_TEST_MASK (0x80U) |
| #define RTL8211_BMCR_COLLISION_TEST_SET | ( | x | ) | (((uint16_t)(x) << RTL8211_BMCR_COLLISION_TEST_SHIFT) & RTL8211_BMCR_COLLISION_TEST_MASK) |
| #define RTL8211_BMCR_COLLISION_TEST_SHIFT (7U) |
| #define RTL8211_BMCR_DUPLEX_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMCR_DUPLEX_MASK) >> RTL8211_BMCR_DUPLEX_SHIFT) |
| #define RTL8211_BMCR_DUPLEX_MASK (0x100U) |
| #define RTL8211_BMCR_DUPLEX_SET | ( | x | ) | (((uint16_t)(x) << RTL8211_BMCR_DUPLEX_SHIFT) & RTL8211_BMCR_DUPLEX_MASK) |
| #define RTL8211_BMCR_DUPLEX_SHIFT (8U) |
| #define RTL8211_BMCR_ISOLATE_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMCR_ISOLATE_MASK) >> RTL8211_BMCR_ISOLATE_SHIFT) |
| #define RTL8211_BMCR_ISOLATE_MASK (0x400U) |
| #define RTL8211_BMCR_ISOLATE_SET | ( | x | ) | (((uint16_t)(x) << RTL8211_BMCR_ISOLATE_SHIFT) & RTL8211_BMCR_ISOLATE_MASK) |
| #define RTL8211_BMCR_ISOLATE_SHIFT (10U) |
| #define RTL8211_BMCR_LOOPBACK_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMCR_LOOPBACK_MASK) >> RTL8211_BMCR_LOOPBACK_SHIFT) |
| #define RTL8211_BMCR_LOOPBACK_MASK (0x4000U) |
| #define RTL8211_BMCR_LOOPBACK_SET | ( | x | ) | (((uint16_t)(x) << RTL8211_BMCR_LOOPBACK_SHIFT) & RTL8211_BMCR_LOOPBACK_MASK) |
| #define RTL8211_BMCR_LOOPBACK_SHIFT (14U) |
| #define RTL8211_BMCR_PWD_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMCR_PWD_MASK) >> RTL8211_BMCR_PWD_SHIFT) |
| #define RTL8211_BMCR_PWD_MASK (0x800U) |
| #define RTL8211_BMCR_PWD_SET | ( | x | ) | (((uint16_t)(x) << RTL8211_BMCR_PWD_SHIFT) & RTL8211_BMCR_PWD_MASK) |
| #define RTL8211_BMCR_PWD_SHIFT (11U) |
| #define RTL8211_BMCR_RESET_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMCR_RESET_MASK) >> RTL8211_BMCR_RESET_SHIFT) |
| #define RTL8211_BMCR_RESET_MASK (0x8000U) |
| #define RTL8211_BMCR_RESET_SET | ( | x | ) | (((uint16_t)(x) << RTL8211_BMCR_RESET_SHIFT) & RTL8211_BMCR_RESET_MASK) |
| #define RTL8211_BMCR_RESET_SHIFT (15U) |
| #define RTL8211_BMCR_RESTART_AN_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMCR_RESTART_AN_MASK) >> RTL8211_BMCR_RESTART_AN_SHIFT) |
| #define RTL8211_BMCR_RESTART_AN_MASK (0x200U) |
| #define RTL8211_BMCR_RESTART_AN_SET | ( | x | ) | (((uint16_t)(x) << RTL8211_BMCR_RESTART_AN_SHIFT) & RTL8211_BMCR_RESTART_AN_MASK) |
| #define RTL8211_BMCR_RESTART_AN_SHIFT (9U) |
| #define RTL8211_BMCR_SPEED0_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMCR_SPEED0_MASK) >> RTL8211_BMCR_SPEED0_SHIFT) |
| #define RTL8211_BMCR_SPEED0_MASK (0x2000U) |
| #define RTL8211_BMCR_SPEED0_SET | ( | x | ) | (((uint16_t)(x) << RTL8211_BMCR_SPEED0_SHIFT) & RTL8211_BMCR_SPEED0_MASK) |
| #define RTL8211_BMCR_SPEED0_SHIFT (13U) |
| #define RTL8211_BMCR_SPEED1_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMCR_SPEED1_MASK) >> RTL8211_BMCR_SPEED1_SHIFT) |
| #define RTL8211_BMCR_SPEED1_MASK (0x40U) |
| #define RTL8211_BMCR_SPEED1_SET | ( | x | ) | (((uint16_t)(x) << RTL8211_BMCR_SPEED1_SHIFT) & RTL8211_BMCR_SPEED1_MASK) |
| #define RTL8211_BMCR_SPEED1_SHIFT (6U) |
| #define RTL8211_BMSR_1000BASE_T_EXTENDED_STATUS_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMSR_1000BASE_T_EXTENDED_STATUS_MASK) >> RTL8211_BMSR_1000BASE_T_EXTENDED_STATUS_SHIFT) |
| #define RTL8211_BMSR_1000BASE_T_EXTENDED_STATUS_MASK (0x100U) |
| #define RTL8211_BMSR_1000BASE_T_EXTENDED_STATUS_SHIFT (8U) |
| #define RTL8211_BMSR_100BASE_T4_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMSR_100BASE_T4_MASK) >> RTL8211_BMSR_100BASE_T4_SHIFT) |
| #define RTL8211_BMSR_100BASE_T4_MASK (0x8000U) |
| #define RTL8211_BMSR_100BASE_T4_SHIFT (15U) |
| #define RTL8211_BMSR_100BASE_TX_FULL_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMSR_100BASE_TX_FULL_MASK) >> RTL8211_BMSR_100BASE_TX_FULL_SHIFT) |
| #define RTL8211_BMSR_100BASE_TX_FULL_MASK (0x4000U) |
| #define RTL8211_BMSR_100BASE_TX_FULL_SHIFT (14U) |
| #define RTL8211_BMSR_100BASE_TX_HALF_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMSR_100BASE_TX_HALF_MASK) >> RTL8211_BMSR_100BASE_TX_HALF_SHIFT) |
| #define RTL8211_BMSR_100BASE_TX_HALF_MASK (0x2000U) |
| #define RTL8211_BMSR_100BASE_TX_HALF_SHIFT (13U) |
| #define RTL8211_BMSR_10BASE_T2_FULL_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMSR_10BASE_T2_FULL_MASK) >> RTL8211_BMSR_10BASE_T2_FULL_SHIFT) |
| #define RTL8211_BMSR_10BASE_T2_FULL_MASK (0x400U) |
| #define RTL8211_BMSR_10BASE_T2_FULL_SHIFT (10U) |
| #define RTL8211_BMSR_10BASE_T2_HALF_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMSR_10BASE_T2_HALF_MASK) >> RTL8211_BMSR_10BASE_T2_HALF_SHIFT) |
| #define RTL8211_BMSR_10BASE_T2_HALF_MASK (0x200U) |
| #define RTL8211_BMSR_10BASE_T2_HALF_SHIFT (9U) |
| #define RTL8211_BMSR_10BASE_T_FULL_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMSR_10BASE_T_FULL_MASK) >> RTL8211_BMSR_10BASE_T_FULL_SHIFT) |
| #define RTL8211_BMSR_10BASE_T_FULL_MASK (0x1000U) |
| #define RTL8211_BMSR_10BASE_T_FULL_SHIFT (12U) |
| #define RTL8211_BMSR_10BASE_T_HALF_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMSR_10BASE_T_HALF_MASK) >> RTL8211_BMSR_10BASE_T_HALF_SHIFT) |
| #define RTL8211_BMSR_10BASE_T_HALF_MASK (0x800U) |
| #define RTL8211_BMSR_10BASE_T_HALF_SHIFT (11U) |
| #define RTL8211_BMSR_AUTO_NEGOTIATION_ABILITY_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMSR_AUTO_NEGOTIATION_ABILITY_MASK) >> RTL8211_BMSR_AUTO_NEGOTIATION_ABILITY_SHIFT) |
| #define RTL8211_BMSR_AUTO_NEGOTIATION_ABILITY_MASK (0x8U) |
| #define RTL8211_BMSR_AUTO_NEGOTIATION_ABILITY_SHIFT (3U) |
| #define RTL8211_BMSR_AUTO_NEGOTIATION_COMPLETE_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMSR_AUTO_NEGOTIATION_COMPLETE_MASK) >> RTL8211_BMSR_AUTO_NEGOTIATION_COMPLETE_SHIFT) |
| #define RTL8211_BMSR_AUTO_NEGOTIATION_COMPLETE_MASK (0x20U) |
| #define RTL8211_BMSR_AUTO_NEGOTIATION_COMPLETE_SHIFT (5U) |
| #define RTL8211_BMSR_EXTENDED_CAPABILITY_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMSR_EXTENDED_CAPABILITY_MASK) >> RTL8211_BMSR_EXTENDED_CAPABILITY_SHIFT) |
| #define RTL8211_BMSR_EXTENDED_CAPABILITY_MASK (0x1U) |
| #define RTL8211_BMSR_EXTENDED_CAPABILITY_SHIFT (0U) |
| #define RTL8211_BMSR_JABBER_DETECT_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMSR_JABBER_DETECT_MASK) >> RTL8211_BMSR_JABBER_DETECT_SHIFT) |
| #define RTL8211_BMSR_JABBER_DETECT_MASK (0x2U) |
| #define RTL8211_BMSR_JABBER_DETECT_SHIFT (1U) |
| #define RTL8211_BMSR_LINK_STATUS_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMSR_LINK_STATUS_MASK) >> RTL8211_BMSR_LINK_STATUS_SHIFT) |
| #define RTL8211_BMSR_LINK_STATUS_MASK (0x4U) |
| #define RTL8211_BMSR_LINK_STATUS_SHIFT (2U) |
| #define RTL8211_BMSR_PREAMBLE_SUPPRESSION_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMSR_PREAMBLE_SUPPRESSION_MASK) >> RTL8211_BMSR_PREAMBLE_SUPPRESSION_SHIFT) |
| #define RTL8211_BMSR_PREAMBLE_SUPPRESSION_MASK (0x40U) |
| #define RTL8211_BMSR_PREAMBLE_SUPPRESSION_SHIFT (6U) |
| #define RTL8211_BMSR_REMOTE_FAULT_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_BMSR_REMOTE_FAULT_MASK) >> RTL8211_BMSR_REMOTE_FAULT_SHIFT) |
| #define RTL8211_BMSR_REMOTE_FAULT_MASK (0x10U) |
| #define RTL8211_BMSR_REMOTE_FAULT_SHIFT (4U) |
| #define RTL8211_PHYID1_OUI_MSB_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_PHYID1_OUI_MSB_MASK) >> RTL8211_PHYID1_OUI_MSB_SHIFT) |
| #define RTL8211_PHYID1_OUI_MSB_MASK (0xFFFFU) |
| #define RTL8211_PHYID1_OUI_MSB_SHIFT (0U) |
| #define RTL8211_PHYID2_MODEL_NUMBER_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_PHYID2_MODEL_NUMBER_MASK) >> RTL8211_PHYID2_MODEL_NUMBER_SHIFT) |
| #define RTL8211_PHYID2_MODEL_NUMBER_MASK (0x3F0U) |
| #define RTL8211_PHYID2_MODEL_NUMBER_SHIFT (4U) |
| #define RTL8211_PHYID2_OUI_LSB_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_PHYID2_OUI_LSB_MASK) >> RTL8211_PHYID2_OUI_LSB_SHIFT) |
| #define RTL8211_PHYID2_OUI_LSB_MASK (0xFC00U) |
| #define RTL8211_PHYID2_OUI_LSB_SHIFT (10U) |
| #define RTL8211_PHYID2_REVISION_NUMBER_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_PHYID2_REVISION_NUMBER_MASK) >> RTL8211_PHYID2_REVISION_NUMBER_SHIFT) |
| #define RTL8211_PHYID2_REVISION_NUMBER_MASK (0xFU) |
| #define RTL8211_PHYID2_REVISION_NUMBER_SHIFT (0U) |
| #define RTL8211_PHYSR_DUPLEX_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_PHYSR_DUPLEX_MASK) >> RTL8211_PHYSR_DUPLEX_SHIFT) |
| #define RTL8211_PHYSR_DUPLEX_MASK (0x2000U) |
| #define RTL8211_PHYSR_DUPLEX_SHIFT (13U) |
| #define RTL8211_PHYSR_JABBER_REAL_TIME_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_PHYSR_JABBER_REAL_TIME_MASK) >> RTL8211_PHYSR_JABBER_REAL_TIME_SHIFT) |
| #define RTL8211_PHYSR_JABBER_REAL_TIME_MASK (0x1U) |
| #define RTL8211_PHYSR_JABBER_REAL_TIME_SHIFT (0U) |
| #define RTL8211_PHYSR_LINK_REAL_TIME_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_PHYSR_LINK_REAL_TIME_MASK) >> RTL8211_PHYSR_LINK_REAL_TIME_SHIFT) |
| #define RTL8211_PHYSR_LINK_REAL_TIME_MASK (0x400U) |
| #define RTL8211_PHYSR_LINK_REAL_TIME_SHIFT (10U) |
| #define RTL8211_PHYSR_MDI_CROSSOVER_STATUS_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_PHYSR_MDI_CROSSOVER_STATUS_MASK) >> RTL8211_PHYSR_MDI_CROSSOVER_STATUS_SHIFT) |
| #define RTL8211_PHYSR_MDI_CROSSOVER_STATUS_MASK (0x40U) |
| #define RTL8211_PHYSR_MDI_CROSSOVER_STATUS_SHIFT (6U) |
| #define RTL8211_PHYSR_PAGE_RECEIVED_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_PHYSR_PAGE_RECEIVED_MASK) >> RTL8211_PHYSR_PAGE_RECEIVED_SHIFT) |
| #define RTL8211_PHYSR_PAGE_RECEIVED_MASK (0x1000U) |
| #define RTL8211_PHYSR_PAGE_RECEIVED_SHIFT (12U) |
| #define RTL8211_PHYSR_PRE_LINKOK_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_PHYSR_PRE_LINKOK_MASK) >> RTL8211_PHYSR_PRE_LINKOK_SHIFT) |
| #define RTL8211_PHYSR_PRE_LINKOK_MASK (0x2U) |
| #define RTL8211_PHYSR_PRE_LINKOK_SHIFT (1U) |
| #define RTL8211_PHYSR_SPEED_AND_DUPLEX_RESOLVED_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_PHYSR_SPEED_AND_DUPLEX_RESOLVED_MASK) >> RTL8211_PHYSR_SPEED_AND_DUPLEX_RESOLVED_SHIFT) |
| #define RTL8211_PHYSR_SPEED_AND_DUPLEX_RESOLVED_MASK (0x800U) |
| #define RTL8211_PHYSR_SPEED_AND_DUPLEX_RESOLVED_SHIFT (11U) |
| #define RTL8211_PHYSR_SPEED_GET | ( | x | ) | (((uint16_t)(x) & RTL8211_PHYSR_SPEED_MASK) >> RTL8211_PHYSR_SPEED_SHIFT) |
| #define RTL8211_PHYSR_SPEED_MASK (0xC000U) |
| #define RTL8211_PHYSR_SPEED_SHIFT (14U) |
| enum RTL8211_REG_Type |