| 77 | } |
| 78 | |
| 79 | BAN::ErrorOr<void> EmbeddedController::write_byte(uint8_t offset, uint8_t value) |
| 80 | { |
| 81 | Command command { |
| 82 | .command = 0x81, |
| 83 | .data1 = offset, |
| 84 | .data2 = value, |
| 85 | .response = nullptr, |
| 86 | .done = false, |
| 87 | }; |
| 88 | |
| 89 | TRY(send_command(command)); |
| 90 | |
| 91 | return {}; |
| 92 | } |
| 93 | |
| 94 | uint8_t EmbeddedController::read_one(uint16_t port) |
| 95 | { |
no outgoing calls
no test coverage detected