diff options
Diffstat (limited to 'hid/pico/src/ph_ps2_phy.h')
-rw-r--r-- | hid/pico/src/ph_ps2_phy.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hid/pico/src/ph_ps2_phy.h b/hid/pico/src/ph_ps2_phy.h index 17dd9e0d..19008c99 100644 --- a/hid/pico/src/ph_ps2_phy.h +++ b/hid/pico/src/ph_ps2_phy.h @@ -4,7 +4,7 @@ #include "hardware/pio.h" #include "pico/util/queue.h" -typedef void (*rx_callback)(u8 byte); +typedef void (*rx_callback)(u8 byte, u8 prev_byte); typedef struct { PIO pio; @@ -13,6 +13,8 @@ typedef struct { queue_t qpacks; u8 sent; rx_callback rx; + u8 last_rx; + u8 last_tx; } ph_ps2_phy; void ph_ps2_phy_init(ph_ps2_phy* this, PIO pio, u8 data_pin, rx_callback rx); |