HID-over-GATT implementation with the BLE API. This library allows to create devices such as mouse, keyboard or joystick, over Bluetooth Low Energy.
KeyBuffer Class Reference
Buffer used to store keys to send. More...
|void||setPending (uint8_t data)|
|Mark a character as pending. |
|bool||getPending (uint8_t &data)|
|Get pending char. |
|Signal that a keyUp report is pending. |
|Signal that no high-priority report is pending anymore, we can go back to the normal queue. |
Buffer used to store keys to send.
Internally, it is a CircularBuffer, with the added capability of putting the last char back in, when we're unable to send it (ie. when BLE stack is busy)
Member Function Documentation
|bool getPending||(||uint8_t &||data )|
|void setPending||(||uint8_t||data )|
Mark a character as pending.
When a freshly popped character cannot be sent, because the underlying stack is busy, we set it as pending, and it will get popped in priority by getPending once reports can be sent again.
data The character to send in priority. The second keyUp report is implied.
Generated on Mon Dec 17 2018 17:41:38 by 1.7.2