Prusa MINI Firmware overview
|
Functions | |
USBH_StatusTypeDef | USBH_OpenPipe (USBH_HandleTypeDef *phost, uint8_t ch_num, uint8_t epnum, uint8_t dev_address, uint8_t speed, uint8_t ep_type, uint16_t mps) |
USBH_Open_Pipe Open a pipe. More... | |
USBH_StatusTypeDef | USBH_ClosePipe (USBH_HandleTypeDef *phost, uint8_t pipe_num) |
USBH_ClosePipe Close a pipe. More... | |
uint8_t | USBH_AllocPipe (USBH_HandleTypeDef *phost, uint8_t ep_addr) |
USBH_Alloc_Pipe Allocate a new Pipe. More... | |
USBH_StatusTypeDef | USBH_FreePipe (USBH_HandleTypeDef *phost, uint8_t idx) |
USBH_Free_Pipe Free the USB Pipe. More... | |
USBH_StatusTypeDef USBH_OpenPipe | ( | USBH_HandleTypeDef * | phost, |
uint8_t | pipe_num, | ||
uint8_t | epnum, | ||
uint8_t | dev_address, | ||
uint8_t | speed, | ||
uint8_t | ep_type, | ||
uint16_t | mps | ||
) |
USBH_Open_Pipe Open a pipe.
phost | Host Handle |
pipe_num | Pipe Number |
dev_address | USB Device address allocated to attached device |
speed | : USB device speed (Full/Low) |
ep_type | end point type (Bulk/int/ctl) |
mps | max pkt size |
USBH | Status |
USBH_StatusTypeDef USBH_ClosePipe | ( | USBH_HandleTypeDef * | phost, |
uint8_t | pipe_num | ||
) |
USBH_ClosePipe Close a pipe.
phost | Host Handle |
pipe_num | Pipe Number |
USBH | Status |
uint8_t USBH_AllocPipe | ( | USBH_HandleTypeDef * | phost, |
uint8_t | ep_addr | ||
) |
USBH_Alloc_Pipe Allocate a new Pipe.
phost | Host Handle |
ep_addr | End point for which the Pipe to be allocated |
Pipe | number |
USBH_StatusTypeDef USBH_FreePipe | ( | USBH_HandleTypeDef * | phost, |
uint8_t | idx | ||
) |