Open FFBoard
Open source force feedback firmware
usbc.h File Reference

Go to the source code of this file.

Functions

bool tuc_init (uint8_t rhport, uint32_t port_type)
 
bool tuc_inited (uint8_t rhport)
 
void tuc_task_ext (uint32_t timeout_ms, bool in_isr)
 
static TU_ATTR_ALWAYS_INLINE void tuc_task (void)
 
void tcd_int_handler (uint8_t rhport)
 
TU_ATTR_WEAK bool tuc_pd_data_received_cb (uint8_t rhport, pd_header_t const *header, uint8_t const *dobj, uint8_t const *p_end)
 
TU_ATTR_WEAK bool tuc_pd_control_received_cb (uint8_t rhport, pd_header_t const *header)
 
bool tuc_msg_request (uint8_t rhport, void const *rdo)
 

Function Documentation

◆ tcd_int_handler()

void tcd_int_handler ( uint8_t  rhport)

Definition at line 238 of file typec_stm32.c.

◆ tuc_init()

bool tuc_init ( uint8_t  rhport,
uint32_t  port_type 
)

Definition at line 69 of file usbc.c.

◆ tuc_inited()

bool tuc_inited ( uint8_t  rhport)

Definition at line 65 of file usbc.c.

◆ tuc_msg_request()

bool tuc_msg_request ( uint8_t  rhport,
void const *  rdo 
)

Definition at line 171 of file usbc.c.

◆ tuc_pd_control_received_cb()

TU_ATTR_WEAK bool tuc_pd_control_received_cb ( uint8_t  rhport,
pd_header_t const *  header 
)

◆ tuc_pd_data_received_cb()

TU_ATTR_WEAK bool tuc_pd_data_received_cb ( uint8_t  rhport,
pd_header_t const *  header,
uint8_t const *  dobj,
uint8_t const *  p_end 
)

◆ tuc_task()

static TU_ATTR_ALWAYS_INLINE void tuc_task ( void  )
inlinestatic

Definition at line 62 of file usbc.h.

◆ tuc_task_ext()

void tuc_task_ext ( uint32_t  timeout_ms,
bool  in_isr 
)

Definition at line 95 of file usbc.c.