gr55xx_ll_usb.h File Reference

Header file containing functions prototypes of usb LL library. More...

#include "gr55xx.h"

Go to the source code of this file.

Classes

struct  _ll_usb_init_t
 LL USB init structures definition. More...
 

Macros

#define LL_USB_PWR_MODE_LP   (0UL)
 
#define LL_USB_PWR_MODE_NORMAL   (1UL)
 
#define LL_USB_ENUM_TYPE_HW   (0x00000000UL)
 
#define LL_USB_ENUM_TYPE_MCU   (1UL << USB_CTRL_MCU_ENUM_Pos)
 
#define LL_USB_TRX_LDO_BIAS_SEL0   (0x00000000UL)
 
#define LL_USB_TRX_LDO_BIAS_SEL1   (1UL << AON_PMU_USB_TRX_LDO_BIAS_SEL_Pos)
 
#define LL_USB_TRX_LDO_BIAS_SEL2   (2UL << AON_PMU_USB_TRX_LDO_BIAS_SEL_Pos)
 
#define LL_USB_TRX_LDO_BIAS_SEL3   (3UL << AON_PMU_USB_TRX_LDO_BIAS_SEL_Pos)
 
#define LL_USB_TRX_LDO_BIAS_SEL4   (4UL << AON_PMU_USB_TRX_LDO_BIAS_SEL_Pos)
 
#define LL_USB_TRX_LDO_BIAS_SEL5   (5UL << AON_PMU_USB_TRX_LDO_BIAS_SEL_Pos)
 
#define LL_USB_TRX_LDO_BIAS_SEL6   (6UL << AON_PMU_USB_TRX_LDO_BIAS_SEL_Pos)
 
#define LL_USB_TRX_LDO_BIAS_SEL7   (7UL << AON_PMU_USB_TRX_LDO_BIAS_SEL_Pos)
 
#define LL_USB_TRX_LDO_VSEL0   (0x00000000UL)
 
#define LL_USB_TRX_LDO_VSEL1   (1UL << AON_PMU_USB_TRX_LDO_VSEL_Pos)
 
#define LL_USB_TRX_LDO_VSEL2   (2UL << AON_PMU_USB_TRX_LDO_VSEL_Pos)
 
#define LL_USB_TRX_LDO_VSEL3   (3UL << AON_PMU_USB_TRX_LDO_VSEL_Pos)
 
#define LL_USB_TRX_LDO_VSEL4   (4UL << AON_PMU_USB_TRX_LDO_VSEL_Pos)
 
#define LL_USB_TRX_LDO_VSEL5   (5UL << AON_PMU_USB_TRX_LDO_VSEL_Pos)
 
#define LL_USB_TRX_LDO_VSEL6   (6UL << AON_PMU_USB_TRX_LDO_VSEL_Pos)
 
#define LL_USB_TRX_LDO_VSEL7   (7UL << AON_PMU_USB_TRX_LDO_VSEL_Pos)
 
#define LL_USB_XCRV_CTRL_SPEED_LOW   (0x00000000UL)
 
#define LL_USB_XCRV_CTRL_SPEED_FULL   (1UL << MCU_SUB_USB_XCRV_CTRL_SPEED_Pos)
 
#define LL_USB_XCRV_CTRL_RTRIMN0   (0x00000000UL)
 
#define LL_USB_XCRV_CTRL_RTRIMN1   (1UL << MCU_SUB_USB_XCRV_CTRL_RTRIMN_Pos)
 
#define LL_USB_XCRV_CTRL_RTRIMN2   (2UL << MCU_SUB_USB_XCRV_CTRL_RTRIMN_Pos)
 
#define LL_USB_XCRV_CTRL_RTRIMN3   (3UL << MCU_SUB_USB_XCRV_CTRL_RTRIMN_Pos)
 
#define LL_USB_XCRV_CTRL_RTRIMN4   (4UL << MCU_SUB_USB_XCRV_CTRL_RTRIMN_Pos)
 
#define LL_USB_XCRV_CTRL_RTRIMN5   (5UL << MCU_SUB_USB_XCRV_CTRL_RTRIMN_Pos)
 
#define LL_USB_XCRV_CTRL_RTRIMN6   (6UL << MCU_SUB_USB_XCRV_CTRL_RTRIMN_Pos)
 
#define LL_USB_XCRV_CTRL_RTRIMN7   (7UL << MCU_SUB_USB_XCRV_CTRL_RTRIMN_Pos)
 
#define LL_USB_XCRV_CTRL_RTRIMP0   (0x00000000UL)
 
#define LL_USB_XCRV_CTRL_RTRIMP1   (1UL << MCU_SUB_USB_XCRV_CTRL_RTRIMP_Pos)
 
#define LL_USB_XCRV_CTRL_RTRIMP2   (2UL << MCU_SUB_USB_XCRV_CTRL_RTRIMP_Pos)
 
#define LL_USB_XCRV_CTRL_RTRIMP3   (3UL << MCU_SUB_USB_XCRV_CTRL_RTRIMP_Pos)
 
#define LL_USB_XCRV_CTRL_RTRIMP4   (4UL << MCU_SUB_USB_XCRV_CTRL_RTRIMP_Pos)
 
#define LL_USB_XCRV_CTRL_RTRIMP5   (5UL << MCU_SUB_USB_XCRV_CTRL_RTRIMP_Pos)
 
#define LL_USB_XCRV_CTRL_RTRIMP6   (6UL << MCU_SUB_USB_XCRV_CTRL_RTRIMP_Pos)
 
#define LL_USB_XCRV_CTRL_RTRIMP7   (7UL << MCU_SUB_USB_XCRV_CTRL_RTRIMP_Pos)
 
#define LL_USB_EP_ATTR_EP1_INT   (0x00000000UL)
 
#define LL_USB_EP_ATTR_EP1_ISO   (1UL << USB_EP_ATTR_EP1_Pos)
 
#define LL_USB_EP_ATTR_EP1_BULK   (2UL << USB_EP_ATTR_EP1_Pos)
 
#define LL_USB_EP_ATTR_EP2_INT   (0x00000000UL)
 
#define LL_USB_EP_ATTR_EP2_ISO   (1UL << USB_EP_ATTR_EP2_Pos)
 
#define LL_USB_EP_ATTR_EP2_BULK   (2UL << USB_EP_ATTR_EP2_Pos)
 
#define LL_USB_EP_ATTR_EP3_INT   (0x00000000UL)
 
#define LL_USB_EP_ATTR_EP3_ISO   (1UL << USB_EP_ATTR_EP3_Pos)
 
#define LL_USB_EP_ATTR_EP3_BULK   (2UL << USB_EP_ATTR_EP3_Pos)
 
#define LL_USB_INT_STAT_ALL   USB_INT_STAT_ALL
 
#define LL_USB_INT_STAT_SUSPEND   USB_INT_STAT_SUSPEND
 
#define LL_USB_INT_STAT_EP0_OUT_READY   USB_INT_STAT_EP0_OUT_READY
 
#define LL_USB_INT_STAT_EP1_OUT_READY   USB_INT_STAT_EP1_OUT_READY
 
#define LL_USB_INT_STAT_CRC16_ERR   USB_INT_STAT_CRC16_ERR
 
#define LL_USB_INT_STAT_UPID_ERR   USB_INT_STAT_UPID_ERR
 
#define LL_USB_INT_STAT_TIMEOUT_ERR   USB_INT_STAT_TIMEOUT_ERR
 
#define LL_USB_INT_STAT_SEQ_ERR   USB_INT_STAT_SEQ_ERR
 
#define LL_USB_INT_STAT_PID_CKS_ERR   USB_INT_STAT_PID_CKS_ERR
 
#define LL_USB_INT_STAT_PID_CRC_ERR   USB_INT_STAT_PID_CRC_ERR
 
#define LL_USB_INT_STAT_HOST_RESET   USB_INT_STAT_HOST_RESET
 
#define LL_USB_INT_STAT_AHB_XFER_ERR   USB_INT_STAT_AHB_XFER_ERR
 
#define LL_USB_INT_STAT_NSE_ERR   USB_INT_STAT_NSE_ERR
 
#define LL_USB_INT_STAT_EP3_AHB_XFER_DONE   USB_INT_STAT_EP3_AHB_XFER_DONE
 
#define LL_USB_INT_STAT_SYNC_ERR   USB_INT_STAT_SYNC_ERR
 
#define LL_USB_INT_STAT_BIT_STUFF_ERR   USB_INT_STAT_BIT_STUFF_ERR
 
#define LL_USB_INT_STAT_BYTE_ERR   USB_INT_STAT_BYTE_ERR
 
#define LL_USB_INT_STAT_SOF   USB_INT_STAT_SOF
 
#define LL_USB_INT_STAT_EP0_TX_DONE   USB_INT_STAT_EP0_TX_DONE
 
#define LL_USB_INT_STAT_EP2_TX_DONE   USB_INT_STAT_EP2_TX_DONE
 
#define LL_USB_INT_STAT_EP3_TX_DONE   USB_INT_STAT_EP3_TX_DONE
 
#define LL_USB_INT_STAT_INTO_CONFIG   USB_INT_STAT_INTO_CONFIG
 
#define LL_USB_INT_STAT_EP5_OUT_READY   USB_INT_STAT_EP5_OUT_READY
 
#define LL_USB_INT_STAT_EP4_AHB_XFER_DONE   USB_INT_STAT_EP4_AHB_XFER_DONE
 
#define LL_USB_INT_STAT_EP4_TX_DONE   USB_INT_STAT_EP4_TX_DONE
 
#define LL_USB_INT_STAT_EP5_AHB_XFER_DONE   USB_INT_STAT_EP5_AHB_XFER_DONE
 
#define LL_USB_INT_STAT_EP5_TIMER_OUT_ERR   USB_INT_STAT_EP5_TIMER_OUT_ERR
 
#define LL_USB_INT_EN_ALL   USB_INT_EN_ALL
 
#define LL_USB_INT_RESET_VAL   USB_INT_EN_RESET_VAL
 
#define LL_USB_INT_EN_SUSPEND   USB_INT_EN_SUSPEND
 
#define LL_USB_INT_EN_EP0_OUT_READY   USB_INT_EN_EP0_OUT_READY
 
#define LL_USB_INT_EN_EP1_OUT_READY   USB_INT_EN_EP1_OUT_READY
 
#define LL_USB_INT_EN_CRC16_ERR   USB_INT_EN_CRC16_ERR
 
#define LL_USB_INT_EN_UPID_ERR   USB_INT_EN_UPID_ERR
 
#define LL_USB_INT_EN_TIMEOUT_ERR   USB_INT_EN_TIMEOUT_ERR
 
#define LL_USB_INT_EN_SEQ_ERR   USB_INT_EN_SEQ_ERR
 
#define LL_USB_INT_EN_PID_CKS_ERR   USB_INT_EN_PID_CKS_ERR
 
#define LL_USB_INT_EN_PID_CRC_ERR   USB_INT_EN_PID_CRC_ERR
 
#define LL_USB_INT_EN_HOST_RESET   USB_INT_EN_HOST_RESET
 
#define LL_USB_INT_EN_AHB_XFER_ERR   USB_INT_EN_AHB_XFER_ERR
 
#define LL_USB_INT_EN_NSE_ERR   USB_INT_EN_NSE_ERR
 
#define LL_USB_INT_EN_EP3_AHB_XFER_DONE   USB_INT_EN_EP3_AHB_XFER_DONE
 
#define LL_USB_INT_EN_SYNC_ERR   USB_INT_EN_SYNC_ERR
 
#define LL_USB_INT_EN_BIT_STUFF_ERR   USB_INT_EN_BIT_STUFF_ERR
 
#define LL_USB_INT_EN_BYTE_ERR   USB_INT_EN_BYTE_ERR
 
#define LL_USB_INT_EN_SOF   USB_INT_EN_SOF
 
#define LL_USB_INT_EN_EP0_TX_DONE   USB_INT_EN_EP0_TX_DONE
 
#define LL_USB_INT_EN_EP2_TX_DONE   USB_INT_EN_EP2_TX_DONE
 
#define LL_USB_INT_EN_EP3_TX_DONE   USB_INT_EN_EP3_TX_DONE
 
#define LL_USB_INT_EN_INTO_CONFIG   USB_INT_EN_INTO_CONFIG
 
#define LL_USB_INT_EN_EP5_OUT_READY   USB_INT_EN_EP5_OUT_READY
 
#define LL_USB_INT_EN_EP4_AHB_XFER_DONE   USB_INT_EN_EP4_AHB_XFER_DONE
 
#define LL_USB_INT_EN_EP4_TX_DONE   USB_INT_EN_EP4_TX_DONE
 
#define LL_USB_INT_EN_EP5_AHB_XFER_DONE   USB_INT_EN_EP5_AHB_XFER_DONE
 
#define LL_USB_INT_EN_EP5_TIMER_OUT_ERR   USB_INT_EN_EP5_TIMER_OUT_ERR
 
#define LL_USB_INT_CLR_ALL   USB_INT_CLR_ALL
 
#define LL_USB_INT_CLR_SUSPEND   USB_INT_CLR_SUSPEND
 
#define LL_USB_INT_CLR_EP0_OUT_READY   USB_INT_CLR_EP0_OUT_READY
 
#define LL_USB_INT_CLR_EP1_OUT_READY   USB_INT_CLR_EP1_OUT_READY
 
#define LL_USB_INT_CLR_CRC16_ERR   USB_INT_CLR_CRC16_ERR
 
#define LL_USB_INT_CLR_UPID_ERR   USB_INT_CLR_UPID_ERR
 
#define LL_USB_INT_CLR_TIMEOUT_ERR   USB_INT_CLR_TIMEOUT_ERR
 
#define LL_USB_INT_CLR_SEQ_ERR   USB_INT_CLR_SEQ_ERR
 
#define LL_USB_INT_CLR_PID_CKS_ERR   USB_INT_CLR_PID_CKS_ERR
 
#define LL_USB_INT_CLR_PID_CRC_ERR   USB_INT_CLR_PID_CRC_ERR
 
#define LL_USB_INT_CLR_HOST_RESET   USB_INT_CLR_HOST_RESET
 
#define LL_USB_INT_CLR_AHB_XFER_ERR   USB_INT_CLR_AHB_XFER_ERR
 
#define LL_USB_INT_CLR_NSE_ERR   USB_INT_CLR_NSE_ERR
 
#define LL_USB_INT_CLR_EP3_AHB_XFER_DONE   USB_INT_CLR_EP3_AHB_XFER_DONE
 
#define LL_USB_INT_CLR_SYNC_ERR   USB_INT_CLR_SYNC_ERR
 
#define LL_USB_INT_CLR_BIT_STUFF_ERR   USB_INT_CLR_BIT_STUFF_ERR
 
#define LL_USB_INT_CLR_BYTE_ERR   USB_INT_CLR_BYTE_ERR
 
#define LL_USB_INT_CLR_SOF   USB_INT_CLR_SOF
 
#define LL_USB_INT_CLR_EP0_TX_DONE   USB_INT_CLR_EP0_TX_DONE
 
#define LL_USB_INT_CLR_EP2_TX_DONE   USB_INT_CLR_EP2_TX_DONE
 
#define LL_USB_INT_CLR_EP3_TX_DONE   USB_INT_CLR_EP3_TX_DONE
 
#define LL_USB_INT_CLR_INTO_CONFIG   USB_INT_CLR_INTO_CONFIG
 
#define LL_USB_INT_CLR_EP5_OUT_READY   USB_INT_CLR_EP5_OUT_READY
 
#define LL_USB_INT_CLR_EP4_AHB_XFER_DONE   USB_INT_CLR_EP4_AHB_XFER_DONE
 
#define LL_USB_INT_CLR_EP4_TX_DONE   USB_INT_CLR_EP4_TX_DONE
 
#define LL_USB_INT_CLR_EP5_AHB_XFER_DONE   USB_INT_CLR_EP5_AHB_XFER_DONE
 
#define LL_USB_INT_CLR_EP5_TIMER_OUT_ERR   USB_INT_CLR_EP5_TIMER_OUT_ERR
 
#define LL_USB_CTRL0_OUTPUT_ENDIAN_CTRL_SMALL   (0x00000000UL)
 
#define LL_USB_CTRL0_OUTPUT_ENDIAN_CTRL_BIG   (1UL << USB_CTRL0_OUTPUT_ENDIAN_CTRL_Pos)
 
#define LL_USB_CTRL0_INPUT_ENDIAN_CTRL_SMALL   (0x00000000UL)
 
#define LL_USB_CTRL0_INPUT_ENDIAN_CTRL_BIG   (1UL << USB_CTRL0_INPUT_ENDIAN_CTRL_Pos)
 
#define LL_USB_CTRL0_PROBE_SEL_PROTOCAL_STAT   (0x00000000UL)
 
#define LL_USB_CTRL0_PROBE_SEL_RX_STAT   (1UL << USB_CTRL0_PROBE_SEL_Pos)
 
#define LL_USB_CTRL0_PROBE_SEL_UTMI_SIGNALS   (2UL << USB_CTRL0_PROBE_SEL_Pos)
 
#define LL_USB_CTRL0_PROBE_SEL_SYNC_STAT   (3UL << USB_CTRL0_PROBE_SEL_Pos)
 
#define LL_USB_CTRL0_PROBE_SEL_TX_STAT   (4UL << USB_CTRL0_PROBE_SEL_Pos)
 
#define LL_USB_CTRL0_PROBE_SEL_DPLL_STAT   (5UL << USB_CTRL0_PROBE_SEL_Pos)
 
#define LL_USB_EP4_FIFO_WEN_DEFAULT   (15UL << USB_EP4_FIFO_WR_EN_Pos)
 
#define LL_USB_EP4_FIFO_WEN_1BYTE   (1UL << USB_EP4_FIFO_WR_EN_Pos)
 
#define LL_USB_EP4_FIFO_WEN_2BYTE   (3UL << USB_EP4_FIFO_WR_EN_Pos)
 
#define LL_USB_EP4_FIFO_WEN_3BYTE   (7UL << USB_EP4_FIFO_WR_EN_Pos)
 
#define LL_USB_EP4_FIFO_WEN_4BYTE   (15UL << USB_EP4_FIFO_WR_EN_Pos)
 
#define LL_USB_WriteReg(__instance__, __REG__, __VALUE__)   WRITE_REG(__instance__->__REG__, (__VALUE__))
 Write a value in USB register. More...
 
#define LL_USB_ReadReg(__instance__, __REG__)   READ_REG(__instance__->__REG__)
 Read a value in USB register. More...
 

Typedefs

typedef struct _ll_usb_init_t ll_usb_init_t
 LL USB init structures definition. More...
 

Functions

__STATIC_INLINE void ll_usb_enable_xcvr_ldo33_lp (aon_pmu_regs_t *AON_PMUx)
 Enable USB Transceiver LDO_3.3V low power mode. More...
 
__STATIC_INLINE void ll_usb_disable_xcvr_ldo33_lp (aon_pmu_regs_t *AON_PMUx)
 Disable USB Transceiver LDO_3.3V low power mode. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_xcvr_ldo33_lp (aon_pmu_regs_t *AON_PMUx)
 Check if USB Transceiver LDO_3.3V low power mode is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_xcvr_ldo33_vref_test (mcu_sub_regs_t *MCU_SUBx)
 Enable USB Transceiver LDO_3.3V internal vref probe to test. More...
 
__STATIC_INLINE void ll_usb_disable_xcvr_ldo33_vref_test (mcu_sub_regs_t *MCU_SUBx)
 Disable USB Transceiver LDO_3.3V internal vref probe to test. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_xcvr_ldo33_vref_test (mcu_sub_regs_t *MCU_SUBx)
 Check if USB Transceiver LDO_3.3V internal vref probe to test is enabled. More...
 
__STATIC_INLINE void ll_usb_set_xcrv_ldo33_bias (aon_pmu_regs_t *AON_PMUx, uint32_t value)
 Set USB Transceiver LDO_3.3V vout trimming signal. More...
 
__STATIC_INLINE uint32_t ll_usb_get_xcrv_ldo33_bias (aon_pmu_regs_t *AON_PMUx)
 Get USB Transceiver LDO_3.3V vout trimming signal. More...
 
__STATIC_INLINE void ll_usb_set_xcrv_ldo33_VSEL (aon_pmu_regs_t *AON_PMUx, uint32_t value)
 Set USB Transceiver LDO_3.3V offer XCVR's current. More...
 
__STATIC_INLINE uint32_t ll_usb_get_xcrv_ldo33_VSEL (aon_pmu_regs_t *AON_PMUx)
 Get USB Transceiver LDO_3.3V offer XCVR's current. More...
 
__STATIC_INLINE void ll_usb_enable_suspend_clk_off (mcu_sub_regs_t *MCU_SUBx)
 Enable Turn off USB clock during USB suspend. More...
 
__STATIC_INLINE void ll_usb_disable_suspend_clk_off (mcu_sub_regs_t *MCU_SUBx)
 Disable Turn off USB clock during USB suspend. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_suspend_clk_off (mcu_sub_regs_t *MCU_SUBx)
 Check if Turn off USB clock during USB suspend is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_pmu_lp (mcu_sub_regs_t *MCU_SUBx)
 Enable USB low power. More...
 
__STATIC_INLINE void ll_usb_disable_pmu_lp (mcu_sub_regs_t *MCU_SUBx)
 Disable USB low power. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_pmu_lp (mcu_sub_regs_t *MCU_SUBx)
 Check if USB low power is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_clk_force_off (mcu_sub_regs_t *MCU_SUBx)
 Enable USB clock force off. More...
 
__STATIC_INLINE void ll_usb_disable_clk_force_off (mcu_sub_regs_t *MCU_SUBx)
 Disable USB clock force off. More...
 
__STATIC_INLINE uint32_t ll_usb_enabled_clk_force_off_is (mcu_sub_regs_t *MCU_SUBx)
 Check if USB clock force off is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_xcvr_secmp_pd (mcu_sub_regs_t *MCU_SUBx)
 Enable USB Transceiver single end comparator power down. More...
 
__STATIC_INLINE void ll_usb_disable_xcvr_secmp_pd (mcu_sub_regs_t *MCU_SUBx)
 Disable USB Transceiver single end comparator power down. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_xcvr_secmp_pd (mcu_sub_regs_t *MCU_SUBx)
 Check if USB Transceiver single end comparator power down is enabled. More...
 
__STATIC_INLINE void ll_usb_set_xcrv_speed (mcu_sub_regs_t *MCU_SUBx, uint32_t speed)
 Set USB Transceiver speed. More...
 
__STATIC_INLINE uint32_t ll_usb_get_xcrv_speed (mcu_sub_regs_t *MCU_SUBx)
 Get USB Transceiver speed. More...
 
__STATIC_INLINE void ll_usb_enable_xcvr_suspend (mcu_sub_regs_t *MCU_SUBx)
 Enable USB Transceiver suspend. More...
 
__STATIC_INLINE void ll_usb_disable_xcvr_suspend (mcu_sub_regs_t *MCU_SUBx)
 Disable USB Transceiver suspend. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_xcvr_suspend (mcu_sub_regs_t *MCU_SUBx)
 Check if USB Transceiver suspend is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_xcvr_bias (mcu_sub_regs_t *MCU_SUBx)
 Enable USB Transceiver bias. More...
 
__STATIC_INLINE void ll_usb_disable_xcvr_bias (mcu_sub_regs_t *MCU_SUBx)
 Disable USB Transceiver bias. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_xcvr_bias (mcu_sub_regs_t *MCU_SUBx)
 Check if USB Transceiver bias is enabled. More...
 
__STATIC_INLINE void ll_usb_set_xcrv_rtrimn (mcu_sub_regs_t *MCU_SUBx, uint32_t value)
 Set USB Transceiver D- output impedance trim. More...
 
__STATIC_INLINE uint32_t ll_usb_get_xcrv_rtrimn (mcu_sub_regs_t *MCU_SUBx)
 Get USB Transceiver D- output impedance trim. More...
 
__STATIC_INLINE void ll_usb_set_xcrv_rtrimp (mcu_sub_regs_t *MCU_SUBx, uint32_t value)
 Set USB Transceiver D+ output impedance trim. More...
 
__STATIC_INLINE uint32_t ll_usb_get_xcrv_rtrimp (mcu_sub_regs_t *MCU_SUBx)
 Get USB Transceiver D+ output impedance trim. More...
 
__STATIC_INLINE void ll_usb_enable_sw_reset (mcu_sub_regs_t *MCU_SUBx)
 Enable USB software reset. More...
 
__STATIC_INLINE void ll_usb_disable_sw_reset (mcu_sub_regs_t *MCU_SUBx)
 Disable USB software reset. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_sw_reset (mcu_sub_regs_t *MCU_SUBx)
 Check if USB software reset is enabled. More...
 
__STATIC_INLINE void ll_usb_set_usb_enum_type (usb_regs_t *USBx, uint32_t type)
 Set USB enumeration type. More...
 
__STATIC_INLINE uint32_t ll_usb_get_enum_type (usb_regs_t *USBx)
 Get USB enumeration type. More...
 
__STATIC_INLINE void ll_usb_enable_ep0_out_dat_rdy (usb_regs_t *USBx)
 Enable USB OUT data in EP0 is ready. More...
 
__STATIC_INLINE void ll_usb_disable_ep0_out_dat_rdy (usb_regs_t *USBx)
 Disable USB OUT data in EP0 is ready. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_ep0_out_dat_rdy (usb_regs_t *USBx)
 Check if USB OUT data in EP0 is ready is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_mcu_wakeup (usb_regs_t *USBx)
 Enable USB MCU remote wakeup USB host. More...
 
__STATIC_INLINE void ll_usb_disable_mcu_wakeup (usb_regs_t *USBx)
 Disable USB MCU remote wakeup USB host. More...
 
__STATIC_INLINE void ll_usb_enable_dev_remote_wakeup (usb_regs_t *USBx)
 Enable USB REMOTE_WAKEUP feature. More...
 
__STATIC_INLINE void ll_usb_disable_dev_remote_wakeup (usb_regs_t *USBx)
 Disable USB REMOTE_WAKEUP feature. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_dev_remote_wakeup (usb_regs_t *USBx)
 Check if USB REMOTE_WAKEUP feature is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_addr_stat (usb_regs_t *USBx)
 Enable USB is in addressed status. More...
 
__STATIC_INLINE void ll_usb_disable_addr_stat (usb_regs_t *USBx)
 Disable USB is in addressed status. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_addr_stat (usb_regs_t *USBx)
 Check if USB is in addressed status is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_cfg_stat (usb_regs_t *USBx)
 Enable USB is in addressed status. More...
 
__STATIC_INLINE void ll_usb_disable_cfg_stat (usb_regs_t *USBx)
 Disable USB is in addressed status. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_cfg_stat (usb_regs_t *USBx)
 Check if USB is in addressed status is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_cmd_ok (usb_regs_t *USBx)
 Enable MCU interpret USB device ok. More...
 
__STATIC_INLINE void ll_usb_disable_cmd_ok (usb_regs_t *USBx)
 Disable MCU interpret USB device ok. More...
 
__STATIC_INLINE void ll_usb_enable_cmd_err (usb_regs_t *USBx)
 Enable MCU interpret USB device error. More...
 
__STATIC_INLINE void ll_usb_disable_cmd_err (usb_regs_t *USBx)
 Disable MCU interpret USB device error. More...
 
__STATIC_INLINE void ll_usb_set_func_addr (usb_regs_t *USBx, uint32_t addr)
 Set USB function address. More...
 
__STATIC_INLINE uint32_t ll_usb_get_func_addr (usb_regs_t *USBx)
 Get USB function address. More...
 
__STATIC_INLINE void ll_usb_enable_ep1_out_dat_rdy (usb_regs_t *USBx)
 Enable USB OUT data in EP1 is ready. More...
 
__STATIC_INLINE void ll_usb_disable_ep1_out_dat_rdy (usb_regs_t *USBx)
 Disable USB OUT data in EP1 is ready. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_ep1_out_dat_rdy (usb_regs_t *USBx)
 Check if USB OUT data in EP1 is ready is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_ep5_out_dat_rdy (usb_regs_t *USBx)
 Enable USB OUT data in EP5 is ready. More...
 
__STATIC_INLINE void ll_usb_disable_ep5_out_dat_rdy (usb_regs_t *USBx)
 Disable USB OUT data in EP1 is ready. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_ep5_out_dat_rdy (usb_regs_t *USBx)
 Check if USB OUT data in EP1 is ready is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_ep0_fifo_switch (usb_regs_t *USBx)
 Enable USB EP0 FIFO switch. More...
 
__STATIC_INLINE void ll_usb_disable_ep0_fifo_switch (usb_regs_t *USBx)
 Disable USB EP0 FIFO switch. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_ep0_fifo_switch (usb_regs_t *USBx)
 Check if USB EP0 FIFO switch is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_ep0_dat_rdy (usb_regs_t *USBx)
 Enable USB has sent all data to EP0 IN FIFO. More...
 
__STATIC_INLINE void ll_usb_disable_ep0_dat_rdy (usb_regs_t *USBx)
 Disable USB has sent all data to EP0 IN FIFO. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_ep0_dat_rdy (usb_regs_t *USBx)
 Check if USB has sent all data to EP0 IN FIFO is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_clr_ep0_fifo (usb_regs_t *USBx)
 Enable Clear USB EP0 IN FIFO. More...
 
__STATIC_INLINE void ll_usb_disable_clr_ep0_fifo (usb_regs_t *USBx)
 Disable Clear USB EP0 IN FIFO. More...
 
__STATIC_INLINE void ll_usb_enable_clr_ep1_fifo (usb_regs_t *USBx)
 Enable Clear USB EP1 OUT FIFO. More...
 
__STATIC_INLINE void ll_usb_disable_clr_ep1_fifo (usb_regs_t *USBx)
 Disable Clear USB EP1 OUT FIFO. More...
 
__STATIC_INLINE void ll_usb_enable_ep2_dat_rdy (usb_regs_t *USBx)
 Enable USB has sent all data to EP2 IN FIFO. More...
 
__STATIC_INLINE void ll_usb_disable_ep2_dat_rdy (usb_regs_t *USBx)
 Disable USB has sent all data to EP2 IN FIFO. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_ep2_dat_rdy (usb_regs_t *USBx)
 Check if USB has sent all data to EP2 IN FIFO is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_clr_ep2_fifo (usb_regs_t *USBx)
 Enable Clear USB EP2 IN FIFO. More...
 
__STATIC_INLINE void ll_usb_disable_clr_ep2_fifo (usb_regs_t *USBx)
 Disable Clear USB EP2 IN FIFO. More...
 
__STATIC_INLINE void ll_usb_enable_ep3_dat_rdy (usb_regs_t *USBx)
 Enable USB has sent all data to EP3 IN FIFO. More...
 
__STATIC_INLINE void ll_usb_disable_ep3_dat_rdy (usb_regs_t *USBx)
 Disable USB has sent all data to EP3 IN FIFO. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_ep3_dat_rdy (usb_regs_t *USBx)
 Check if USB has sent all data to EP3 IN FIFO is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_clr_ep3_fifo (usb_regs_t *USBx)
 Enable Clear USB EP3 IN FIFO. More...
 
__STATIC_INLINE void ll_usb_disable_clr_ep3_fifo (usb_regs_t *USBx)
 Disable Clear USB EP3 IN FIFO. More...
 
__STATIC_INLINE void ll_usb_enable_ep4_dat_rdy (usb_regs_t *USBx)
 Enable USB has sent all data to EP4 IN FIFO. More...
 
__STATIC_INLINE void ll_usb_disable_ep4_dat_rdy (usb_regs_t *USBx)
 Disable USB has sent all data to EP4 IN FIFO. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_ep4_dat_rdy (usb_regs_t *USBx)
 Check if USB has sent all data to EP4 IN FIFO is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_clr_ep4_fifo (usb_regs_t *USBx)
 Enable Clear USB EP4 IN FIFO. More...
 
__STATIC_INLINE void ll_usb_disable_clr_ep4_fifo (usb_regs_t *USBx)
 Disable Clear USB EP4 IN FIFO. More...
 
__STATIC_INLINE void ll_usb_enable_ep4_empty_packet (usb_regs_t *USBx)
 Enable USB EP4 empty packet. More...
 
__STATIC_INLINE void ll_usb_disable_ep4_empty_packet (usb_regs_t *USBx)
 Disable USB EP4 empty packet. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_ep4_empty_packet (usb_regs_t *USBx)
 Check if USB EP4 empty packet is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_clr_ep5_fifo (usb_regs_t *USBx)
 Enable Clear USB EP4 IN FIFO. More...
 
__STATIC_INLINE void ll_usb_disable_clr_ep5_fifo (usb_regs_t *USBx)
 Disable Clear USB EP4 IN FIFO. More...
 
__STATIC_INLINE void ll_usb_set_ep1_attr (usb_regs_t *USBx, uint32_t attr)
 Set USB Endpoint 1 attribute. More...
 
__STATIC_INLINE uint32_t ll_usb_get_ep1_attr (usb_regs_t *USBx)
 Get USB Endpoint 1 attribute. More...
 
__STATIC_INLINE void ll_usb_set_ep2_attr (usb_regs_t *USBx, uint32_t attr)
 Set USB Endpoint 2 attribute. More...
 
__STATIC_INLINE uint32_t ll_usb_get_ep2_attr (usb_regs_t *USBx)
 Get USB Endpoint 2 attribute. More...
 
__STATIC_INLINE void ll_usb_set_ep3_attr (usb_regs_t *USBx, uint32_t attr)
 Set USB Endpoint 3 attribute. More...
 
__STATIC_INLINE uint32_t ll_usb_get_ep3_attr (usb_regs_t *USBx)
 Get USB Endpoint 1 attribute. More...
 
__STATIC_INLINE void ll_usb_enable_ep1_halt_mcu (usb_regs_t *USBx)
 Enable USB halt EP1. More...
 
__STATIC_INLINE void ll_usb_disable_ep1_halt_mcu (usb_regs_t *USBx)
 Disable USB halt EP1. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_ep1_halt_mcu (usb_regs_t *USBx)
 Check if USB halt EP1 is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_ep2_halt_mcu (usb_regs_t *USBx)
 Enable USB halt EP2. More...
 
__STATIC_INLINE void ll_usb_disable_ep2_halt_mcu (usb_regs_t *USBx)
 Disable USB halt EP2. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_ep2_halt_mcu (usb_regs_t *USBx)
 Check if USB halt EP2 is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_ep3_halt_mcu (usb_regs_t *USBx)
 Enable USB halt EP3. More...
 
__STATIC_INLINE void ll_usb_disable_ep3_halt_mcu (usb_regs_t *USBx)
 Disable USB halt EP3. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_ep3_halt_mcu (usb_regs_t *USBx)
 Check if USB halt EP3 is enabled. More...
 
__STATIC_INLINE uint32_t ll_usb_is_active_it_flag (usb_regs_t *USBx, uint32_t flag)
 Check USB interrupt flag is actived. More...
 
__STATIC_INLINE uint32_t ll_usb_get_it_flag (usb_regs_t *USBx)
 get USB interrupt flag More...
 
__STATIC_INLINE void ll_usb_enable_it (usb_regs_t *USBx, uint32_t mask)
 Enable USB interrupt. More...
 
__STATIC_INLINE void ll_usb_disable_it (usb_regs_t *USBx, uint32_t mask)
 Disable USB interrupt. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_it (usb_regs_t *USBx, uint32_t mask)
 Check if USB interrupt is enabled. More...
 
__STATIC_INLINE void ll_usb_clear_it (usb_regs_t *USBx, uint32_t mask)
 Clear USB interrupt. More...
 
__STATIC_INLINE void ll_usb_set_ep3_ahb_m_rd_start_addr (usb_regs_t *USBx, uint32_t addr)
 Set USB ep3 AHB master read start address. More...
 
__STATIC_INLINE uint32_t ll_usb_get_ep3_ahb_m_rd_start_addr (usb_regs_t *USBx)
 Get USB ep3 AHB master read start address. More...
 
__STATIC_INLINE void ll_usb_enable_ep3_ahb_m (usb_regs_t *USBx)
 Enable USB ep3 AHB master. More...
 
__STATIC_INLINE void ll_usb_disable_ep3_ahb_m (usb_regs_t *USBx)
 Disable USB ep3 AHB master. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_ep3_ahb_m (usb_regs_t *USBx)
 Check if USB ep3 AHB master is enabled. More...
 
__STATIC_INLINE void ll_usb_set_ep3_ahb_m_burst_size (usb_regs_t *USBx, uint32_t size)
 Set USB ep3 AHB master burst length;(default 64) More...
 
__STATIC_INLINE uint32_t ll_usb_get_ep3_ahb_m_burst_size (usb_regs_t *USBx)
 Get USB ep3 AHB master burst length;(default 64) More...
 
__STATIC_INLINE void ll_usb_set_ep4_ahb_m_rd_start_addr (usb_regs_t *USBx, uint32_t addr)
 Set USB ep4 AHB master read start address. More...
 
__STATIC_INLINE uint32_t ll_usb_get_ep4_ahb_m_rd_start_addr (usb_regs_t *USBx)
 Get USB ep4 AHB master read start address. More...
 
__STATIC_INLINE void ll_usb_enable_ep4_ahb_m (usb_regs_t *USBx)
 Enable USB ep4 AHB master. More...
 
__STATIC_INLINE void ll_usb_disable_ep4_ahb_m (usb_regs_t *USBx)
 Disable USB ep4 AHB master. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_ep4_ahb_m (usb_regs_t *USBx)
 Check if USB ep4 AHB master is enabled. More...
 
__STATIC_INLINE void ll_usb_set_ep4_ahb_m_burst_size (usb_regs_t *USBx, uint32_t size)
 Set USB ep4 AHB master burst length;(default 64) More...
 
__STATIC_INLINE uint32_t ll_usb_get_ep4_ahb_m_burst_size (usb_regs_t *USBx)
 Get USB ep4 AHB master burst length;(default 64) More...
 
__STATIC_INLINE void ll_usb_set_ep5_ahb_m_rd_start_addr (usb_regs_t *USBx, uint32_t addr)
 Set USB ep5 AHB master read start address. More...
 
__STATIC_INLINE uint32_t ll_usb_get_ep5_ahb_m_rd_start_addr (usb_regs_t *USBx)
 Get USB ep5 AHB master read start address. More...
 
__STATIC_INLINE void ll_usb_enable_ep5_ahb_m (usb_regs_t *USBx)
 Enable USB ep5 AHB master. More...
 
__STATIC_INLINE void ll_usb_disable_ep5_ahb_m (usb_regs_t *USBx)
 Disable USB ep5 AHB master. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_ep5_ahb_m (usb_regs_t *USBx)
 Check if USB ep5 AHB master is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_ep5_fifo_clr (usb_regs_t *USBx)
 Enable USB ep5 OUT FIFO clear. More...
 
__STATIC_INLINE void ll_usb_disable_ep5_fifo_clr (usb_regs_t *USBx)
 Disable USB ep5 OUT FIFO clear. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_ep5_fifo_clr (usb_regs_t *USBx)
 Check if USB ep5 OUT FIFO clear is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_ep5_rx_cnt_no_overwrite (usb_regs_t *USBx)
 USB ep5 RX data sum can't be overwritten. More...
 
__STATIC_INLINE void ll_usb_disable_ep5_rx_cnt_no_overwrite (usb_regs_t *USBx)
 USB ep5 RX data sum can be overwritten. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_ep5_rx_cnt_no_overwrite (usb_regs_t *USBx)
 Check if USB ep5 RX data sum can't be overwritten is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_test_mode (usb_regs_t *USBx)
 Enable USB test mode. More...
 
__STATIC_INLINE void ll_usb_disable_test_mode (usb_regs_t *USBx)
 Disable USB test mode. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_test_mode (usb_regs_t *USBx)
 Check if USB test mode is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_drive_dp (usb_regs_t *USBx)
 Enable USB drive DP during transceiver test mode. More...
 
__STATIC_INLINE void ll_usb_disable_drive_dp (usb_regs_t *USBx)
 Disable USB drive DP during transceiver test mode. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_drive_dp (usb_regs_t *USBx)
 Check if USB tdrive DP during transceiver test mode is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_drive_dm (usb_regs_t *USBx)
 Enable USB drive DM during transceiver test mode. More...
 
__STATIC_INLINE void ll_usb_disable_drive_dm (usb_regs_t *USBx)
 Disable USB drive DM during transceiver test mode. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_drive_dm (usb_regs_t *USBx)
 Check if USB tdrive DM during transceiver test mode is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_xcvr_oeb (usb_regs_t *USBx)
 Enable USB drive transceiver output enable bar during transceiver test mode. More...
 
__STATIC_INLINE void ll_usb_disable_xcvr_oeb (usb_regs_t *USBx)
 Disable USB drive transceiver output enable bar during transceiver test mode. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_xcvr_oeb (usb_regs_t *USBx)
 Check if USB drive transceiver output enable bar during transceiver test mode is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_xcvr_dp_rpu (usb_regs_t *USBx)
 Enable USB drive DP pullup during transceiver test mode. More...
 
__STATIC_INLINE void ll_usb_disable_xcvr_dp_rpu (usb_regs_t *USBx)
 Disable USB drive DP pullup during transceiver test mode. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_xcvr_dp_rpu (usb_regs_t *USBx)
 Check if USB drive DP pullup during transceiver test mode is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_xcvr_dm_rpu (usb_regs_t *USBx)
 Enable USB drive DM pullup during transceiver test mode. More...
 
__STATIC_INLINE void ll_usb_disable_xcvr_dm_rpu (usb_regs_t *USBx)
 Disable USB drive DM pullup during transceiver test mode. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_xcvr_dm_rpu (usb_regs_t *USBx)
 Check if USB drive DM pullup during transceiver test mode is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_xcvr_dp_rpusw (usb_regs_t *USBx)
 Enable USB drive DP SW pullup during transceiver test mode. More...
 
__STATIC_INLINE void ll_usb_disable_xcvr_dp_rpusw (usb_regs_t *USBx)
 Disable USB drive DP SW pullup during transceiver test mode. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_xcvr_dp_rpusw (usb_regs_t *USBx)
 Check if USB drive DP SW pullup during transceiver test mode is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_xcvr_dm_rpusw (usb_regs_t *USBx)
 Enable USB drive DM SW pullup during transceiver test mode. More...
 
__STATIC_INLINE void ll_usb_disable_xcvr_dm_rpusw (usb_regs_t *USBx)
 Disable USB drive DM SW pullup during transceiver test mode. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_xcvr_dm_rpusw (usb_regs_t *USBx)
 Check if USB drive DM SW pullup during transceiver test mode is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_xcvr_dp_rpd (usb_regs_t *USBx)
 Enable USB drive DP pull down during transceiver test mode. More...
 
__STATIC_INLINE void ll_usb_disable_xcvr_dp_rpd (usb_regs_t *USBx)
 Disable USB drive DP pull down during transceiver test mode. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_xcvr_dp_rpd (usb_regs_t *USBx)
 Check if USB drive DP pull down during transceiver test mode is enabled. More...
 
__STATIC_INLINE void ll_usb_enable_xcvr_dm_rpd (usb_regs_t *USBx)
 Enable USB drive DM pull down during transceiver test mode. More...
 
__STATIC_INLINE void ll_usb_disable_xcvr_dm_rpd (usb_regs_t *USBx)
 Disable USB drive DM pull down during transceiver test mode. More...
 
__STATIC_INLINE uint32_t ll_usb_is_enabled_xcvr_dm_rpd (usb_regs_t *USBx)
 Check if USB drive DM pull down during transceiver test mode is enabled. More...
 
__STATIC_INLINE void ll_usb_set_output_endian_mode (usb_regs_t *USBx, uint32_t mode)
 Set USB output endian mode. More...
 
__STATIC_INLINE uint32_t ll_usb_get_output_endian_mode (usb_regs_t *USBx)
 Get USB output endian mode. More...
 
__STATIC_INLINE void ll_usb_set_input_endian_mode (usb_regs_t *USBx, uint32_t mode)
 Set USB input endian mode. More...
 
__STATIC_INLINE uint32_t ll_usb_get_input_endian_mode (usb_regs_t *USBx)
 Get USB input endian mode. More...
 
__STATIC_INLINE void ll_usb_set_probe_sel (usb_regs_t *USBx, uint32_t sel)
 Set USB probe select signal. More...
 
__STATIC_INLINE uint32_t ll_usb_get_probe_sel (usb_regs_t *USBx)
 Get USB probe select signal. More...
 
__STATIC_INLINE void ll_usb_set_ep3_xfer_len (usb_regs_t *USBx, uint32_t len)
 Set USB ep3 DMA total transfer length. More...
 
__STATIC_INLINE uint32_t ll_usb_get_ep3_xfer_len (usb_regs_t *USBx)
 Get USB ep3 DMA total transfer length. More...
 
__STATIC_INLINE void ll_usb_set_ep4_xfer_len (usb_regs_t *USBx, uint32_t len)
 Set USB ep4 DMA total transfer length. More...
 
__STATIC_INLINE uint32_t ll_usb_get_ep4_xfer_len (usb_regs_t *USBx)
 Get USB ep4 DMA total transfer length. More...
 
__STATIC_INLINE void ll_usb_set_ep5_xfer_len (usb_regs_t *USBx, uint32_t len)
 Set USB ep5 DMA total transfer length. More...
 
__STATIC_INLINE uint32_t ll_usb_get_ep5_xfer_len (usb_regs_t *USBx)
 Get USB ep5 DMA total transfer length. More...
 
__STATIC_INLINE void ll_usb_set_ep5_timer_val (usb_regs_t *USBx, uint32_t len)
 Set USB ep5 DMA recieve data time out value. More...
 
__STATIC_INLINE uint32_t ll_usb_get_ep5_timer_val (usb_regs_t *USBx)
 Get USB ep5 DMA total transfer length. More...
 
__STATIC_INLINE uint32_t ll_usb_get_ep0_rx_data_sum (usb_regs_t *USBx)
 Get USB received data sum in the EP0 IN FIFO. More...
 
__STATIC_INLINE uint32_t ll_usb_get_ep1_rx_data_sum (usb_regs_t *USBx)
 Get USB received data sum in the EP1 IN FIFO. More...
 
__STATIC_INLINE uint32_t ll_usb_get_ep5_rx_data_sum (usb_regs_t *USBx)
 Get USB received data sum in the EP5 IN FIFO. More...
 
__STATIC_INLINE void ll_usb_set_cfg_desc_ctrl_start (usb_regs_t *USBx, uint32_t addr)
 Set USB config descriptor start address. More...
 
__STATIC_INLINE uint32_t ll_usb_get_cfg_desc_ctrl_start (usb_regs_t *USBx)
 Get USB config descriptor start address. More...
 
__STATIC_INLINE void ll_usb_set_cfg_desc_ctrl_size (usb_regs_t *USBx, uint32_t size)
 Set USB config descriptor size. More...
 
__STATIC_INLINE uint32_t ll_usb_get_cfg_desc_ctrl_size (usb_regs_t *USBx)
 Get USB config descriptor size. More...
 
__STATIC_INLINE void ll_usb_set_str_desc0_ctrl_start (usb_regs_t *USBx, uint32_t addr)
 Set USB Language ID descriptor start address. More...
 
__STATIC_INLINE uint32_t ll_usb_get_str_desc0_ctrl_start (usb_regs_t *USBx)
 Get USB Language ID descriptor start address. More...
 
__STATIC_INLINE void ll_usb_set_str_desc0_ctrl_size (usb_regs_t *USBx, uint32_t size)
 Set USB Language ID descriptor size. More...
 
__STATIC_INLINE uint32_t ll_usb_get_str_desc0_ctrl_size (usb_regs_t *USBx)
 Get USB Language ID descriptor size. More...
 
__STATIC_INLINE void ll_usb_set_str_desc1_ctrl_start (usb_regs_t *USBx, uint32_t addr)
 Set USB string descriptor start address. More...
 
__STATIC_INLINE uint32_t ll_usb_get_str_desc1_ctrl_start (usb_regs_t *USBx)
 Get USB string descriptor start address. More...
 
__STATIC_INLINE void ll_usb_set_str_desc1_ctrl_size (usb_regs_t *USBx, uint32_t size)
 Set USB string descriptor size. More...
 
__STATIC_INLINE uint32_t ll_usb_get_str_desc1_ctrl_size (usb_regs_t *USBx)
 Get USB string descriptor size. More...
 
__STATIC_INLINE void ll_usb_set_usb_ep0_fifo (usb_regs_t *USBx, uint32_t value)
 Set USB endpoint 0 FIFO address. More...
 
__STATIC_INLINE uint32_t ll_usb_get_usb_ep0_fifo (usb_regs_t *USBx)
 Get USB endpoint 0 FIFO value. More...
 
__STATIC_INLINE uint32_t ll_usb_get_usb_ep1_fifo (usb_regs_t *USBx)
 Get USB endpoint 1 FIFO value. More...
 
__STATIC_INLINE void ll_usb_set_usb_ep2_fifo (usb_regs_t *USBx, uint32_t value)
 Set USB endpoint 2 FIFO value. More...
 
__STATIC_INLINE void ll_usb_set_usb_ep3_fifo (usb_regs_t *USBx, uint32_t value)
 Set USB endpoint 3 FIFO value. More...
 
__STATIC_INLINE void ll_usb_set_usb_ep4_fifo (usb_regs_t *USBx, uint32_t value)
 Set USB endpoint 4 FIFO value. More...
 
__STATIC_INLINE uint32_t ll_usb_get_usb_ep5_fifo (usb_regs_t *USBx)
 Get USB endpoint 5 FIFO value. More...
 
__STATIC_INLINE void ll_usb_set_ep4_fifo_wr_en (usb_regs_t *USBx, uint32_t len)
 Set USB ep4 FIFO write byte enable value. More...
 
__STATIC_INLINE uint32_t ll_usb_get_ep4_fifo_wr_en (usb_regs_t *USBx)
 Get USB ep4 FIFO write byte enable value. More...
 
__STATIC_INLINE void ll_usb_set_usb_desc_sram_addr (usb_regs_t *USBx, uint32_t addr)
 Set USB descriptor SRAM value. More...
 
__STATIC_INLINE void ll_usb_set_str_desc2_ctrl_start (usb_regs_t *USBx, uint32_t addr)
 Set USB string descriptor(302) start address. More...
 
__STATIC_INLINE uint32_t ll_usb_get_str_desc2_ctrl_start (usb_regs_t *USBx)
 Get USB string descriptor(302) start address. More...
 
__STATIC_INLINE void ll_usb_set_str_desc2_ctrl_size (usb_regs_t *USBx, uint32_t size)
 Set USB string descriptor(302) size. More...
 
__STATIC_INLINE uint32_t ll_usb_get_str_desc2_ctrl_size (usb_regs_t *USBx)
 Get USB string descriptor(302) size. More...
 
__STATIC_INLINE void ll_usb_set_str_desc3_ctrl_start (usb_regs_t *USBx, uint32_t addr)
 Set USB string descriptor(303) start address. More...
 
__STATIC_INLINE uint32_t ll_usb_get_str_desc3_ctrl_start (usb_regs_t *USBx)
 Get USB string descriptor(303) start address. More...
 
__STATIC_INLINE void ll_usb_set_str_desc3_ctrl_size (usb_regs_t *USBx, uint32_t size)
 Set USB string descriptor(303) size. More...
 
__STATIC_INLINE uint32_t ll_usb_get_str_desc3_ctrl_size (usb_regs_t *USBx)
 Get USB string descriptor(303) size. More...
 
void ll_usb_enable (void)
 Enable USB interrupt. More...
 
void ll_usb_disable (void)
 Disable USB interrupt. More...
 
error_status_t ll_usb_deinit (usb_regs_t *USBx)
 De-initialize USB registers (Registers restored to their default values). More...
 
error_status_t ll_usb_init (usb_regs_t *USBx, ll_usb_init_t *p_usb_init)
 Initialize USB registers according to the specified parameters in p_usb_init. More...
 
void ll_usb_struct_init (ll_usb_init_t *p_usb_init)
 Set each field of a ll_usb_init_t type structure to default value. More...
 

Detailed Description

Header file containing functions prototypes of usb LL library.

Author
BLE Driver Team
Attention
#####Copyright (c) 2020 GOODIX All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file gr55xx_ll_usb.h.