Skip to main content
Pigweed's logo Pigweed
code_xml
  1. Home
  2. Reference
  3. C/C++
  4. pw_i2c
  5. pw::i2c::I2cService Class Reference
Loading...
Searching...
No Matches
pw::i2c::I2cService Class Referencefinal

Overview

RPC service for performing I2C transactions.

Inheritance diagram for pw::i2c::I2cService:

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.
 

The documentation for this class was generated from the following file: