APM:Libraries
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
PX4::PX4_I2C Class Reference

#include <I2CWrapper.h>

Inheritance diagram for PX4::PX4_I2C:
[legend]
Collaboration diagram for PX4::PX4_I2C:
[legend]

Public Member Functions

 PX4_I2C (uint8_t bus)
 
bool do_transfer (uint8_t address, const uint8_t *send, uint32_t send_len, uint8_t *recv, uint32_t recv_len, bool split_transfers)
 
void set_retries (uint8_t retries)
 
uint8_t map_bus_number (uint8_t bus) const
 

Static Public Member Functions

static void init_lock (void)
 

Private Attributes

bool init_done
 
bool init_ok
 
char devname [11]
 
char devpath [15]
 

Static Private Attributes

static uint8_t instance
 
static pthread_mutex_t instance_lock
 

Detailed Description

Definition at line 16 of file I2CWrapper.h.

Constructor & Destructor Documentation

◆ PX4_I2C()

PX4::PX4_I2C::PX4_I2C ( uint8_t  bus)

Definition at line 32 of file I2CDevice.cpp.

Member Function Documentation

◆ do_transfer()

bool PX4::PX4_I2C::do_transfer ( uint8_t  address,
const uint8_t *  send,
uint32_t  send_len,
uint8_t *  recv,
uint32_t  recv_len,
bool  split_transfers 
)

Definition at line 72 of file I2CDevice.cpp.

Referenced by PX4::I2CDevice::transfer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_lock()

static void PX4::PX4_I2C::init_lock ( void  )
inlinestatic

Definition at line 28 of file I2CWrapper.h.

◆ map_bus_number()

uint8_t PX4::PX4_I2C::map_bus_number ( uint8_t  bus) const

Definition at line 39 of file I2CDevice.cpp.

Referenced by set_retries().

Here is the caller graph for this function:

◆ set_retries()

void PX4::PX4_I2C::set_retries ( uint8_t  retries)
inline

Definition at line 21 of file I2CWrapper.h.

Referenced by PX4::I2CDevice::set_retries().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ devname

char PX4::PX4_I2C::devname[11]
private

Definition at line 37 of file I2CWrapper.h.

Referenced by do_transfer().

◆ devpath

char PX4::PX4_I2C::devpath[15]
private

Definition at line 38 of file I2CWrapper.h.

Referenced by do_transfer().

◆ init_done

bool PX4::PX4_I2C::init_done
private

Definition at line 35 of file I2CWrapper.h.

Referenced by do_transfer().

◆ init_ok

bool PX4::PX4_I2C::init_ok
private

Definition at line 36 of file I2CWrapper.h.

Referenced by do_transfer().

◆ instance

uint8_t PX4::PX4_I2C::instance
staticprivate

Definition at line 33 of file I2CWrapper.h.

Referenced by do_transfer().

◆ instance_lock

pthread_mutex_t PX4::PX4_I2C::instance_lock
staticprivate

Definition at line 34 of file I2CWrapper.h.

Referenced by do_transfer(), and init_lock().


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