APM:Libraries
Classes | Namespaces | Macros | Functions | Variables
I2CDevice.cpp File Reference
#include "I2CDevice.h"
#include <algorithm>
#include <assert.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <linux/i2c-dev.h>
#include <linux/i2c.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <unistd.h>
#include <vector>
#include <AP_HAL/AP_HAL.h>
#include <AP_Math/AP_Math.h>
#include "PollerThread.h"
#include "Scheduler.h"
#include "Semaphores.h"
#include "Thread.h"
#include "Util.h"
Include dependency graph for I2CDevice.cpp:

Go to the source code of this file.

Classes

class  Linux::I2CBus
 

Namespaces

 Linux
 

Macros

#define I2C_RDRW_IOCTL_MAX_MSGS   42
 

Functions

static char * Linux::startswith (const char *s, const char *prefix)
 

Variables

static const AP_HAL::HALLinux::hal = AP_HAL::get_HAL()
 

Macro Definition Documentation

◆ I2C_RDRW_IOCTL_MAX_MSGS

#define I2C_RDRW_IOCTL_MAX_MSGS   42

Definition at line 56 of file I2CDevice.cpp.

Referenced by Linux::I2CDevice::read_registers_multiple().