diff options
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r-- | include/usb_pd.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h index c3fac8b296..e11d712800 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -244,11 +244,16 @@ void pd_set_clock(int freq); * Start sending over the wire the prepared packet. * * @param ctxt opaque context. + * @param polarity plug polarity (0=CC1, 1=CC2). * @param bit_len size of the packet in bits. */ -void pd_start_tx(void *ctxt, int bit_len); -/* Call when we are done sending a packet */ -void pd_tx_done(void); +void pd_start_tx(void *ctxt, int polarity, int bit_len); +/** + * Call when we are done sending a packet. + * + * @param polarity plug polarity (0=CC1, 1=CC2). + */ +void pd_tx_done(int polarity); /* Callback when the hardware has detected an incoming packet */ void pd_rx_event(void); |