Raspberry PI GPIO Scol plugin
Public Member Functions | List of all members
RpiI2C Class Reference

Public Member Functions

 RpiI2C (int deviceId)
 
int Read ()
 
void Write (int value)
 
void WriteReg8 (int reg, int value)
 
int ReadReg8 (int reg)
 
void WriteReg16 (int reg, int value)
 
int ReadReg16 (int reg)
 

Detailed Description

Definition at line 5 of file rpii2c.h.

Constructor & Destructor Documentation

◆ RpiI2C() [1/2]

RpiI2C::RpiI2C ( )

Definition at line 16 of file rpii2c.cpp.

◆ RpiI2C() [2/2]

RpiI2C::RpiI2C ( int  deviceId)

Definition at line 20 of file rpii2c.cpp.

◆ ~RpiI2C()

RpiI2C::~RpiI2C ( )

Definition at line 28 of file rpii2c.cpp.

Member Function Documentation

◆ Read()

int RpiI2C::Read ( )

Definition at line 38 of file rpii2c.cpp.

◆ ReadReg16()

int RpiI2C::ReadReg16 ( int  reg)

Definition at line 90 of file rpii2c.cpp.

◆ ReadReg8()

int RpiI2C::ReadReg8 ( int  reg)

Definition at line 69 of file rpii2c.cpp.

◆ Write()

void RpiI2C::Write ( int  value)

Definition at line 49 of file rpii2c.cpp.

◆ WriteReg16()

void RpiI2C::WriteReg16 ( int  reg,
int  value 
)

Definition at line 80 of file rpii2c.cpp.

◆ WriteReg8()

void RpiI2C::WriteReg8 ( int  reg,
int  value 
)

Definition at line 59 of file rpii2c.cpp.


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