![]() |
SyterKit 0.4.0.x
SyterKit is a bare-metal framework
|
#include <stdarg.h>#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <types.h>#include "reg/reg-usb.h"

Go to the source code of this file.
Functions | |
| int | usb_dma_init (uint64_t husb) |
| Initialize USB DMA. | |
| int | usb_dma_request (void) |
| Request a USB DMA channel. | |
| int | usb_dma_release (uint32_t dma_index) |
| Release a USB DMA channel. | |
| int | usb_dma_setting (uint32_t dma_index, uint32_t trans_dir, uint32_t ep) |
| Set the parameters of a USB DMA channel. | |
| int | usb_dma_set_pktlen (uint32_t dma_index, uint32_t pkt_len) |
| Set the packet length of a USB DMA channel. | |
| int | usb_dma_start (uint32_t dma_index, uint32_t addr, uint32_t bytes) |
| Start a USB DMA transfer. | |
| int | usb_dma_stop (uint32_t dma_index) |
| Stop a USB DMA transfer. | |
| int | usb_dma_int_query (uint32_t dma_index) |
| Query the interrupt status of a USB DMA channel. | |
| int | usb_dma_int_clear (void) |
| Clear the interrupt status of all USB DMA channels. | |
| int usb_dma_init | ( | uint64_t | husb | ) |
Initialize USB DMA.
This function is used to initialize USB DMA.
| husb | The USB controller handle |
| int usb_dma_int_clear | ( | void | ) |
Clear the interrupt status of all USB DMA channels.
This function is used to clear the interrupt status of all USB DMA channels.
| int usb_dma_int_query | ( | uint32_t | dma_index | ) |
Query the interrupt status of a USB DMA channel.
This function is used to query the interrupt status of a USB DMA channel.
| dma_index | The DMA index to query |
| int usb_dma_release | ( | uint32_t | dma_index | ) |
Release a USB DMA channel.
This function is used to release a USB DMA channel.
| dma_index | The DMA index to release |
| int usb_dma_request | ( | void | ) |
Request a USB DMA channel.
This function is used to request a USB DMA channel.
Set the packet length of a USB DMA channel.
This function is used to set the packet length of a USB DMA channel.
| dma_index | The DMA index to configure |
| pkt_len | The packet length to set |
Set the parameters of a USB DMA channel.
This function is used to set the parameters of a USB DMA channel.
| dma_index | The DMA index to configure |
| trans_dir | The transfer direction (IN or OUT) |
| ep | The endpoint number |
Start a USB DMA transfer.
This function is used to start a USB DMA transfer.
| dma_index | The DMA index to use |
| addr | The address of the buffer for the transfer |
| bytes | The number of bytes to transfer |
| int usb_dma_stop | ( | uint32_t | dma_index | ) |
Stop a USB DMA transfer.
This function is used to stop a USB DMA transfer.
| dma_index | The DMA index to stop |