1 /**************************************************************************//** 2 * @file usbh_reg.h 3 * @version V1.00 4 * @brief USBH register definition header file 5 * 6 * SPDX-License-Identifier: Apache-2.0 7 * @copyright (C) 2017-2020 Nuvoton Technology Corp. All rights reserved. 8 *****************************************************************************/ 9 #ifndef __USBH_REG_H__ 10 #define __USBH_REG_H__ 11 12 #if defined ( __CC_ARM ) 13 #pragma anon_unions 14 #endif 15 16 /** 17 @addtogroup REGISTER Control Register 18 @{ 19 */ 20 21 /** 22 @addtogroup USBH USB Host Controller(USBH) 23 Memory Mapped Structure for USBH Controller 24 @{ */ 25 26 typedef struct 27 { 28 29 /** 30 * @var USBH_T::HcRevision 31 * Offset: 0x00 Host Controller Revision Register 32 * --------------------------------------------------------------------------------------------------- 33 * |Bits |Field |Descriptions 34 * | :----: | :----: | :---- | 35 * |[7:0] |REV |Revision Number 36 * | | |Indicates the Open HCI Specification revision number implemented by the Hardware 37 * | | |Host Controller supports 1.1 specification. 38 * | | |(X.Y = XYh). 39 * @var USBH_T::HcControl 40 * Offset: 0x04 Host Controller Control Register 41 * --------------------------------------------------------------------------------------------------- 42 * |Bits |Field |Descriptions 43 * | :----: | :----: | :---- | 44 * |[1:0] |CBSR |Control Bulk Service Ratio 45 * | | |This specifies the service ratio between Control and Bulk EDs 46 * | | |Before processing any of the non-periodic lists, HC must compare the ratio specified with its internal count on how many nonempty Control EDs have been processed, in determining whether to continue serving another Control ED or switching to Bulk EDs 47 * | | |The internal count will be retained when crossing the frame boundary 48 * | | |In case of reset, HCD is responsible for restoring this 49 * | | |Value. 50 * | | |00 = Number of Control EDs over Bulk EDs served is 1:1. 51 * | | |01 = Number of Control EDs over Bulk EDs served is 2:1. 52 * | | |10 = Number of Control EDs over Bulk EDs served is 3:1. 53 * | | |11 = Number of Control EDs over Bulk EDs served is 4:1. 54 * |[2] |PLE |Periodic List Enable Bit 55 * | | |When set, this bit enables processing of the Periodic (interrupt and isochronous) list 56 * | | |The Host Controller checks this bit prior to attempting any periodic transfers in a frame. 57 * | | |0 = Processing of the Periodic (Interrupt and Isochronous) list after next SOF (Start-Of-Frame) Disabled. 58 * | | |1 = Processing of the Periodic (Interrupt and Isochronous) list in the next frame Enabled. 59 * | | |Note: To enable the processing of the Isochronous list, user has to set both PLE and IE (HcControl[3]) high. 60 * |[3] |IE |Isochronous List Enable Bit 61 * | | |Both ISOEn and PLE (HcControl[2]) high enables Host Controller to process the Isochronous list 62 * | | |Either ISOEn or PLE (HcControl[2]) is low disables Host Controller to process the Isochronous list. 63 * | | |0 = Processing of the Isochronous list after next SOF (Start-Of-Frame) Disabled. 64 * | | |1 = Processing of the Isochronous list in the next frame Enabled, if the PLE (HcControl[2]) is high, too. 65 * |[4] |CLE |Control List Enable Bit 66 * | | |0 = Processing of the Control list after next SOF (Start-Of-Frame) Disabled. 67 * | | |1 = Processing of the Control list in the next frame Enabled. 68 * |[5] |BLE |Bulk List Enable Bit 69 * | | |0 = Processing of the Bulk list after next SOF (Start-Of-Frame) Disabled. 70 * | | |1 = Processing of the Bulk list in the next frame Enabled. 71 * |[7:6] |HCFS |Host Controller Functional State 72 * | | |This field sets the Host Controller state 73 * | | |The Controller may force a state change from USBSUSPEND to USBRESUME after detecting resume signaling from a downstream port 74 * | | |States are: 75 * | | |00 = USBSUSPEND. 76 * | | |01 = USBOPERATIONAL. 77 * | | |10 = USBRESUME. 78 * | | |11 = USBRESET. 79 * @var USBH_T::HcCommandStatus 80 * Offset: 0x08 Host Controller Command Status Register 81 * --------------------------------------------------------------------------------------------------- 82 * |Bits |Field |Descriptions 83 * | :----: | :----: | :---- | 84 * |[0] |HCR |Host Controller Reset 85 * | | |This bit is set to initiate the software reset of Host Controller 86 * | | |This bit is cleared by the Host Controller, upon completed of the reset operation. 87 * | | |This bit, when set, didn't reset the Root Hub and no subsequent reset signaling be asserted to its downstream ports. 88 * | | |0 = Host Controller is not in software reset state. 89 * | | |1 = Host Controller is in software reset state. 90 * |[1] |CLF |Control List Filled 91 * | | |Set high to indicate there is an active TD on the Control List 92 * | | |It may be set by either software or the Host Controller and cleared by the Host Controller each time it begins processing the head of the Control List. 93 * | | |0 = No active TD found or Host Controller begins to process the head of the Control list. 94 * | | |1 = An active TD added or found on the Control list. 95 * |[2] |BLF |Bulk List Filled 96 * | | |Set high to indicate there is an active TD on the Bulk list 97 * | | |This bit may be set by either software or the Host Controller and cleared by the Host Controller each time it begins processing the head of the Bulk list. 98 * | | |0 = No active TD found or Host Controller begins to process the head of the Bulk list. 99 * | | |1 = An active TD added or found on the Bulk list. 100 * |[17:16] |SOC |Schedule Overrun Count 101 * | | |These bits are incremented on each scheduling overrun error 102 * | | |It is initialized to 00b and wraps around at 11b 103 * | | |This will be incremented when a scheduling overrun is detected even if SO (HcInterruptStatus[0]) has already been set. 104 * @var USBH_T::HcInterruptStatus 105 * Offset: 0x0C Host Controller Interrupt Status Register 106 * --------------------------------------------------------------------------------------------------- 107 * |Bits |Field |Descriptions 108 * | :----: | :----: | :---- | 109 * |[0] |SO |Scheduling Overrun 110 * | | |Set when the List Processor determines a Schedule Overrun has occurred. 111 * | | |0 = Schedule Overrun didn't occur. 112 * | | |1 = Schedule Overrun has occurred. 113 * |[1] |WDH |Write Back Done Head 114 * | | |Set after the Host Controller has written HcDoneHead to HccaDoneHead 115 * | | |Further updates of the HccaDoneHead will not occur until this bit has been cleared. 116 * | | |0 =.Host Controller didn't update HccaDoneHead. 117 * | | |1 =.Host Controller has written HcDoneHead to HccaDoneHead. 118 * |[2] |SF |Start of Frame 119 * | | |Set when the Frame Management functional block signals a 'Start of Frame' event 120 * | | |Host Control generates a SOF token at the same time. 121 * | | |0 =.Not the start of a frame. 122 * | | |1 =.Indicate the start of a frame and Host Controller generates a SOF token. 123 * |[3] |RD |Resume Detected 124 * | | |Set when Host Controller detects resume signaling on a downstream port. 125 * | | |0 = No resume signaling detected on a downstream port. 126 * | | |1 = Resume signaling detected on a downstream port. 127 * |[5] |FNO |Frame Number Overflow 128 * | | |This bit is set when bit 15 of Frame Number changes from 1 to 0 or from 0 to 1. 129 * | | |0 = The bit 15 of Frame Number didn't change. 130 * | | |1 = The bit 15 of Frame Number changes from 1 to 0 or from 0 to 1. 131 * |[6] |RHSC |Root Hub Status Change 132 * | | |This bit is set when the content of HcRhStatus or the content of HcRhPortStatus register has changed. 133 * | | |0 = The content of HcRhStatus and the content of HcRhPortStatus register didn't change. 134 * | | |1 = The content of HcRhStatus or the content of HcRhPortStatus register has changed. 135 * @var USBH_T::HcInterruptEnable 136 * Offset: 0x10 Host Controller Interrupt Enable Register 137 * --------------------------------------------------------------------------------------------------- 138 * |Bits |Field |Descriptions 139 * | :----: | :----: | :---- | 140 * |[0] |SO |Scheduling Overrun Enable Bit 141 * | | |Write Operation: 142 * | | |0 = No effect. 143 * | | |1 = Interrupt generation due to SO (HcInterruptStatus[0]) Enabled. 144 * | | |Read Operation: 145 * | | |0 = Interrupt generation due to SO (HcInterruptStatus[0]) Disabled. 146 * | | |1 = Interrupt generation due to SO (HcInterruptStatus[0]) Enabled. 147 * |[1] |WDH |Write Back Done Head Enable Bit 148 * | | |Write Operation: 149 * | | |0 = No effect. 150 * | | |1 = Interrupt generation due to WDH (HcInterruptStatus[1]) Enabled. 151 * | | |Read Operation: 152 * | | |0 = Interrupt generation due to WDH (HcInterruptStatus[1]) Disabled. 153 * | | |1 = Interrupt generation due to WDH (HcInterruptStatus[1]) Enabled. 154 * |[2] |SF |Start of Frame Enable Bit 155 * | | |Write Operation: 156 * | | |0 = No effect. 157 * | | |1 = Interrupt generation due to SF (HcInterruptStatus[2]) Enabled. 158 * | | |Read Operation: 159 * | | |0 = Interrupt generation due to SF (HcInterruptStatus[2]) Disabled. 160 * | | |1 = Interrupt generation due to SF (HcInterruptStatus[2]) Enabled. 161 * |[3] |RD |Resume Detected Enable Bit 162 * | | |Write Operation: 163 * | | |0 = No effect. 164 * | | |1 = Interrupt generation due to RD (HcInterruptStatus[3]) Enabled. 165 * | | |Read Operation: 166 * | | |0 = Interrupt generation due to RD (HcInterruptStatus[3]) Disabled. 167 * | | |1 = Interrupt generation due to RD (HcInterruptStatus[3]) Enabled. 168 * |[5] |FNO |Frame Number Overflow Enable Bit 169 * | | |Write Operation: 170 * | | |0 = No effect. 171 * | | |1 = Interrupt generation due to FNO (HcInterruptStatus[5]) Enabled. 172 * | | |Read Operation: 173 * | | |0 = Interrupt generation due to FNO (HcInterruptStatus[5]) Disabled. 174 * | | |1 = Interrupt generation due to FNO (HcInterruptStatus[5]) Enabled. 175 * |[6] |RHSC |Root Hub Status Change Enable Bit 176 * | | |Write Operation: 177 * | | |0 = No effect. 178 * | | |1 = Interrupt generation due to RHSC (HcInterruptStatus[6]) Enabled. 179 * | | |Read Operation: 180 * | | |0 = Interrupt generation due to RHSC (HcInterruptStatus[6]) Disabled. 181 * | | |1 = Interrupt generation due to RHSC (HcInterruptStatus[6]) Enabled. 182 * |[31] |MIE |Master Interrupt Enable Bit 183 * | | |This bit is a global interrupt enable 184 * | | |A write of '1' allows interrupts to be enabled via the specific enable bits listed above. 185 * | | |Write Operation: 186 * | | |0 = No effect. 187 * | | |1 = Interrupt generation due to RHSC (HcInterruptStatus[6]), FNO (HcInterruptStatus[5]), RD (HcInterruptStatus[3]), SF (HcInterruptStatus[2]), WDH (HcInterruptStatus[1]) or SO (HcInterruptStatus[0]) Enabled if the corresponding bit in HcInterruptEnable is high. 188 * | | |Read Operation: 189 * | | |0 = Interrupt generation due to RHSC (HcInterruptStatus[6]), FNO (HcInterruptStatus[5]), RD (HcInterruptStatus[3]), SF (HcInterruptStatus[2]), WDH (HcInterruptStatus[1]) or SO (HcInterruptStatus[0]) Disabled even if the corresponding bit in HcInterruptEnable is high. 190 * | | |1 = Interrupt generation due to RHSC (HcInterruptStatus[6]), FNO (HcInterruptStatus[5]), RD (HcInterruptStatus[3]), SF (HcInterruptStatus[2]), WDH (HcInterruptStatus[1]) or SO (HcInterruptStatus[0]) Enabled if the corresponding bit in HcInterruptEnable is high. 191 * @var USBH_T::HcInterruptDisable 192 * Offset: 0x14 Host Controller Interrupt Disable Register 193 * --------------------------------------------------------------------------------------------------- 194 * |Bits |Field |Descriptions 195 * | :----: | :----: | :---- | 196 * |[0] |SO |Scheduling Overrun Disable Bit 197 * | | |Write Operation: 198 * | | |0 = No effect. 199 * | | |1 = Interrupt generation due to SO (HcInterruptStatus[0]) Disabled. 200 * | | |Read Operation: 201 * | | |0 = Interrupt generation due to SO (HcInterruptStatus[0]) Disabled. 202 * | | |1 = Interrupt generation due to SO (HcInterruptStatus[0]) Enabled. 203 * |[1] |WDH |Write Back Done Head Disable Bit 204 * | | |Write Operation: 205 * | | |0 = No effect. 206 * | | |1 = Interrupt generation due to WDH (HcInterruptStatus[1]) Disabled. 207 * | | |Read Operation: 208 * | | |0 = Interrupt generation due to WDH (HcInterruptStatus[1]) Disabled. 209 * | | |1 = Interrupt generation due to WDH (HcInterruptStatus[1]) Enabled. 210 * |[2] |SF |Start of Frame Disable Bit 211 * | | |Write Operation: 212 * | | |0 = No effect. 213 * | | |1 = Interrupt generation due to SF (HcInterruptStatus[2]) Disabled. 214 * | | |Read Operation: 215 * | | |0 = Interrupt generation due to SF (HcInterruptStatus[2]) Disabled. 216 * | | |1 = Interrupt generation due to SF (HcInterruptStatus[2]) Enabled. 217 * |[3] |RD |Resume Detected Disable Bit 218 * | | |Write Operation: 219 * | | |0 = No effect. 220 * | | |1 = Interrupt generation due to RD (HcInterruptStatus[3]) Disabled. 221 * | | |Read Operation: 222 * | | |0 = Interrupt generation due to RD (HcInterruptStatus[3]) Disabled. 223 * | | |1 = Interrupt generation due to RD (HcInterruptStatus[3]) Enabled. 224 * |[5] |FNO |Frame Number Overflow Disable Bit 225 * | | |Write Operation: 226 * | | |0 = No effect. 227 * | | |1 = Interrupt generation due to FNO (HcInterruptStatus[5]) Disabled. 228 * | | |Read Operation: 229 * | | |0 = Interrupt generation due to FNO (HcInterruptStatus[5]) Disabled. 230 * | | |1 = Interrupt generation due to FNO (HcInterruptStatus[5]) Enabled. 231 * |[6] |RHSC |Root Hub Status Change Disable Bit 232 * | | |Write Operation: 233 * | | |0 = No effect. 234 * | | |1 = Interrupt generation due to RHSC (HcInterruptStatus[6]) Disabled. 235 * | | |Read Operation: 236 * | | |0 = Interrupt generation due to RHSC (HcInterruptStatus[6]) Disabled. 237 * | | |1 = Interrupt generation due to RHSC (HcInterruptStatus[6]) Enabled. 238 * |[31] |MIE |Master Interrupt Disable Bit 239 * | | |Global interrupt disable. Writing '1' to disable all interrupts. 240 * | | |Write Operation: 241 * | | |0 = No effect. 242 * | | |1 = Interrupt generation due to RHSC (HcInterruptStatus[6]), FNO (HcInterruptStatus[5]), RD (HcInterruptStatus[3]), SF (HcInterruptStatus[2]), WDH (HcInterruptStatus[1]) or SO (HcInterruptStatus[0]) Disabled if the corresponding bit in HcInterruptEnable is high. 243 * | | |Read Operation: 244 * | | |0 = Interrupt generation due to RHSC (HcInterruptStatus[6]), FNO (HcInterruptStatus[5]), RD (HcInterruptStatus[3]), SF (HcInterruptStatus[2]), WDH (HcInterruptStatus[1]) or SO (HcInterruptStatus[0]) Disabled even if the corresponding bit in HcInterruptEnable is high. 245 * | | |1 = Interrupt generation due to RHSC (HcInterruptStatus[6]), FNO (HcInterruptStatus[5]), RD (HcInterruptStatus[3]), SF (HcInterruptStatus[2]), WDH (HcInterruptStatus[1]) or SO (HcInterruptStatus[0]) Enabled if the corresponding bit in HcInterruptEnable is high. 246 * @var USBH_T::HcHCCA 247 * Offset: 0x18 Host Controller Communication Area Register 248 * --------------------------------------------------------------------------------------------------- 249 * |Bits |Field |Descriptions 250 * | :----: | :----: | :---- | 251 * |[31:8] |HCCA |Host Controller Communication Area 252 * | | |Pointer to indicate base address of the Host Controller Communication Area (HCCA). 253 * @var USBH_T::HcPeriodCurrentED 254 * Offset: 0x1C Host Controller Period Current ED Register 255 * --------------------------------------------------------------------------------------------------- 256 * |Bits |Field |Descriptions 257 * | :----: | :----: | :---- | 258 * |[31:4] |PCED |Periodic Current ED 259 * | | |Pointer to indicate physical address of the current Isochronous or Interrupt Endpoint Descriptor. 260 * @var USBH_T::HcControlHeadED 261 * Offset: 0x20 Host Controller Control Head ED Register 262 * --------------------------------------------------------------------------------------------------- 263 * |Bits |Field |Descriptions 264 * | :----: | :----: | :---- | 265 * |[31:4] |CHED |Control Head ED 266 * | | |Pointer to indicate physical address of the first Endpoint Descriptor of the Control list. 267 * @var USBH_T::HcControlCurrentED 268 * Offset: 0x24 Host Controller Control Current ED Register 269 * --------------------------------------------------------------------------------------------------- 270 * |Bits |Field |Descriptions 271 * | :----: | :----: | :---- | 272 * |[31:4] |CCED |Control Current Head ED 273 * | | |Pointer to indicate the physical address of the current Endpoint Descriptor of the Control list. 274 * @var USBH_T::HcBulkHeadED 275 * Offset: 0x28 Host Controller Bulk Head ED Register 276 * --------------------------------------------------------------------------------------------------- 277 * |Bits |Field |Descriptions 278 * | :----: | :----: | :---- | 279 * |[31:4] |BHED |Bulk Head ED 280 * | | |Pointer to indicate the physical address of the first Endpoint Descriptor of the Bulk list. 281 * @var USBH_T::HcBulkCurrentED 282 * Offset: 0x2C Host Controller Bulk Current ED Register 283 * --------------------------------------------------------------------------------------------------- 284 * |Bits |Field |Descriptions 285 * | :----: | :----: | :---- | 286 * |[31:4] |BCED |Bulk Current Head ED 287 * | | |Pointer to indicate the physical address of the current endpoint of the Bulk list. 288 * @var USBH_T::HcDoneHead 289 * Offset: 0x30 Host Controller Done Head Register 290 * --------------------------------------------------------------------------------------------------- 291 * |Bits |Field |Descriptions 292 * | :----: | :----: | :---- | 293 * |[31:4] |DH |Done Head 294 * | | |Pointer to indicate the physical address of the last completed Transfer Descriptor that was added to the Done queue. 295 * @var USBH_T::HcFmInterval 296 * Offset: 0x34 Host Controller Frame Interval Register 297 * --------------------------------------------------------------------------------------------------- 298 * |Bits |Field |Descriptions 299 * | :----: | :----: | :---- | 300 * |[13:0] |FI |Frame Interval 301 * | | |This field specifies the length of a frame as (bit times - 1) 302 * | | |For 12,000 bit times in a frame, a value of 11,999 is stored here. 303 * |[30:16] |FSMPS |FS Largest Data Packet 304 * | | |This field specifies a value that is loaded into the Largest Data Packet Counter at the beginning of each frame. 305 * |[31] |FIT |Frame Interval Toggle 306 * | | |This bit is toggled by Host Controller Driver when it loads a new value into FI (HcFmInterval[13:0]). 307 * | | |0 = Host Controller Driver didn't load new value into FI (HcFmInterval[13:0]). 308 * | | |1 = Host Controller Driver loads a new value into FI (HcFmInterval[13:0]). 309 * @var USBH_T::HcFmRemaining 310 * Offset: 0x38 Host Controller Frame Remaining Register 311 * --------------------------------------------------------------------------------------------------- 312 * |Bits |Field |Descriptions 313 * | :----: | :----: | :---- | 314 * |[13:0] |FR |Frame Remaining 315 * | | |When the Host Controller is in the USBOPERATIONAL state, this 14-bit field decrements each 12 MHz clock period 316 * | | |When the count reaches 0, (end of frame) the counter reloads with Frame Interval 317 * | | |In addition, the counter loads when the Host Controller transitions into USBOPERATIONAL. 318 * |[31] |FRT |Frame Remaining Toggle 319 * | | |This bit is loaded from the FIT (HcFmInterval[31]) whenever FR (HcFmRemaining[13:0]) reaches 0. 320 * @var USBH_T::HcFmNumber 321 * Offset: 0x3C Host Controller Frame Number Register 322 * --------------------------------------------------------------------------------------------------- 323 * |Bits |Field |Descriptions 324 * | :----: | :----: | :---- | 325 * |[15:0] |FN |Frame Number 326 * | | |This 16-bit incrementing counter field is incremented coincident with the re-load of FR (HcFmRemaining[13:0]) 327 * | | |The count rolls over from 'FFFFh' to '0h.' 328 * @var USBH_T::HcPeriodicStart 329 * Offset: 0x40 Host Controller Periodic Start Register 330 * --------------------------------------------------------------------------------------------------- 331 * |Bits |Field |Descriptions 332 * | :----: | :----: | :---- | 333 * |[13:0] |PS |Periodic Start 334 * | | |This field contains a value used by the List Processor to determine where in a frame the Periodic List processing must begin. 335 * @var USBH_T::HcLSThreshold 336 * Offset: 0x44 Host Controller Low-speed Threshold Register 337 * --------------------------------------------------------------------------------------------------- 338 * |Bits |Field |Descriptions 339 * | :----: | :----: | :---- | 340 * |[11:0] |LST |Low-speed Threshold 341 * | | |This field contains a value which is compared to the FR (HcFmRemaining[13:0]) field prior to initiating a Low-speed transaction 342 * | | |The transaction is started only if FR (HcFmRemaining[13:0]) >= this field 343 * | | |The value is calculated by Host Controller Driver with the consideration of transmission and setup overhead. 344 * @var USBH_T::HcRhDescriptorA 345 * Offset: 0x48 Host Controller Root Hub Descriptor A Register 346 * --------------------------------------------------------------------------------------------------- 347 * |Bits |Field |Descriptions 348 * | :----: | :----: | :---- | 349 * |[7:0] |NDP |Number Downstream Ports 350 * | | |USB host control supports two downstream ports and only one port is available in this series of chip. 351 * |[8] |PSM |Power Switching Mode 352 * | | |This bit is used to specify how the power switching of the Root Hub ports is controlled. 353 * | | |0 = Global Switching. 354 * | | |1 = Individual Switching. 355 * |[11] |OCPM |over Current Protection Mode 356 * | | |This bit describes how the over current status for the Root Hub ports reported 357 * | | |This bit is only valid when NOCP (HcRhDescriptorA[12]) is cleared. 358 * | | |0 = Global Over current. 359 * | | |1 = Individual Over current. 360 * |[12] |NOCP |No over Current Protection 361 * | | |This bit describes how the over current status for the Root Hub ports reported. 362 * | | |0 = Over current status is reported. 363 * | | |1 = Over current status is not reported. 364 * @var USBH_T::HcRhDescriptorB 365 * Offset: 0x4C Host Controller Root Hub Descriptor B Register 366 * --------------------------------------------------------------------------------------------------- 367 * |Bits |Field |Descriptions 368 * | :----: | :----: | :---- | 369 * |[31:16] |PPCM |Port Power Control Mask 370 * | | |Global power switching 371 * | | |This field is only valid if PowerSwitchingMode is set (individual port switching) 372 * | | |When set, the port only responds to individual port power switching commands (Set/ClearPortPower) 373 * | | |When cleared, the port only responds to global power switching commands (Set/ClearGlobalPower). 374 * | | |0 = Port power controlled by global power switching. 375 * | | |1 = Port power controlled by port power switching. 376 * | | |Note: PPCM[15:2] and PPCM[0] are reserved. 377 * @var USBH_T::HcRhStatus 378 * Offset: 0x50 Host Controller Root Hub Status Register 379 * --------------------------------------------------------------------------------------------------- 380 * |Bits |Field |Descriptions 381 * | :----: | :----: | :---- | 382 * |[0] |LPS |Clear Global Power 383 * | | |In global power mode (PSM (HcRhDescriptorA[8]) = 0), this bit is written to one to clear all ports' power. 384 * | | |This bit always read as zero. 385 * | | |Write Operation: 386 * | | |0 = No effect. 387 * | | |1 = Clear global power. 388 * |[1] |OCI |over Current Indicator 389 * | | |This bit reflects the state of the over current status pin 390 * | | |This field is only valid if NOCP (HcRhDesA[12]) and OCPM (HcRhDesA[11]) are cleared. 391 * | | |0 = No over current condition. 392 * | | |1 = Over current condition. 393 * |[15] |DRWE |Device Remote Wakeup Enable Bit 394 * | | |This bit controls if port's Connect Status Change as a remote wake-up event. 395 * | | |Write Operation: 396 * | | |0 = No effect. 397 * | | |1 = Connect Status Change as a remote wake-up event Enabled. 398 * | | |Read Operation: 399 * | | |0 = Connect Status Change as a remote wake-up event Disabled. 400 * | | |1 = Connect Status Change as a remote wake-up event Enabled. 401 * |[16] |LPSC |Set Global Power 402 * | | |In global power mode (PSM (HcRhDescriptorA[8]) = 0), this bit is written to one to enable power to all ports. 403 * | | |This bit always read as zero. 404 * | | |Write Operation: 405 * | | |0 = No effect. 406 * | | |1 = Set global power. 407 * |[17] |OCIC |over Current Indicator Change 408 * | | |This bit is set by hardware when a change has occurred in OCI (HcRhStatus[1]). 409 * | | |Write 1 to clear this bit to zero. 410 * | | |0 = OCI (HcRhStatus[1]) didn't change. 411 * | | |1 = OCI (HcRhStatus[1]) change. 412 * |[31] |CRWE |Clear Remote Wake-up Enable Bit 413 * | | |This bit is use to clear DRWE (HcRhStatus[15]). 414 * | | |This bit always read as zero. 415 * | | |Write Operation: 416 * | | |0 = No effect. 417 * | | |1 = Clear DRWE (HcRhStatus[15]). 418 * @var USBH_T::HcRhPortStatus[2] 419 * Offset: 0x54 Host Controller Root Hub Port Status 420 * --------------------------------------------------------------------------------------------------- 421 * |Bits |Field |Descriptions 422 * | :----: | :----: | :---- | 423 * |[0] |CCS |CurrentConnectStatus (Read) or ClearPortEnable Bit (Write) 424 * | | |Write Operation: 425 * | | |0 = No effect. 426 * | | |1 = Clear port enable. 427 * | | |Read Operation: 428 * | | |0 = No device connected. 429 * | | |1 = Device connected. 430 * |[1] |PES |Port Enable Status 431 * | | |Write Operation: 432 * | | |0 = No effect. 433 * | | |1 = Set port enable. 434 * | | |Read Operation: 435 * | | |0 = Port Disabled. 436 * | | |1 = Port Enabled. 437 * |[2] |PSS |Port Suspend Status 438 * | | |This bit indicates the port is suspended 439 * | | |Write Operation: 440 * | | |0 = No effect. 441 * | | |1 = Set port suspend. 442 * | | |Read Operation: 443 * | | |0 = Port is not suspended. 444 * | | |1 = Port is selectively suspended. 445 * |[3] |POCI |Port over Current Indicator (Read) or Clear Port Suspend (Write) 446 * | | |This bit reflects the state of the over current status pin dedicated to this port 447 * | | |This field is only valid if NOCP (HcRhDescriptorA[12]) is cleared and OCPM (HcRhDescriptorA[11]) is set. 448 * | | |This bit is also used to initiate the selective result sequence for the port. 449 * | | |Write Operation: 450 * | | |0 = No effect. 451 * | | |1 = Clear port suspend. 452 * | | |Read Operation: 453 * | | |0 = No over current condition. 454 * | | |1 = Over current condition. 455 * |[4] |PRS |Port Reset Status 456 * | | |This bit reflects the reset state of the port. 457 * | | |Write Operation: 458 * | | |0 = No effect. 459 * | | |1 = Set port reset. 460 * | | |Read Operation 461 * | | |0 = Port reset signal is not active. 462 * | | |1 = Port reset signal is active. 463 * |[8] |PPS |Port Power Status 464 * | | |This bit reflects the power state of the port regardless of the power switching mode. 465 * | | |Write Operation: 466 * | | |0 = No effect. 467 * | | |1 = Port Power Enabled. 468 * | | |Read Operation: 469 * | | |0 = Port power is Disabled. 470 * | | |1 = Port power is Enabled. 471 * |[9] |LSDA |Low Speed Device Attached (Read) or Clear Port Power (Write) 472 * | | |This bit defines the speed (and bud idle) of the attached device 473 * | | |It is only valid when CCS (HcRhPortStatus1[0]) is set. 474 * | | |This bit is also used to clear port power. 475 * | | |Write Operation: 476 * | | |0 = No effect. 477 * | | |1 = Clear PPS (HcRhPortStatus1[8]). 478 * | | |Read Operation: 479 * | | |0 = Full Speed device. 480 * | | |1 = Low-speed device. 481 * |[16] |CSC |Connect Status Change 482 * | | |This bit indicates connect or disconnect event has been detected (CCS (HcRhPortStatus1[0]) changed). 483 * | | |Write 1 to clear this bit to zero. 484 * | | |0 = No connect/disconnect event (CCS (HcRhPortStatus1[0]) didn't change). 485 * | | |1 = Hardware detection of connect/disconnect event (CCS (HcRhPortStatus1[0]) changed). 486 * |[17] |PESC |Port Enable Status Change 487 * | | |This bit indicates that the port has been disabled (PES (HcRhPortStatus1[1]) cleared) due to a hardware event. 488 * | | |Write 1 to clear this bit to zero. 489 * | | |0 = PES (HcRhPortStatus1[1]) didn't change. 490 * | | |1 = PES (HcRhPortStatus1[1]) changed. 491 * |[18] |PSSC |Port Suspend Status Change 492 * | | |This bit indicates the completion of the selective resume sequence for the port. 493 * | | |Write 1 to clear this bit to zero. 494 * | | |0 = Port resume is not completed. 495 * | | |1 = Port resume completed. 496 * |[19] |OCIC |Port over Current Indicator Change 497 * | | |This bit is set when POCI (HcRhPortStatus1[3]) changes. 498 * | | |Write 1 to clear this bit to zero. 499 * | | |0 = POCI (HcRhPortStatus1[3]) didn't change. 500 * | | |1 = POCI (HcRhPortStatus1[3]) changes. 501 * |[20] |PRSC |Port Reset Status Change 502 * | | |This bit indicates that the port reset signal has completed. 503 * | | |Write 1 to clear this bit to zero. 504 * | | |0 = Port reset is not complete. 505 * | | |1 = Port reset is complete. 506 * @var USBH_T::HcPhyControl 507 * Offset: 0x200 Host Controller PHY Control Register 508 * --------------------------------------------------------------------------------------------------- 509 * |Bits |Field |Descriptions 510 * | :----: | :----: | :---- | 511 * |[27] |STBYEN |USB Transceiver Standby Enable Bit 512 * | | |This bit controls if USB transceiver could enter the standby mode to reduce power consumption. 513 * | | |0 = The USB transceiver would never enter the standby mode. 514 * | | |1 = The USB transceiver will enter standby mode while port is in power off state (port power is inactive). 515 * @var USBH_T::HcMiscControl 516 * Offset: 0x204 Host Controller Miscellaneous Control Register 517 * --------------------------------------------------------------------------------------------------- 518 * |Bits |Field |Descriptions 519 * | :----: | :----: | :---- | 520 * |[1] |ABORT |AHB Bus ERROR Response 521 * | | |This bit indicates there is an ERROR response received in AHB bus. 522 * | | |0 = No ERROR response received. 523 * | | |1 = ERROR response received. 524 * |[3] |OCAL |over Current Active Low 525 * | | |This bit controls the polarity of over current flag from external power IC. 526 * | | |0 = Over current flag is high active. 527 * | | |1 = Over current flag is low active. 528 * |[16] |DPRT1 |Disable Port 1 529 * | | |This bit controls if the connection between USB host controller and transceiver of port 1 is disabled 530 * | | |If the connection is disabled, the USB host controller will not recognize any event of USB bus. 531 * | | |Set this bit high, the transceiver of port 1 will also be forced into the standby mode no matter what USB host controller operation is. 532 * | | |0 = The connection between USB host controller and transceiver of port 1 Enabled. 533 * | | |1 = The connection between USB host controller and transceiver of port 1 Disabled and the transceiver of port 1 will also be forced into the standby mode. 534 */ 535 __I uint32_t HcRevision; /*!< [0x0000] Host Controller Revision Register */ 536 __IO uint32_t HcControl; /*!< [0x0004] Host Controller Control Register */ 537 __IO uint32_t HcCommandStatus; /*!< [0x0008] Host Controller Command Status Register */ 538 __IO uint32_t HcInterruptStatus; /*!< [0x000c] Host Controller Interrupt Status Register */ 539 __IO uint32_t HcInterruptEnable; /*!< [0x0010] Host Controller Interrupt Enable Register */ 540 __IO uint32_t HcInterruptDisable; /*!< [0x0014] Host Controller Interrupt Disable Register */ 541 __IO uint32_t HcHCCA; /*!< [0x0018] Host Controller Communication Area Register */ 542 __IO uint32_t HcPeriodCurrentED; /*!< [0x001c] Host Controller Period Current ED Register */ 543 __IO uint32_t HcControlHeadED; /*!< [0x0020] Host Controller Control Head ED Register */ 544 __IO uint32_t HcControlCurrentED; /*!< [0x0024] Host Controller Control Current ED Register */ 545 __IO uint32_t HcBulkHeadED; /*!< [0x0028] Host Controller Bulk Head ED Register */ 546 __IO uint32_t HcBulkCurrentED; /*!< [0x002c] Host Controller Bulk Current ED Register */ 547 __IO uint32_t HcDoneHead; /*!< [0x0030] Host Controller Done Head Register */ 548 __IO uint32_t HcFmInterval; /*!< [0x0034] Host Controller Frame Interval Register */ 549 __I uint32_t HcFmRemaining; /*!< [0x0038] Host Controller Frame Remaining Register */ 550 __I uint32_t HcFmNumber; /*!< [0x003c] Host Controller Frame Number Register */ 551 __IO uint32_t HcPeriodicStart; /*!< [0x0040] Host Controller Periodic Start Register */ 552 __IO uint32_t HcLSThreshold; /*!< [0x0044] Host Controller Low-speed Threshold Register */ 553 __IO uint32_t HcRhDescriptorA; /*!< [0x0048] Host Controller Root Hub Descriptor A Register */ 554 __IO uint32_t HcRhDescriptorB; /*!< [0x004c] Host Controller Root Hub Descriptor B Register */ 555 __IO uint32_t HcRhStatus; /*!< [0x0050] Host Controller Root Hub Status Register */ 556 __IO uint32_t HcRhPortStatus[2]; /*!< [0x0054] Host Controller Root Hub Port Status [1] */ 557 /// @cond HIDDEN_SYMBOLS 558 __I uint32_t RESERVE0[105]; 559 /// @endcond //HIDDEN_SYMBOLS 560 __IO uint32_t HcPhyControl; /*!< [0x0200] Host Controller PHY Control Register */ 561 __IO uint32_t HcMiscControl; /*!< [0x0204] Host Controller Miscellaneous Control Register */ 562 563 } USBH_T; 564 565 /** 566 @addtogroup USBH_CONST USBH Bit Field Definition 567 Constant Definitions for USBH Controller 568 @{ */ 569 570 #define USBH_HcRevision_REV_Pos (0) /*!< USBH_T::HcRevision: REV Position */ 571 #define USBH_HcRevision_REV_Msk (0xfful << USBH_HcRevision_REV_Pos) /*!< USBH_T::HcRevision: REV Mask */ 572 573 #define USBH_HcControl_CBSR_Pos (0) /*!< USBH_T::HcControl: CBSR Position */ 574 #define USBH_HcControl_CBSR_Msk (0x3ul << USBH_HcControl_CBSR_Pos) /*!< USBH_T::HcControl: CBSR Mask */ 575 576 #define USBH_HcControl_PLE_Pos (2) /*!< USBH_T::HcControl: PLE Position */ 577 #define USBH_HcControl_PLE_Msk (0x1ul << USBH_HcControl_PLE_Pos) /*!< USBH_T::HcControl: PLE Mask */ 578 579 #define USBH_HcControl_IE_Pos (3) /*!< USBH_T::HcControl: IE Position */ 580 #define USBH_HcControl_IE_Msk (0x1ul << USBH_HcControl_IE_Pos) /*!< USBH_T::HcControl: IE Mask */ 581 582 #define USBH_HcControl_CLE_Pos (4) /*!< USBH_T::HcControl: CLE Position */ 583 #define USBH_HcControl_CLE_Msk (0x1ul << USBH_HcControl_CLE_Pos) /*!< USBH_T::HcControl: CLE Mask */ 584 585 #define USBH_HcControl_BLE_Pos (5) /*!< USBH_T::HcControl: BLE Position */ 586 #define USBH_HcControl_BLE_Msk (0x1ul << USBH_HcControl_BLE_Pos) /*!< USBH_T::HcControl: BLE Mask */ 587 588 #define USBH_HcControl_HCFS_Pos (6) /*!< USBH_T::HcControl: HCFS Position */ 589 #define USBH_HcControl_HCFS_Msk (0x3ul << USBH_HcControl_HCFS_Pos) /*!< USBH_T::HcControl: HCFS Mask */ 590 591 #define USBH_HcCommandStatus_HCR_Pos (0) /*!< USBH_T::HcCommandStatus: HCR Position */ 592 #define USBH_HcCommandStatus_HCR_Msk (0x1ul << USBH_HcCommandStatus_HCR_Pos) /*!< USBH_T::HcCommandStatus: HCR Mask */ 593 594 #define USBH_HcCommandStatus_CLF_Pos (1) /*!< USBH_T::HcCommandStatus: CLF Position */ 595 #define USBH_HcCommandStatus_CLF_Msk (0x1ul << USBH_HcCommandStatus_CLF_Pos) /*!< USBH_T::HcCommandStatus: CLF Mask */ 596 597 #define USBH_HcCommandStatus_BLF_Pos (2) /*!< USBH_T::HcCommandStatus: BLF Position */ 598 #define USBH_HcCommandStatus_BLF_Msk (0x1ul << USBH_HcCommandStatus_BLF_Pos) /*!< USBH_T::HcCommandStatus: BLF Mask */ 599 600 #define USBH_HcCommandStatus_SOC_Pos (16) /*!< USBH_T::HcCommandStatus: SOC Position */ 601 #define USBH_HcCommandStatus_SOC_Msk (0x3ul << USBH_HcCommandStatus_SOC_Pos) /*!< USBH_T::HcCommandStatus: SOC Mask */ 602 603 #define USBH_HcInterruptStatus_SO_Pos (0) /*!< USBH_T::HcInterruptStatus: SO Position */ 604 #define USBH_HcInterruptStatus_SO_Msk (0x1ul << USBH_HcInterruptStatus_SO_Pos) /*!< USBH_T::HcInterruptStatus: SO Mask */ 605 606 #define USBH_HcInterruptStatus_WDH_Pos (1) /*!< USBH_T::HcInterruptStatus: WDH Position*/ 607 #define USBH_HcInterruptStatus_WDH_Msk (0x1ul << USBH_HcInterruptStatus_WDH_Pos) /*!< USBH_T::HcInterruptStatus: WDH Mask */ 608 609 #define USBH_HcInterruptStatus_SF_Pos (2) /*!< USBH_T::HcInterruptStatus: SF Position */ 610 #define USBH_HcInterruptStatus_SF_Msk (0x1ul << USBH_HcInterruptStatus_SF_Pos) /*!< USBH_T::HcInterruptStatus: SF Mask */ 611 612 #define USBH_HcInterruptStatus_RD_Pos (3) /*!< USBH_T::HcInterruptStatus: RD Position */ 613 #define USBH_HcInterruptStatus_RD_Msk (0x1ul << USBH_HcInterruptStatus_RD_Pos) /*!< USBH_T::HcInterruptStatus: RD Mask */ 614 615 #define USBH_HcInterruptStatus_FNO_Pos (5) /*!< USBH_T::HcInterruptStatus: FNO Position*/ 616 #define USBH_HcInterruptStatus_FNO_Msk (0x1ul << USBH_HcInterruptStatus_FNO_Pos) /*!< USBH_T::HcInterruptStatus: FNO Mask */ 617 618 #define USBH_HcInterruptStatus_RHSC_Pos (6) /*!< USBH_T::HcInterruptStatus: RHSC Position*/ 619 #define USBH_HcInterruptStatus_RHSC_Msk (0x1ul << USBH_HcInterruptStatus_RHSC_Pos) /*!< USBH_T::HcInterruptStatus: RHSC Mask */ 620 621 #define USBH_HcInterruptEnable_SO_Pos (0) /*!< USBH_T::HcInterruptEnable: SO Position */ 622 #define USBH_HcInterruptEnable_SO_Msk (0x1ul << USBH_HcInterruptEnable_SO_Pos) /*!< USBH_T::HcInterruptEnable: SO Mask */ 623 624 #define USBH_HcInterruptEnable_WDH_Pos (1) /*!< USBH_T::HcInterruptEnable: WDH Position*/ 625 #define USBH_HcInterruptEnable_WDH_Msk (0x1ul << USBH_HcInterruptEnable_WDH_Pos) /*!< USBH_T::HcInterruptEnable: WDH Mask */ 626 627 #define USBH_HcInterruptEnable_SF_Pos (2) /*!< USBH_T::HcInterruptEnable: SF Position */ 628 #define USBH_HcInterruptEnable_SF_Msk (0x1ul << USBH_HcInterruptEnable_SF_Pos) /*!< USBH_T::HcInterruptEnable: SF Mask */ 629 630 #define USBH_HcInterruptEnable_RD_Pos (3) /*!< USBH_T::HcInterruptEnable: RD Position */ 631 #define USBH_HcInterruptEnable_RD_Msk (0x1ul << USBH_HcInterruptEnable_RD_Pos) /*!< USBH_T::HcInterruptEnable: RD Mask */ 632 633 #define USBH_HcInterruptEnable_FNO_Pos (5) /*!< USBH_T::HcInterruptEnable: FNO Position*/ 634 #define USBH_HcInterruptEnable_FNO_Msk (0x1ul << USBH_HcInterruptEnable_FNO_Pos) /*!< USBH_T::HcInterruptEnable: FNO Mask */ 635 636 #define USBH_HcInterruptEnable_RHSC_Pos (6) /*!< USBH_T::HcInterruptEnable: RHSC Position*/ 637 #define USBH_HcInterruptEnable_RHSC_Msk (0x1ul << USBH_HcInterruptEnable_RHSC_Pos) /*!< USBH_T::HcInterruptEnable: RHSC Mask */ 638 639 #define USBH_HcInterruptEnable_MIE_Pos (31) /*!< USBH_T::HcInterruptEnable: MIE Position*/ 640 #define USBH_HcInterruptEnable_MIE_Msk (0x1ul << USBH_HcInterruptEnable_MIE_Pos) /*!< USBH_T::HcInterruptEnable: MIE Mask */ 641 642 #define USBH_HcInterruptDisable_SO_Pos (0) /*!< USBH_T::HcInterruptDisable: SO Position*/ 643 #define USBH_HcInterruptDisable_SO_Msk (0x1ul << USBH_HcInterruptDisable_SO_Pos) /*!< USBH_T::HcInterruptDisable: SO Mask */ 644 645 #define USBH_HcInterruptDisable_WDH_Pos (1) /*!< USBH_T::HcInterruptDisable: WDH Position*/ 646 #define USBH_HcInterruptDisable_WDH_Msk (0x1ul << USBH_HcInterruptDisable_WDH_Pos) /*!< USBH_T::HcInterruptDisable: WDH Mask */ 647 648 #define USBH_HcInterruptDisable_SF_Pos (2) /*!< USBH_T::HcInterruptDisable: SF Position*/ 649 #define USBH_HcInterruptDisable_SF_Msk (0x1ul << USBH_HcInterruptDisable_SF_Pos) /*!< USBH_T::HcInterruptDisable: SF Mask */ 650 651 #define USBH_HcInterruptDisable_RD_Pos (3) /*!< USBH_T::HcInterruptDisable: RD Position*/ 652 #define USBH_HcInterruptDisable_RD_Msk (0x1ul << USBH_HcInterruptDisable_RD_Pos) /*!< USBH_T::HcInterruptDisable: RD Mask */ 653 654 #define USBH_HcInterruptDisable_FNO_Pos (5) /*!< USBH_T::HcInterruptDisable: FNO Position*/ 655 #define USBH_HcInterruptDisable_FNO_Msk (0x1ul << USBH_HcInterruptDisable_FNO_Pos) /*!< USBH_T::HcInterruptDisable: FNO Mask */ 656 657 #define USBH_HcInterruptDisable_RHSC_Pos (6) /*!< USBH_T::HcInterruptDisable: RHSC Position*/ 658 #define USBH_HcInterruptDisable_RHSC_Msk (0x1ul << USBH_HcInterruptDisable_RHSC_Pos) /*!< USBH_T::HcInterruptDisable: RHSC Mask */ 659 660 #define USBH_HcInterruptDisable_MIE_Pos (31) /*!< USBH_T::HcInterruptDisable: MIE Position*/ 661 #define USBH_HcInterruptDisable_MIE_Msk (0x1ul << USBH_HcInterruptDisable_MIE_Pos) /*!< USBH_T::HcInterruptDisable: MIE Mask */ 662 663 #define USBH_HcHCCA_HCCA_Pos (8) /*!< USBH_T::HcHCCA: HCCA Position */ 664 #define USBH_HcHCCA_HCCA_Msk (0xfffffful << USBH_HcHCCA_HCCA_Pos) /*!< USBH_T::HcHCCA: HCCA Mask */ 665 666 #define USBH_HcPeriodCurrentED_PCED_Pos (4) /*!< USBH_T::HcPeriodCurrentED: PCED Position*/ 667 #define USBH_HcPeriodCurrentED_PCED_Msk (0xffffffful << USBH_HcPeriodCurrentED_PCED_Pos) /*!< USBH_T::HcPeriodCurrentED: PCED Mask */ 668 669 #define USBH_HcControlHeadED_CHED_Pos (4) /*!< USBH_T::HcControlHeadED: CHED Position */ 670 #define USBH_HcControlHeadED_CHED_Msk (0xffffffful << USBH_HcControlHeadED_CHED_Pos) /*!< USBH_T::HcControlHeadED: CHED Mask */ 671 672 #define USBH_HcControlCurrentED_CCED_Pos (4) /*!< USBH_T::HcControlCurrentED: CCED Position*/ 673 #define USBH_HcControlCurrentED_CCED_Msk (0xffffffful << USBH_HcControlCurrentED_CCED_Pos) /*!< USBH_T::HcControlCurrentED: CCED Mask */ 674 675 #define USBH_HcBulkHeadED_BHED_Pos (4) /*!< USBH_T::HcBulkHeadED: BHED Position */ 676 #define USBH_HcBulkHeadED_BHED_Msk (0xffffffful << USBH_HcBulkHeadED_BHED_Pos) /*!< USBH_T::HcBulkHeadED: BHED Mask */ 677 678 #define USBH_HcBulkCurrentED_BCED_Pos (4) /*!< USBH_T::HcBulkCurrentED: BCED Position */ 679 #define USBH_HcBulkCurrentED_BCED_Msk (0xffffffful << USBH_HcBulkCurrentED_BCED_Pos) /*!< USBH_T::HcBulkCurrentED: BCED Mask */ 680 681 #define USBH_HcDoneHead_DH_Pos (4) /*!< USBH_T::HcDoneHead: DH Position */ 682 #define USBH_HcDoneHead_DH_Msk (0xffffffful << USBH_HcDoneHead_DH_Pos) /*!< USBH_T::HcDoneHead: DH Mask */ 683 684 #define USBH_HcFmInterval_FI_Pos (0) /*!< USBH_T::HcFmInterval: FI Position */ 685 #define USBH_HcFmInterval_FI_Msk (0x3ffful << USBH_HcFmInterval_FI_Pos) /*!< USBH_T::HcFmInterval: FI Mask */ 686 687 #define USBH_HcFmInterval_FSMPS_Pos (16) /*!< USBH_T::HcFmInterval: FSMPS Position */ 688 #define USBH_HcFmInterval_FSMPS_Msk (0x7ffful << USBH_HcFmInterval_FSMPS_Pos) /*!< USBH_T::HcFmInterval: FSMPS Mask */ 689 690 #define USBH_HcFmInterval_FIT_Pos (31) /*!< USBH_T::HcFmInterval: FIT Position */ 691 #define USBH_HcFmInterval_FIT_Msk (0x1ul << USBH_HcFmInterval_FIT_Pos) /*!< USBH_T::HcFmInterval: FIT Mask */ 692 693 #define USBH_HcFmRemaining_FR_Pos (0) /*!< USBH_T::HcFmRemaining: FR Position */ 694 #define USBH_HcFmRemaining_FR_Msk (0x3ffful << USBH_HcFmRemaining_FR_Pos) /*!< USBH_T::HcFmRemaining: FR Mask */ 695 696 #define USBH_HcFmRemaining_FRT_Pos (31) /*!< USBH_T::HcFmRemaining: FRT Position */ 697 #define USBH_HcFmRemaining_FRT_Msk (0x1ul << USBH_HcFmRemaining_FRT_Pos) /*!< USBH_T::HcFmRemaining: FRT Mask */ 698 699 #define USBH_HcFmNumber_FN_Pos (0) /*!< USBH_T::HcFmNumber: FN Position */ 700 #define USBH_HcFmNumber_FN_Msk (0xfffful << USBH_HcFmNumber_FN_Pos) /*!< USBH_T::HcFmNumber: FN Mask */ 701 702 #define USBH_HcPeriodicStart_PS_Pos (0) /*!< USBH_T::HcPeriodicStart: PS Position */ 703 #define USBH_HcPeriodicStart_PS_Msk (0x3ffful << USBH_HcPeriodicStart_PS_Pos) /*!< USBH_T::HcPeriodicStart: PS Mask */ 704 705 #define USBH_HcLSThreshold_LST_Pos (0) /*!< USBH_T::HcLSThreshold: LST Position */ 706 #define USBH_HcLSThreshold_LST_Msk (0xffful << USBH_HcLSThreshold_LST_Pos) /*!< USBH_T::HcLSThreshold: LST Mask */ 707 708 #define USBH_HcRhDescriptorA_NDP_Pos (0) /*!< USBH_T::HcRhDescriptorA: NDP Position */ 709 #define USBH_HcRhDescriptorA_NDP_Msk (0xfful << USBH_HcRhDescriptorA_NDP_Pos) /*!< USBH_T::HcRhDescriptorA: NDP Mask */ 710 711 #define USBH_HcRhDescriptorA_PSM_Pos (8) /*!< USBH_T::HcRhDescriptorA: PSM Position */ 712 #define USBH_HcRhDescriptorA_PSM_Msk (0x1ul << USBH_HcRhDescriptorA_PSM_Pos) /*!< USBH_T::HcRhDescriptorA: PSM Mask */ 713 714 #define USBH_HcRhDescriptorA_OCPM_Pos (11) /*!< USBH_T::HcRhDescriptorA: OCPM Position */ 715 #define USBH_HcRhDescriptorA_OCPM_Msk (0x1ul << USBH_HcRhDescriptorA_OCPM_Pos) /*!< USBH_T::HcRhDescriptorA: OCPM Mask */ 716 717 #define USBH_HcRhDescriptorA_NOCP_Pos (12) /*!< USBH_T::HcRhDescriptorA: NOCP Position */ 718 #define USBH_HcRhDescriptorA_NOCP_Msk (0x1ul << USBH_HcRhDescriptorA_NOCP_Pos) /*!< USBH_T::HcRhDescriptorA: NOCP Mask */ 719 720 #define USBH_HcRhDescriptorB_PPCM_Pos (16) /*!< USBH_T::HcRhDescriptorB: PPCM Position */ 721 #define USBH_HcRhDescriptorB_PPCM_Msk (0xfffful << USBH_HcRhDescriptorB_PPCM_Pos) /*!< USBH_T::HcRhDescriptorB: PPCM Mask */ 722 723 #define USBH_HcRhStatus_LPS_Pos (0) /*!< USBH_T::HcRhStatus: LPS Position */ 724 #define USBH_HcRhStatus_LPS_Msk (0x1ul << USBH_HcRhStatus_LPS_Pos) /*!< USBH_T::HcRhStatus: LPS Mask */ 725 726 #define USBH_HcRhStatus_OCI_Pos (1) /*!< USBH_T::HcRhStatus: OCI Position */ 727 #define USBH_HcRhStatus_OCI_Msk (0x1ul << USBH_HcRhStatus_OCI_Pos) /*!< USBH_T::HcRhStatus: OCI Mask */ 728 729 #define USBH_HcRhStatus_DRWE_Pos (15) /*!< USBH_T::HcRhStatus: DRWE Position */ 730 #define USBH_HcRhStatus_DRWE_Msk (0x1ul << USBH_HcRhStatus_DRWE_Pos) /*!< USBH_T::HcRhStatus: DRWE Mask */ 731 732 #define USBH_HcRhStatus_LPSC_Pos (16) /*!< USBH_T::HcRhStatus: LPSC Position */ 733 #define USBH_HcRhStatus_LPSC_Msk (0x1ul << USBH_HcRhStatus_LPSC_Pos) /*!< USBH_T::HcRhStatus: LPSC Mask */ 734 735 #define USBH_HcRhStatus_OCIC_Pos (17) /*!< USBH_T::HcRhStatus: OCIC Position */ 736 #define USBH_HcRhStatus_OCIC_Msk (0x1ul << USBH_HcRhStatus_OCIC_Pos) /*!< USBH_T::HcRhStatus: OCIC Mask */ 737 738 #define USBH_HcRhStatus_CRWE_Pos (31) /*!< USBH_T::HcRhStatus: CRWE Position */ 739 #define USBH_HcRhStatus_CRWE_Msk (0x1ul << USBH_HcRhStatus_CRWE_Pos) /*!< USBH_T::HcRhStatus: CRWE Mask */ 740 741 #define USBH_HcRhPortStatus_CCS_Pos (0) /*!< USBH_T::HcRhPortStatus1: CCS Position */ 742 #define USBH_HcRhPortStatus_CCS_Msk (0x1ul << USBH_HcRhPortStatus_CCS_Pos) /*!< USBH_T::HcRhPortStatus1: CCS Mask */ 743 744 #define USBH_HcRhPortStatus_PES_Pos (1) /*!< USBH_T::HcRhPortStatus1: PES Position */ 745 #define USBH_HcRhPortStatus_PES_Msk (0x1ul << USBH_HcRhPortStatus_PES_Pos) /*!< USBH_T::HcRhPortStatus1: PES Mask */ 746 747 #define USBH_HcRhPortStatus_PSS_Pos (2) /*!< USBH_T::HcRhPortStatus1: PSS Position */ 748 #define USBH_HcRhPortStatus_PSS_Msk (0x1ul << USBH_HcRhPortStatus_PSS_Pos) /*!< USBH_T::HcRhPortStatus1: PSS Mask */ 749 750 #define USBH_HcRhPortStatus_POCI_Pos (3) /*!< USBH_T::HcRhPortStatus1: POCI Position */ 751 #define USBH_HcRhPortStatus_POCI_Msk (0x1ul << USBH_HcRhPortStatus_POCI_Pos) /*!< USBH_T::HcRhPortStatus1: POCI Mask */ 752 753 #define USBH_HcRhPortStatus_PRS_Pos (4) /*!< USBH_T::HcRhPortStatus1: PRS Position */ 754 #define USBH_HcRhPortStatus_PRS_Msk (0x1ul << USBH_HcRhPortStatus_PRS_Pos) /*!< USBH_T::HcRhPortStatus1: PRS Mask */ 755 756 #define USBH_HcRhPortStatus_PPS_Pos (8) /*!< USBH_T::HcRhPortStatus1: PPS Position */ 757 #define USBH_HcRhPortStatus_PPS_Msk (0x1ul << USBH_HcRhPortStatus_PPS_Pos) /*!< USBH_T::HcRhPortStatus1: PPS Mask */ 758 759 #define USBH_HcRhPortStatus_LSDA_Pos (9) /*!< USBH_T::HcRhPortStatus1: LSDA Position */ 760 #define USBH_HcRhPortStatus_LSDA_Msk (0x1ul << USBH_HcRhPortStatus_LSDA_Pos) /*!< USBH_T::HcRhPortStatus1: LSDA Mask */ 761 762 #define USBH_HcRhPortStatus_CSC_Pos (16) /*!< USBH_T::HcRhPortStatus1: CSC Position */ 763 #define USBH_HcRhPortStatus_CSC_Msk (0x1ul << USBH_HcRhPortStatus_CSC_Pos) /*!< USBH_T::HcRhPortStatus1: CSC Mask */ 764 765 #define USBH_HcRhPortStatus_PESC_Pos (17) /*!< USBH_T::HcRhPortStatus1: PESC Position */ 766 #define USBH_HcRhPortStatus_PESC_Msk (0x1ul << USBH_HcRhPortStatus_PESC_Pos) /*!< USBH_T::HcRhPortStatus1: PESC Mask */ 767 768 #define USBH_HcRhPortStatus_PSSC_Pos (18) /*!< USBH_T::HcRhPortStatus1: PSSC Position */ 769 #define USBH_HcRhPortStatus_PSSC_Msk (0x1ul << USBH_HcRhPortStatus_PSSC_Pos) /*!< USBH_T::HcRhPortStatus1: PSSC Mask */ 770 771 #define USBH_HcRhPortStatus_OCIC_Pos (19) /*!< USBH_T::HcRhPortStatus1: OCIC Position */ 772 #define USBH_HcRhPortStatus_OCIC_Msk (0x1ul << USBH_HcRhPortStatus_OCIC_Pos) /*!< USBH_T::HcRhPortStatus1: OCIC Mask */ 773 774 #define USBH_HcRhPortStatus_PRSC_Pos (20) /*!< USBH_T::HcRhPortStatus1: PRSC Position */ 775 #define USBH_HcRhPortStatus_PRSC_Msk (0x1ul << USBH_HcRhPortStatus_PRSC_Pos) /*!< USBH_T::HcRhPortStatus1: PRSC Mask */ 776 777 #define USBH_HcPhyControl_STBYEN_Pos (27) /*!< USBH_T::HcPhyControl: STBYEN Position */ 778 #define USBH_HcPhyControl_STBYEN_Msk (0x1ul << USBH_HcPhyControl_STBYEN_Pos) /*!< USBH_T::HcPhyControl: STBYEN Mask */ 779 780 #define USBH_HcMiscControl_ABORT_Pos (1) /*!< USBH_T::HcMiscControl: ABORT Position */ 781 #define USBH_HcMiscControl_ABORT_Msk (0x1ul << USBH_HcMiscControl_ABORT_Pos) /*!< USBH_T::HcMiscControl: ABORT Mask */ 782 783 #define USBH_HcMiscControl_OCAL_Pos (3) /*!< USBH_T::HcMiscControl: OCAL Position */ 784 #define USBH_HcMiscControl_OCAL_Msk (0x1ul << USBH_HcMiscControl_OCAL_Pos) /*!< USBH_T::HcMiscControl: OCAL Mask */ 785 786 #define USBH_HcMiscControl_DPRT1_Pos (16) /*!< USBH_T::HcMiscControl: DPRT1 Position */ 787 #define USBH_HcMiscControl_DPRT1_Msk (0x1ul << USBH_HcMiscControl_DPRT1_Pos) /*!< USBH_T::HcMiscControl: DPRT1 Mask */ 788 789 /**@}*/ /* USBH_CONST */ 790 /**@}*/ /* end of USBH register group */ 791 /**@}*/ /* end of REGISTER group */ 792 793 #if defined ( __CC_ARM ) 794 #pragma no_anon_unions 795 #endif 796 797 #endif /* __USBH_REG_H__ */ 798