King Kévin
f93644d127
usb_cables: add load check function
...
this needed to add information about the pin type.
also pins are now considered as connected if any direction or
level works.
thus there are no errors anymore when testing cables.
power with ground pins are not tested anymore because optional
loads are causing false positives (regarding if pins are
connected).
2020-02-27 16:44:10 +01:00
King Kévin
76d8a23281
usb_cables: minor, make more readable
2020-02-27 16:44:10 +01:00
King Kévin
4735911444
usb_cables: add faster inter-connector test using ground
2020-02-27 16:44:10 +01:00
King Kévin
84c70a61d1
usb_cables: improve inter-connector test
2020-02-27 16:44:10 +01:00
King Kévin
9bcd7c94f0
usb_cables: minor, rename USB-C +/- to p/n
2020-02-27 16:44:10 +01:00
King Kévin
a604531eae
usb_cables: minor, document cable connections
2020-02-27 16:44:10 +01:00
King Kévin
f310a453a7
usb_cables: add USB-C shunt cable definitions
2020-02-27 16:44:10 +01:00
King Kévin
946ba2e243
usb_cables: fix inter-connector output
2020-02-27 16:44:10 +01:00
King Kévin
f69ff24764
usb_cables: fix USB mini-B pinout
2020-02-27 16:44:10 +01:00
King Kévin
5673df323e
usb_cables: fix USB-C D+2/D-2 pinout
2020-02-27 16:44:10 +01:00
King Kévin
2fe895d964
usb_cables: allow NULL arguments
2020-02-27 16:44:10 +01:00
King Kévin
619954239a
usb_cables: fix output string
2020-02-27 16:44:10 +01:00
King Kévin
b1d0262699
usb_cables: give more time for signal to settle for more stable connection checks
2020-02-27 16:44:10 +01:00
King Kévin
990241c0c8
usb_cables: fix USB-A 3.0 pinout and names
2020-02-27 16:44:10 +01:00
King Kévin
99fc82227a
usb_cables: add settling time before reading GPIO
2020-02-27 16:44:10 +01:00
King Kévin
2538ee6683
usb_cables: add miniB and microB cable definitions
2020-02-27 16:41:18 +01:00
King Kévin
b16621314e
usb_cables: add cable definitions
2020-02-27 16:41:18 +01:00
King Kévin
3624ca410f
usb_cables: use more pointers to save space (and add cable definitions)
2020-02-27 16:41:18 +01:00
King Kévin
a5a5b06926
usb_cables: add output to intra and inter connection check
2020-02-27 16:41:18 +01:00
King Kévin
871153de51
usb_cables: fix cable checker return value
2020-02-27 16:41:18 +01:00
King Kévin
84035eaca7
usb_cables: add and use common method to test connection between two pins
2020-02-27 16:41:18 +01:00
King Kévin
5cf6f20319
usb_cables: add definitions of USB pin, connectors, (some) cables, and utilities to test connections
2020-02-27 16:39:57 +01:00