#pragma once #include #include #include "platform.h" // Reads one packet from stdin, waiting up to timeout_ms. Exits the process // when stdin is closed. bool host_receive(uint8_t packet[HID_PACKET_SIZE], int timeout_ms);