RPC service for performing I2C transactions.
Public Types | |
| using | InitiatorSelector = pw::Function< Initiator *(size_t pos)> |
Public Member Functions | |
| I2cService (InitiatorSelector &&initiator_selector) | |
| Creates an I2cService instance. | |
| void | I2cWrite (const pwpb::I2cWriteRequest::Message &request, pw::rpc::PwpbUnaryResponder< pwpb::I2cWriteResponse::Message > &responder) |
| Writes a message to the specified I2C device register. | |
| void | I2cRead (const pwpb::I2cReadRequest::Message &request, pw::rpc::PwpbUnaryResponder< pwpb::I2cReadResponse::Message > &responder) |
| Reads a message from the specified I2C device register. | |