[Voyageurs] Send USB keypress data to the keyboard driver.
This commit is contained in:
parent
3c1e435e04
commit
02d4f8c80e
10 changed files with 79 additions and 20 deletions
|
|
@ -10,6 +10,7 @@ namespace mmth {
|
|||
class PortClient {
|
||||
public:
|
||||
PortClient() {}
|
||||
PortClient(z_cap_t port_cap);
|
||||
static PortClient AdoptPort(z_cap_t port_cap);
|
||||
|
||||
template <typename T>
|
||||
|
|
@ -18,6 +19,7 @@ class PortClient {
|
|||
glcr::ErrorCode WriteString(glcr::String str, z_cap_t cap);
|
||||
|
||||
glcr::ErrorCode WriteByte(uint8_t byte);
|
||||
glcr::ErrorCode Write(uint64_t data);
|
||||
|
||||
z_cap_t cap() { return port_cap_; }
|
||||
|
||||
|
|
@ -25,8 +27,6 @@ class PortClient {
|
|||
|
||||
private:
|
||||
z_cap_t port_cap_ = 0;
|
||||
|
||||
PortClient(z_cap_t port_cap);
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue