diff --git a/usb_cables.c b/usb_cables.c index 3af7ff8..697c500 100644 --- a/usb_cables.c +++ b/usb_cables.c @@ -4562,7 +4562,7 @@ const struct usb_connector_t* usb_cables_get_connector(uint8_t pin) return NULL; } -uint8_t usb_cables_check_pins(const struct usb_pin_t* pin1, const struct usb_pin_t* pin2) +uint8_t usb_cables_test_pins(const struct usb_pin_t* pin1, const struct usb_pin_t* pin2) { cm3_assert(pin1 && pin2); @@ -4794,7 +4794,7 @@ bool usb_cables_test_cable(const struct usb_cable_t* cable, uint8_t* defined, ui } } - uint8_t connection = usb_cables_check_pins(usb_pin_from, usb_pin_to); + uint8_t connection = usb_cables_test_pins(usb_pin_from, usb_pin_to); if (connection >= 0x22) { if (pair_defined) { _defined++; @@ -4888,7 +4888,7 @@ uint8_t** usb_cables_test_connections(const struct usb_connector_t** connectors, } // test connection - uint8_t connection = usb_cables_check_pins(usb_pin_from, usb_pin_to); + uint8_t connection = usb_cables_test_pins(usb_pin_from, usb_pin_to); if (connection >= 0x22) { if (UINT16_MAX == (*connections_nb)) { // we already found the maximum of connections return (uint8_t**)connections; diff --git a/usb_cables.h b/usb_cables.h index 4c582c1..a6e034b 100644 --- a/usb_cables.h +++ b/usb_cables.h @@ -93,7 +93,7 @@ const struct usb_connector_t* usb_cables_get_connector(uint8_t pin); * @return first nibble corresponds to the connection types (usb_pin_connection_t) from pin1 to pin2, second nibble from pin2 to pin1 * @note setting both levels (high, low) in both directions (pin1 to pin2 and pin2 to pin1) are tested, except for ground pins */ -uint8_t usb_cables_check_pins(const struct usb_pin_t* pin1, const struct usb_pin_t* pin2); +uint8_t usb_cables_test_pins(const struct usb_pin_t* pin1, const struct usb_pin_t* pin2); /** check connectors for connections between ground pins of the connectors * @param[in] connectors connectors to check * @param[in] connectors_nb numbers of connectors