VSF Documented
|
#define USB_CEPCTL_NAKCLR ((uint32_t)0x00000000) |
#define USB_CEPCTL_STALL ((uint32_t)0x00000002) |
#define USB_CEPCTL_ZEROLEN ((uint32_t)0x00000004) |
#define USB_CEPCTL_FLUSH ((uint32_t)0x00000008) |
#define USB_EP_CFG_VALID ((uint32_t)0x00000001) |
#define USB_EP_CFG_TYPE_BULK ((uint32_t)0x00000002) |
#define USB_EP_CFG_TYPE_INT ((uint32_t)0x00000004) |
#define USB_EP_CFG_TYPE_ISO ((uint32_t)0x00000006) |
#define USB_EP_CFG_TYPE_MASK ((uint32_t)0x00000006) |
#define USB_EP_CFG_DIR_OUT ((uint32_t)0x00000000) |
#define USB_EP_CFG_DIR_IN ((uint32_t)0x00000008) |
#define USB_EP_RSPCTL_FLUSH ((uint32_t)0x00000001) |
#define USB_EP_RSPCTL_MODE_AUTO ((uint32_t)0x00000000) |
#define USB_EP_RSPCTL_MODE_MANUAL ((uint32_t)0x00000002) |
#define USB_EP_RSPCTL_MODE_FLY ((uint32_t)0x00000004) |
#define USB_EP_RSPCTL_MODE_MASK ((uint32_t)0x00000006) |
#define USB_EP_RSPCTL_TOGGLE ((uint32_t)0x00000008) |
#define USB_EP_RSPCTL_HALT ((uint32_t)0x00000010) |
#define USB_EP_RSPCTL_ZEROLEN ((uint32_t)0x00000020) |
#define USB_EP_RSPCTL_SHORTTXEN ((uint32_t)0x00000040) |
#define USB_EP_RSPCTL_DISBUF ((uint32_t)0x00000080) |
#define M480_USBD_EP_REG | ( | __IDX, | |
__REG | |||
) | *((__IO uint32_t *)((uint32_t)®->__REG + (uint32_t)((uint8_t)(__IDX) * 0x28))) |
#define M480_USBD_EP_REG8 | ( | __IDX, | |
__REG | |||
) | *((__IO uint8_t *)((uint32_t)®->__REG + (uint32_t)((uint8_t)(__IDX) * 0x28))) |
vsf_err_t m480_usbd_hs_init | ( | m480_usbd_hs_t * | usbd_hs, |
usb_dc_cfg_t * | cfg | ||
) |
void m480_usbd_hs_fini | ( | m480_usbd_hs_t * | usbd_hs | ) |
void m480_usbd_hs_reset | ( | m480_usbd_hs_t * | usbd_hs, |
usb_dc_cfg_t * | cfg | ||
) |
void m480_usbd_hs_connect | ( | m480_usbd_hs_t * | usbd_hs | ) |
void m480_usbd_hs_disconnect | ( | m480_usbd_hs_t * | usbd_hs | ) |
void m480_usbd_hs_wakeup | ( | m480_usbd_hs_t * | usbd_hs | ) |
void m480_usbd_hs_set_address | ( | m480_usbd_hs_t * | usbd_hs, |
uint_fast8_t | addr | ||
) |
uint_fast8_t m480_usbd_hs_get_address | ( | m480_usbd_hs_t * | usbd_hs | ) |
uint_fast16_t m480_usbd_hs_get_frame_number | ( | m480_usbd_hs_t * | usbd_hs | ) |
uint_fast8_t m480_usbd_hs_get_mframe_number | ( | m480_usbd_hs_t * | usbd_hs | ) |
void m480_usbd_hs_get_setup | ( | m480_usbd_hs_t * | usbd_hs, |
uint8_t * | buffer | ||
) |
void m480_usbd_hs_status_stage | ( | m480_usbd_hs_t * | usbd_hs, |
bool | is_in | ||
) |
uint_fast8_t m480_usbd_hs_ep_get_feature | ( | m480_usbd_hs_t * | usbd_hs, |
uint_fast8_t | ep, | ||
uint_fast8_t | feature | ||
) |
vsf_err_t m480_usbd_hs_ep_add | ( | m480_usbd_hs_t * | usbd_hs, |
uint_fast8_t | ep, | ||
usb_ep_type_t | type, | ||
uint_fast16_t | size | ||
) |
uint_fast16_t m480_usbd_hs_ep_get_size | ( | m480_usbd_hs_t * | usbd_hs, |
uint_fast8_t | ep | ||
) |
vsf_err_t m480_usbd_hs_ep_set_stall | ( | m480_usbd_hs_t * | usbd_hs, |
uint_fast8_t | ep | ||
) |
bool m480_usbd_hs_ep_is_stalled | ( | m480_usbd_hs_t * | usbd_hs, |
uint_fast8_t | ep | ||
) |
vsf_err_t m480_usbd_hs_ep_clear_stall | ( | m480_usbd_hs_t * | usbd_hs, |
uint_fast8_t | ep | ||
) |
uint_fast32_t m480_usbd_hs_ep_get_data_size | ( | m480_usbd_hs_t * | usbd_hs, |
uint_fast8_t | ep | ||
) |
vsf_err_t m480_usbd_hs_ep_transaction_read_buffer | ( | m480_usbd_hs_t * | usbd_hs, |
uint_fast8_t | ep, | ||
uint8_t * | buffer, | ||
uint_fast16_t | size | ||
) |
vsf_err_t m480_usbd_hs_ep_transaction_enable_out | ( | m480_usbd_hs_t * | usbd_hs, |
uint_fast8_t | ep | ||
) |
vsf_err_t m480_usbd_hs_ep_transaction_set_data_size | ( | m480_usbd_hs_t * | usbd_hs, |
uint_fast8_t | ep, | ||
uint_fast16_t | size | ||
) |
vsf_err_t m480_usbd_hs_ep_transaction_write_buffer | ( | m480_usbd_hs_t * | usbd_hs, |
uint_fast8_t | ep, | ||
uint8_t * | buffer, | ||
uint_fast16_t | size | ||
) |
vsf_err_t m480_usbd_hs_ep_transfer_recv | ( | m480_usbd_hs_t * | usbd_hs, |
uint_fast8_t | ep, | ||
uint8_t * | buffer, | ||
uint_fast32_t | size | ||
) |
vsf_err_t m480_usbd_hs_ep_transfer_send | ( | m480_usbd_hs_t * | usbd_hs, |
uint_fast8_t | ep, | ||
uint8_t * | buffer, | ||
uint_fast32_t | size, | ||
bool | zlp | ||
) |
void m480_usbd_hs_irq | ( | m480_usbd_hs_t * | usbd_hs | ) |