APM:Libraries
Public Member Functions | Public Attributes | List of all members
Linux::I2CBus Class Reference
Inheritance diagram for Linux::I2CBus:
[legend]
Collaboration diagram for Linux::I2CBus:
[legend]

Public Member Functions

 ~I2CBus ()
 
void start_cb () override
 
void end_cb () override
 
int open (uint8_t n)
 
- Public Member Functions inherited from Linux::TimerPollable::WrapperCb
virtual ~WrapperCb ()
 

Public Attributes

PollerThread thread
 
Semaphore sem
 
int fd = -1
 
uint8_t bus
 
uint8_t ref
 

Detailed Description

Definition at line 79 of file I2CDevice.cpp.

Constructor & Destructor Documentation

◆ ~I2CBus()

Linux::I2CBus::~I2CBus ( )

Definition at line 99 of file I2CDevice.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ end_cb()

void Linux::I2CBus::end_cb ( )
overridevirtual

Reimplemented from Linux::TimerPollable::WrapperCb.

Definition at line 111 of file I2CDevice.cpp.

Here is the call graph for this function:

◆ open()

int Linux::I2CBus::open ( uint8_t  n)

Definition at line 116 of file I2CDevice.cpp.

Here is the call graph for this function:

◆ start_cb()

void Linux::I2CBus::start_cb ( )
overridevirtual

Reimplemented from Linux::TimerPollable::WrapperCb.

Definition at line 106 of file I2CDevice.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ bus

uint8_t Linux::I2CBus::bus

◆ fd

int Linux::I2CBus::fd = -1

◆ ref

uint8_t Linux::I2CBus::ref

◆ sem

Semaphore Linux::I2CBus::sem

Definition at line 93 of file I2CDevice.cpp.

Referenced by end_cb(), Linux::I2CDevice::get_semaphore(), and start_cb().

◆ thread

PollerThread Linux::I2CBus::thread

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