Lines Matching defs:data
64 * Register a data available callback into the PS/2 interface
71 * Check if there is pending data from the PS/2 device.
73 * @return true if there is data pending that can be read using
82 * no data is pending.
89 * @param c Received data.
100 * data and the buffer can be cleared, or false if more data is
103 * @param data Pending input data (at least one byte)
104 * @return false if more data is needed to process the current
107 virtual bool recv(const std::vector<uint8_t> &data) = 0;
110 * Send data from a PS/2 device to a host
112 * @param data Pointer to data array
113 * @param size Size of the data array
115 void send(const uint8_t *data, size_t size);
116 void send(const std::vector<uint8_t> &data) {
117 send(data.data(), data.size());
121 * Send a byte of data from a PS/2 device to a host
123 * @param data Byte to send
125 void send(uint8_t data) { send(&data, 1); }