d1_pac/usb1/ehci_capability/
hcsp_portroute.rs1#[doc = "Register `hcsp_portroute` reader"]
2pub type R = crate::R<HCSP_PORTROUTE_SPEC>;
3#[doc = "Field `hcsp_portroute` reader - This optional field is valid only if Port Routing Rules field in HCSPARAMS register is set to a one.\n\nThis field is used to allow a host controller implementation to explicitly describe to which companion host controller each implemented port is mapped. This field is a 15-element nibble array (each 4 bit is one array element). Each array location corresponds one-to-one with a physical port provided by the host controller (e.g. PORTROUTE \\[0\\] corresponds to the first PORTSC port, PORTROUTE \\[1\\] to the second PORTSC port, etc.). The value of each element indicates to which the companion host controllers this port is routed. Only the first N_PORTS elements have valid information. A value of zero indicates that the port is routed to the lowest numbered function companion host controller. A value of one indicates that the port is routed to the next lowest numbered function companion host controller, and so on."]
4pub type HCSP_PORTROUTE_R = crate::FieldReader<u32>;
5impl R {
6 #[doc = "Bits 0:31 - This optional field is valid only if Port Routing Rules field in HCSPARAMS register is set to a one.\n\nThis field is used to allow a host controller implementation to explicitly describe to which companion host controller each implemented port is mapped. This field is a 15-element nibble array (each 4 bit is one array element). Each array location corresponds one-to-one with a physical port provided by the host controller (e.g. PORTROUTE \\[0\\] corresponds to the first PORTSC port, PORTROUTE \\[1\\] to the second PORTSC port, etc.). The value of each element indicates to which the companion host controllers this port is routed. Only the first N_PORTS elements have valid information. A value of zero indicates that the port is routed to the lowest numbered function companion host controller. A value of one indicates that the port is routed to the next lowest numbered function companion host controller, and so on."]
7 #[inline(always)]
8 pub fn hcsp_portroute(&self) -> HCSP_PORTROUTE_R {
9 HCSP_PORTROUTE_R::new(self.bits)
10 }
11}
12#[doc = "EHCI Companion Port Route Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`hcsp_portroute::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct HCSP_PORTROUTE_SPEC;
14impl crate::RegisterSpec for HCSP_PORTROUTE_SPEC {
15 type Ux = u32;
16}
17#[doc = "`read()` method returns [`hcsp_portroute::R`](R) reader structure"]
18impl crate::Readable for HCSP_PORTROUTE_SPEC {}
19#[doc = "`reset()` method sets hcsp_portroute to value 0"]
20impl crate::Resettable for HCSP_PORTROUTE_SPEC {
21 const RESET_VALUE: Self::Ux = 0;
22}