diff options
| author | HiFiPhile <[email protected]> | 2026-06-24 21:15:33 +0200 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2026-06-24 21:15:33 +0200 |
| commit | f35af01db58ba76bef1a65a56458bc815497ebbe (patch) | |
| tree | 0e890d9579690742e0a2c1e6a4f6956be5a8bbad /src/typec/usbc.h | |
| parent | 3a1ced7e1333de7ddf57f8592a41cbf0605512ed (diff) | |
typec: add tuc_connect/tuc_disconnect api
Signed-off-by: HiFiPhile <[email protected]>
Diffstat (limited to 'src/typec/usbc.h')
| -rw-r--r-- | src/typec/usbc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/typec/usbc.h b/src/typec/usbc.h index 711119596..ed8595d27 100644 --- a/src/typec/usbc.h +++ b/src/typec/usbc.h @@ -52,6 +52,14 @@ bool tuc_init(uint8_t rhport, uint32_t port_type); // Check if typec port is initialized bool tuc_inited(uint8_t rhport); +// Enable Type-C port terminations +// Return false if port is not initialized +bool tuc_connect(uint8_t rhport); + +// Disable Type-C port terminations +// Return false if port is not initialized +bool tuc_disconnect(uint8_t rhport); + // Task function should be called in main/rtos loop, extended version of tud_task() // - timeout_ms: millisecond to wait, zero = no wait, 0xFFFFFFFF = wait forever // - in_isr: if function is called in ISR |
