rename port to rhport for clarification
This commit is contained in:
@@ -55,15 +55,15 @@
|
||||
//--------------------------------------------------------------------+
|
||||
// APPLICATION API (Multiple Ports)
|
||||
//--------------------------------------------------------------------+
|
||||
bool tud_n_cdc_connected (uint8_t port);
|
||||
uint32_t tud_n_cdc_available (uint8_t port);
|
||||
bool tud_n_cdc_connected (uint8_t rhport);
|
||||
uint32_t tud_n_cdc_available (uint8_t rhport);
|
||||
|
||||
int tud_n_cdc_read_char (uint8_t port);
|
||||
uint32_t tud_n_cdc_read (uint8_t port, void* buffer, uint32_t bufsize);
|
||||
int tud_n_cdc_read_char (uint8_t rhport);
|
||||
uint32_t tud_n_cdc_read (uint8_t rhport, void* buffer, uint32_t bufsize);
|
||||
|
||||
uint32_t tud_n_cdc_write_char (uint8_t port, char ch);
|
||||
uint32_t tud_n_cdc_write (uint8_t port, void const* buffer, uint32_t bufsize);
|
||||
bool tud_n_cdc_flush (uint8_t port);
|
||||
uint32_t tud_n_cdc_write_char (uint8_t rhport, char ch);
|
||||
uint32_t tud_n_cdc_write (uint8_t rhport, void const* buffer, uint32_t bufsize);
|
||||
bool tud_n_cdc_flush (uint8_t rhport);
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// APPLICATION API (Single Port)
|
||||
@@ -81,8 +81,8 @@ static inline bool tud_cdc_flush (void)
|
||||
//--------------------------------------------------------------------+
|
||||
// APPLICATION CALLBACK API
|
||||
//--------------------------------------------------------------------+
|
||||
//void tud_cdc_line_coding_changed_cb(uint8_t port, cdc_line_coding_t* p_line_coding);
|
||||
void tud_cdc_rx_cb(uint8_t port);
|
||||
//void tud_cdc_line_coding_changed_cb(uint8_t rhport, cdc_line_coding_t* p_line_coding);
|
||||
void tud_cdc_rx_cb(uint8_t rhport);
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// USBD-CLASS DRIVER API
|
||||
@@ -90,12 +90,12 @@ void tud_cdc_rx_cb(uint8_t port);
|
||||
#ifdef _TINY_USB_SOURCE_FILE_
|
||||
|
||||
void cdcd_init(void);
|
||||
tusb_error_t cdcd_open(uint8_t port, tusb_descriptor_interface_t const * p_interface_desc, uint16_t *p_length);
|
||||
tusb_error_t cdcd_control_request_st(uint8_t port, tusb_control_request_t const * p_request);
|
||||
tusb_error_t cdcd_xfer_cb(uint8_t port, uint8_t edpt_addr, tusb_event_t event, uint32_t xferred_bytes);
|
||||
void cdcd_close(uint8_t port);
|
||||
tusb_error_t cdcd_open(uint8_t rhport, tusb_descriptor_interface_t const * p_interface_desc, uint16_t *p_length);
|
||||
tusb_error_t cdcd_control_request_st(uint8_t rhport, tusb_control_request_t const * p_request);
|
||||
tusb_error_t cdcd_xfer_cb(uint8_t rhport, uint8_t edpt_addr, tusb_event_t event, uint32_t xferred_bytes);
|
||||
void cdcd_close(uint8_t rhport);
|
||||
|
||||
void cdcd_sof(uint8_t port);
|
||||
void cdcd_sof(uint8_t rhport);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user