Nut/OS  5.0.5
API Reference
stm32_otgd_fs_cal.c File Reference
Include dependency graph for stm32_otgd_fs_cal.c:

Functions

uint32_t STM32_USBH_OTG_ISR_Handler (void)
uint32_t STM32_PCD_OTG_ISR_Handler (void)
uint32_t STM32_USBO_OTG_ISR_Handler (void)
USB_OTG_Status OTGD_FS_PhyInit (void)
USB_OTG_Status OTGD_FS_WritePacket (uint8_t *src, uint8_t ch_ep_num, uint16_t bytes)
void * OTGD_FS_ReadPacket (uint8_t *dest, uint16_t bytes)
USB_OTG_Status OTGD_FS_SetAddress (uint32_t BaseAddress)
USB_OTG_Status OTGD_FS_CoreInit (void)
USB_OTG_Status OTGD_FS_EnableGlobalInt (void)
USB_OTG_Status OTGD_FS_DisableGlobalInt (void)
USB_OTG_Status OTGD_FS_FlushTxFifo (uint32_t num)
USB_OTG_Status OTGD_FS_FlushRxFifo (void)
uint8_t IsDeviceMode (void)
uint8_t IsHostMode (void)
uint32_t OTGD_FS_ReadCoreItr (void)
uint32_t OTGD_FS_ReadOtgItr (void)
USB_OTG_Status OTGD_FS_CoreInitDev (void)
USB_OTG_Status OTGD_FS_EnableDevInt (void)
USB_OTG_Status OTGD_FS_EP0Activate (void)
USB_OTG_Status OTGD_FS_EPActivate (USB_OTG_EP *ep)
USB_OTG_Status OTGD_FS_EPDeactivate (USB_OTG_EP *ep)
USB_OTG_Status OTGD_FS_EPStartXfer (USB_OTG_EP *ep)
USB_OTG_Status OTGD_FS_EP0StartXfer (USB_OTG_EP *ep)
USB_OTG_Status OTGD_FS_EPSetStall (USB_OTG_EP *ep)
USB_OTG_Status OTGD_FS_EPClearStall (USB_OTG_EP *ep)
uint32_t OTGD_FS_ReadDevAllOutEp_itr (void)
uint32_t OTGD_FS_ReadDevOutEP_itr (USB_OTG_EP *ep)
uint32_t OTGD_FS_ReadDevAllInEPItr (void)
uint32_t OTGD_FS_Dev_GetEPStatus (USB_OTG_EP *ep)
void OTGD_FS_Dev_SetEPStatus (USB_OTG_EP *ep, uint32_t Status)
void OTGD_FS_Dev_SetRemoteWakeup ()
void OTGD_FS_Dev_ResetRemoteWakeup ()

Variables

USB_OTG_CORE_REGS core_regs

Function Documentation

uint32_t STM32_USBH_OTG_ISR_Handler ( void  )
uint32_t STM32_PCD_OTG_ISR_Handler ( void  )
uint32_t STM32_USBO_OTG_ISR_Handler ( void  )
USB_OTG_Status OTGD_FS_WritePacket ( uint8_t src,
uint8_t  ch_ep_num,
uint16_t  bytes 
)
void* OTGD_FS_ReadPacket ( uint8_t dest,
uint16_t  bytes 
)
USB_OTG_Status OTGD_FS_CoreInit ( void  )

References _USB_OTG_usb_cfg_data::b, USB_OTG_core_regs::common_regs, _USB_OTG_usb_cfg_data::d32, OTGD_FS_PhyInit(), _USB_OTG_usb_cfg_data::physel, READ_REG32, _USB_OTG_common_regs::usb_cfg, USB_OTG_OK, and WRITE_REG32.

Referenced by OTG_DEV_Init().

Here is the call graph for this function:

USB_OTG_Status OTGD_FS_FlushTxFifo ( uint32_t  num)

References __IO, USB_OTG_core_regs::common_regs, _USB_OTG_rst_ctl_data::d32, NutMicroDelay(), READ_REG32, _USB_OTG_common_regs::rst_ctl, USB_OTG_OK, and WRITE_REG32.

Referenced by OTGD_FS_CoreInitDev(), OTGD_FS_Handle_UsbReset_ISR(), and OTGD_FS_PCD_EP_Flush().

Here is the call graph for this function:

USB_OTG_Status OTGD_FS_FlushRxFifo ( void  )

References __IO, USB_OTG_core_regs::common_regs, _USB_OTG_rst_ctl_data::d32, NutMicroDelay(), READ_REG32, _USB_OTG_common_regs::rst_ctl, USB_OTG_OK, and WRITE_REG32.

Referenced by OTGD_FS_CoreInitDev(), and OTGD_FS_PCD_EP_Flush().

Here is the call graph for this function:

uint8_t IsDeviceMode ( void  )

References HOST_MODE.

Referenced by STM32_PCD_OTG_ISR_Handler().

uint8_t IsHostMode ( void  )

References HOST_MODE.

uint32_t OTGD_FS_ReadOtgItr ( void  )
USB_OTG_Status OTGD_FS_CoreInitDev ( void  )

References _USB_OTG_fifo_size_data::b, _USB_OTG_dev_cfg_data::b, _USB_OTG_dev_in_ep_int_data::b, _USB_OTG_dev_ep_ctl_data::b, USB_OTG_core_regs::common_regs, _USB_OTG_fifo_size_data::d32, _USB_OTG_dev_cfg_data::d32, _USB_OTG_dev_in_ep_int_data::d32, _USB_OTG_dev_ep_ctl_data::d32, DCFG_FRAME_INTERVAL_80, _USB_OTG_fifo_size_data::depth, _USB_OTG_dev_regs::dev_all_int, _USB_OTG_dev_regs::dev_all_int_msk, _USB_OTG_dev_regs::dev_cfg, _USB_OTG_dev_in_ep_regs::dev_in_ep_ctl, _USB_OTG_dev_in_ep_regs::dev_in_ep_int, _USB_OTG_dev_regs::dev_in_ep_msk, _USB_OTG_dev_in_ep_regs::dev_in_ep_txfer_siz, _USB_OTG_dev_out_ep_regs::dev_out_ep_ctl, _USB_OTG_dev_out_ep_regs::dev_out_ep_int, _USB_OTG_dev_regs::dev_out_ep_msk, _USB_OTG_dev_out_ep_regs::dev_out_ep_txfer_siz, _USB_OTG_common_regs::dev_p_tx_fsiz_dieptxf, USB_OTG_core_regs::dev_regs, _USB_OTG_dev_ep_ctl_data::epdis, _USB_OTG_dev_ep_ctl_data::epena, USB_OTG_core_regs::inep_regs, MAX_TX_FIFOS, MODIFY_REG32, _USB_OTG_common_regs::np_tx_fifo_siz, OTGD_FS_EnableDevInt(), OTGD_FS_FlushRxFifo(), OTGD_FS_FlushTxFifo(), USB_OTG_core_regs::outep_regs, USB_OTG_core_regs::pcgcctl, _USB_OTG_dev_cfg_data::perfrint, READ_REG32, _USB_OTG_common_regs::rx_fifo_siz, RX_FIFO_SIZE, _USB_OTG_dev_ep_ctl_data::snak, _USB_OTG_fifo_size_data::startaddr, TX0_FIFO_SIZE, TX1_FIFO_SIZE, TX3_FIFO_SIZE, _USB_OTG_dev_in_ep_int_data::txfifoundrn, USB_OTG_OK, and WRITE_REG32.

Referenced by OTG_DEV_Init().

Here is the call graph for this function:


Variable Documentation