Open FFBoard
Open source force feedback firmware
Loading...
Searching...
No Matches
dwc2_common.c File Reference

Go to the source code of this file.

Functions

static void reset_core (dwc2_regs_t *dwc2)
 
static void phy_fs_init (dwc2_regs_t *dwc2)
 
static void phy_hs_init (dwc2_regs_t *dwc2)
 
static bool check_dwc2 (dwc2_regs_t *dwc2)
 
bool dwc2_core_is_highspeed (dwc2_regs_t *dwc2, tusb_role_t role)
 
bool dwc2_core_init (uint8_t rhport, bool is_highspeed)
 
void dfifo_read_packet (dwc2_regs_t *dwc2, uint8_t *dst, uint16_t len)
 
void dfifo_write_packet (dwc2_regs_t *dwc2, uint8_t fifo_num, const uint8_t *src, uint16_t len)
 

Function Documentation

◆ check_dwc2()

static bool check_dwc2 ( dwc2_regs_t * dwc2)
static

Definition at line 146 of file dwc2_common.c.

◆ dfifo_read_packet()

void dfifo_read_packet ( dwc2_regs_t * dwc2,
uint8_t * dst,
uint16_t len )

Definition at line 252 of file dwc2_common.c.

◆ dfifo_write_packet()

void dfifo_write_packet ( dwc2_regs_t * dwc2,
uint8_t fifo_num,
const uint8_t * src,
uint16_t len )

Definition at line 277 of file dwc2_common.c.

◆ dwc2_core_init()

bool dwc2_core_init ( uint8_t rhport,
bool is_highspeed )

Definition at line 197 of file dwc2_common.c.

◆ dwc2_core_is_highspeed()

bool dwc2_core_is_highspeed ( dwc2_regs_t * dwc2,
tusb_role_t role )

Definition at line 172 of file dwc2_common.c.

◆ phy_fs_init()

static void phy_fs_init ( dwc2_regs_t * dwc2)
static

Definition at line 63 of file dwc2_common.c.

◆ phy_hs_init()

static void phy_hs_init ( dwc2_regs_t * dwc2)
static

Definition at line 89 of file dwc2_common.c.

◆ reset_core()

static void reset_core ( dwc2_regs_t * dwc2)
static

Definition at line 46 of file dwc2_common.c.