PX4 Firmware
PX4 Autopilot Software http://px4.io
SMBus.hpp File Reference

SMBus v2.0 protocol implementation. More...

#include <drivers/device/i2c.h>
#include <string.h>
Include dependency graph for SMBus.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SMBus
 

Macros

#define SMBUS_PEC_POLYNOMIAL   0x07
 Polynomial for calculating PEC. More...
 

Detailed Description

SMBus v2.0 protocol implementation.

Author
Jacob Dahl dahl..nosp@m.jake.nosp@m.jacob.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Definition in file SMBus.hpp.

Macro Definition Documentation

◆ SMBUS_PEC_POLYNOMIAL

#define SMBUS_PEC_POLYNOMIAL   0x07

Polynomial for calculating PEC.

Definition at line 45 of file SMBus.hpp.

Referenced by SMBus::get_pec().