Home
last modified time | relevance | path

Searched refs:port (Results 1 – 8 of 8) sorted by relevance

/hal_infineon-2.7.6/XMCLib/drivers/inc/
Dxmc4_gpio.h80 #define XMC_GPIO_CHECK_PORT0(port) (port == XMC_GPIO_PORT0) argument
82 #define XMC_GPIO_CHECK_PORT0(port) 0 argument
87 #define XMC_GPIO_CHECK_PORT1(port) (port == XMC_GPIO_PORT1) argument
89 #define XMC_GPIO_CHECK_PORT1(port) 0 argument
94 #define XMC_GPIO_CHECK_PORT2(port) (port == XMC_GPIO_PORT2) argument
96 #define XMC_GPIO_CHECK_PORT2(port) 0 argument
101 #define XMC_GPIO_CHECK_PORT3(port) (port == XMC_GPIO_PORT3) argument
103 #define XMC_GPIO_CHECK_PORT3(port) 0 argument
108 #define XMC_GPIO_CHECK_PORT4(port) (port == XMC_GPIO_PORT4) argument
110 #define XMC_GPIO_CHECK_PORT4(port) 0 argument
[all …]
Dxmc_gpio.h185 void XMC_GPIO_Init(XMC_GPIO_PORT_t *const port, const uint8_t pin, const XMC_GPIO_CONFIG_t *const c…
205 void XMC_GPIO_SetMode(XMC_GPIO_PORT_t *const port, const uint8_t pin, const XMC_GPIO_MODE_t mode);
229 __STATIC_INLINE void XMC_GPIO_SetOutputLevel(XMC_GPIO_PORT_t *const port, const uint8_t pin, const … in XMC_GPIO_SetOutputLevel() argument
231 XMC_ASSERT("XMC_GPIO_SetOutputLevel: Invalid port", XMC_GPIO_CHECK_OUTPUT_PORT(port)); in XMC_GPIO_SetOutputLevel()
234 port->OMR = (uint32_t)level << pin; in XMC_GPIO_SetOutputLevel()
256 __STATIC_INLINE void XMC_GPIO_SetOutputHigh(XMC_GPIO_PORT_t *const port, const uint8_t pin) in XMC_GPIO_SetOutputHigh() argument
258 XMC_ASSERT("XMC_GPIO_SetOutputHigh: Invalid port", XMC_GPIO_CHECK_OUTPUT_PORT(port)); in XMC_GPIO_SetOutputHigh()
260 port->OMR = (uint32_t)0x1U << pin; in XMC_GPIO_SetOutputHigh()
282 __STATIC_INLINE void XMC_GPIO_SetOutputLow(XMC_GPIO_PORT_t *const port, const uint8_t pin) in XMC_GPIO_SetOutputLow() argument
284 XMC_ASSERT("XMC_GPIO_SetOutputLow: Invalid port", XMC_GPIO_CHECK_OUTPUT_PORT(port)); in XMC_GPIO_SetOutputLow()
[all …]
Dxmc1_gpio.h78 #define XMC_GPIO_CHECK_PORT0(port) (port == XMC_GPIO_PORT0) argument
80 #define XMC_GPIO_CHECK_PORT0(port) 0 argument
85 #define XMC_GPIO_CHECK_PORT1(port) (port == XMC_GPIO_PORT1) argument
87 #define XMC_GPIO_CHECK_PORT1(port) 0 argument
92 #define XMC_GPIO_CHECK_PORT2(port) (port == XMC_GPIO_PORT2) argument
94 #define XMC_GPIO_CHECK_PORT2(port) 0 argument
99 #define XMC_GPIO_CHECK_PORT3(port) (port == XMC_GPIO_PORT3) argument
101 #define XMC_GPIO_CHECK_PORT3(port) 0 argument
106 #define XMC_GPIO_CHECK_PORT4(port) (port == XMC_GPIO_PORT4) argument
108 #define XMC_GPIO_CHECK_PORT4(port) 0 argument
[all …]
Dxmc_usbh.h269 typedef void (*XMC_USBH_SignalPortEvent_t) (uint8_t port, uint32_t event); /**< …
282 …int32_t (*PortVbusOnOff) (uint8_t port, bool vbus); /**< Po…
283 …int32_t (*PortReset) (uint8_t port); /**< Po…
284 …int32_t (*PortSuspend) (uint8_t port); /**< Po…
285 …int32_t (*PortResume) (uint8_t port); /**< Po…
286 …XMC_USBH_PORT_STATE_t (*PortGetState) (uint8_t port); /**< Po…
384 void XMC_USBH_Select_VBUS(XMC_GPIO_PORT_t* port, uint32_t pin);
/hal_infineon-2.7.6/XMCLib/drivers/src/
Dxmc4_gpio.c69 void XMC_GPIO_Init(XMC_GPIO_PORT_t *const port, const uint8_t pin, const XMC_GPIO_CONFIG_t *const c… in XMC_GPIO_Init() argument
71 XMC_ASSERT("XMC_GPIO_Init: Invalid port", XMC_GPIO_CHECK_PORT(port)); in XMC_GPIO_Init()
75 port->IOCR[pin >> 2U] &= (uint32_t)~(PORT_IOCR_PC_Msk << (PORT_IOCR_PC_Size * (pin & 0x3U))); in XMC_GPIO_Init()
78 port->HWSEL &= ~(uint32_t)((uint32_t)PORT_HWSEL_Msk << ((uint32_t)pin << 1U)); in XMC_GPIO_Init()
82 if (XMC_GPIO_CHECK_ANALOG_PORT(port)) in XMC_GPIO_Init()
84 port->PDISC &= ~(uint32_t)((uint32_t)0x1U << pin); in XMC_GPIO_Init()
93 port->OMR = (uint32_t)config->output_level << pin; in XMC_GPIO_Init()
96port->PDR[pin >> 3U] &= (uint32_t)~(PORT_PDR_Msk << ((uint32_t)PORT_PDR_Size * ((uint32_t)pin & 0x… in XMC_GPIO_Init()
97port->PDR[pin >> 3U] |= (uint32_t)config->output_strength << ((uint32_t)PORT_PDR_Size * ((uint32_t… in XMC_GPIO_Init()
102port->IOCR[pin >> 2U] |= (uint32_t)config->mode << ((uint32_t)PORT_IOCR_PC_Size * ((uint32_t)pin &… in XMC_GPIO_Init()
[all …]
Dxmc1_gpio.c72 void XMC_GPIO_Init(XMC_GPIO_PORT_t *const port, const uint8_t pin, const XMC_GPIO_CONFIG_t *const c… in XMC_GPIO_Init() argument
74 XMC_ASSERT("XMC_GPIO_Init: Invalid port", XMC_GPIO_CHECK_PORT(port)); in XMC_GPIO_Init()
79port->IOCR[pin >> 2U] &= ~(uint32_t)((uint32_t)PORT_IOCR_PC_Msk << (PORT_IOCR_PC_Size * (pin & 0x3… in XMC_GPIO_Init()
82 port->HWSEL &= ~(uint32_t)((uint32_t)PORT_HWSEL_Msk << ((uint32_t)pin << 1U)); in XMC_GPIO_Init()
85port->PHCR[(uint32_t)pin >> 3U] &= ~(uint32_t)((uint32_t)PORT_PHCR_Msk << ((uint32_t)PORT_PHCR_Siz… in XMC_GPIO_Init()
86port->PHCR[(uint32_t)pin >> 3U] |= (uint32_t)config->input_hysteresis << ((uint32_t)PORT_PHCR_Size… in XMC_GPIO_Init()
89 if (XMC_GPIO_CHECK_ANALOG_PORT(port)) in XMC_GPIO_Init()
91 port->PDISC &= ~(uint32_t)((uint32_t)0x1U << pin); in XMC_GPIO_Init()
99 port->OMR = (uint32_t)config->output_level << pin; in XMC_GPIO_Init()
103 port->IOCR[pin >> 2U] |= (uint32_t)config->mode << (PORT_IOCR_PC_Size * (pin & 0x3U)); in XMC_GPIO_Init()
[all …]
Dxmc_gpio.c65 void XMC_GPIO_SetMode(XMC_GPIO_PORT_t *const port, const uint8_t pin, const XMC_GPIO_MODE_t mode) in XMC_GPIO_SetMode() argument
67 XMC_ASSERT("XMC_GPIO_SetMode: Invalid port", XMC_GPIO_CHECK_PORT(port)); in XMC_GPIO_SetMode()
70port->IOCR[(uint32_t)pin >> 2U] &= ~(uint32_t)((uint32_t)PORT_IOCR_PC_Msk << ((uint32_t)PORT_IOCR_… in XMC_GPIO_SetMode()
71port->IOCR[(uint32_t)pin >> 2U] |= (uint32_t)mode << ((uint32_t)PORT_IOCR_PC_Size * ((uint32_t)pin… in XMC_GPIO_SetMode()
74 void XMC_GPIO_SetHardwareControl(XMC_GPIO_PORT_t *const port, const uint8_t pin, const XMC_GPIO_HWC… in XMC_GPIO_SetHardwareControl() argument
76 XMC_ASSERT("XMC_GPIO_SetHardwareControl: Invalid port", XMC_GPIO_CHECK_PORT(port)); in XMC_GPIO_SetHardwareControl()
79 port->HWSEL &= ~(uint32_t)((uint32_t)PORT_HWSEL_Msk << ((uint32_t)pin << 1U)); in XMC_GPIO_SetHardwareControl()
80 port->HWSEL |= (uint32_t)hwctrl << ((uint32_t)pin << 1U); in XMC_GPIO_SetHardwareControl()
Dxmc_usbh.c506 static int32_t XMC_USBH_PortVbusOnOff (uint8_t port, bool vbus) { in XMC_USBH_PortVbusOnOff() argument
514 if (port != 0U) in XMC_USBH_PortVbusOnOff()
542 static int32_t XMC_USBH_PortReset (uint8_t port) { in XMC_USBH_PortReset() argument
551 if (port != 0U) in XMC_USBH_PortReset()
591 static int32_t XMC_USBH_PortSuspend (uint8_t port) in XMC_USBH_PortSuspend() argument
601 if (port != 0U) in XMC_USBH_PortSuspend()
628 static int32_t XMC_USBH_PortResume (uint8_t port) in XMC_USBH_PortResume() argument
638 if (port != 0U) in XMC_USBH_PortResume()
672 static XMC_USBH_PORT_STATE_t XMC_USBH_PortGetState (uint8_t port) in XMC_USBH_PortGetState() argument
683 if (port != 0U) in XMC_USBH_PortGetState()
[all …]