summaryrefslogtreecommitdiff
path: root/src/typec/usbc.h
diff options
context:
space:
mode:
authorMike Ajax <[email protected]>2026-08-30 09:59:00 -0700
committerMike Ajax <[email protected]>2026-08-30 09:59:00 -0700
commitaa535e8268ec962aa69a5d613b37075973ac1d5c (patch)
tree577378996010e7f11847365782ab891e2fae44c1 /src/typec/usbc.h
parent1e3c2faed4db782f093aa4c88fc98fa81cccc77a (diff)
Suppress USB-C attached callback unless cable state changed from disconnected->connected or connected->disconnected
Diffstat (limited to 'src/typec/usbc.h')
-rw-r--r--src/typec/usbc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/typec/usbc.h b/src/typec/usbc.h
index fc4773b07..dfc96dee9 100644
--- a/src/typec/usbc.h
+++ b/src/typec/usbc.h
@@ -65,6 +65,7 @@ extern void tcd_int_handler(uint8_t rhport);
bool tuc_pd_data_received_cb(uint8_t rhport, pd_header_t const* header, uint8_t const* dobj, uint8_t const* p_end);
bool tuc_pd_control_received_cb(uint8_t rhport, pd_header_t const* header);
+// Invoked from tuc_task() only when the derived attachment state changes.
void tuc_attach_changed_cb(uint8_t rhport, bool attached);
//--------------------------------------------------------------------+