My Project
rgb-led-lighting-shield-pal-i2c-ino.hpp
Go to the documentation of this file.
1 
10 #ifndef RGB_LED_LIGHTING_SHIELD_PAL_I2C_INO_HPP_
11 #define RGB_LED_LIGHTING_SHIELD_I2C_INO_HPP_
12 
14 
15 #if (RGB_LED_LIGHTING_SHIELD_FRAMEWORK == RGB_LED_LIGHTING_SHIELD_FRMWK_ARDUINO)
16 
22 #include <Wire.h>
24 
25 using namespace rgbShield;
26 
27 class I2CPALIno : virtual public I2CPAL
28 {
29  public:
30  I2CPALIno(TwoWire *wire);
31  ~I2CPALIno();
32  Error_t init();
33  Error_t deinit();
34  Error_t setClockFreq(uint32_t clockHz);
35  Error_t read(uint16_t addr, uint8_t command, uint16_t *data, uint16_t length);
36  Error_t read(uint16_t addr, uint8_t command, uint16_t *data);
37  Error_t write(uint16_t addr, uint8_t command, uint16_t *data, uint16_t length);
38  Error_t write(uint16_t addr, uint8_t command, uint16_t data);
39  Error_t writeDMX(uint16_t addr, uint8_t command);
40 
41  private:
42  TwoWire *_wire;
43 };
44 
49 #endif
50 #endif
I2CPALIno::writeDMX
Error_t writeDMX(uint16_t addr, uint8_t command)
Write to the slave via DMX.
Definition: rgb-led-lighting-shield-pal-i2c-ino.cpp:282
I2CPALIno::deinit
Error_t deinit()
Deinitialize the I2C bus.
Definition: rgb-led-lighting-shield-pal-i2c-ino.cpp:96
rgb-led-lighting-shield-conf.hpp
RGB LED LIGHTING SHIELD Library Configuration.
rgbShield::OK
@ OK
Definition: rgb-led-lighting-shield-types.hpp:28
I2CPALIno::init
Error_t init()
Initialization of the I2C bus.
Definition: rgb-led-lighting-shield-pal-i2c-ino.cpp:46
rgbShield::INTF_ERROR
@ INTF_ERROR
Definition: rgb-led-lighting-shield-types.hpp:29
I2CPALIno::read
Error_t read(uint16_t addr, uint8_t command, uint16_t *data, uint16_t length)
Read several bytes from the slave via I2C.
Definition: rgb-led-lighting-shield-pal-i2c-ino.cpp:119
I2CPALIno
Definition: rgb-led-lighting-shield-pal-i2c-ino.hpp:27
rgb-led-lighting-shield-pal-i2c-ino.hpp
RGB LED LIGHTING SHIELD I2C Platform Abstraction Layer Arduino.
rgbShield::I2CPAL
Definition: rgb-led-lighting-shield-pal-i2c.hpp:24
I2CPALIno::write
Error_t write(uint16_t addr, uint8_t command, uint16_t *data, uint16_t length)
Write several bytes to the I2C slave.
Definition: rgb-led-lighting-shield-pal-i2c-ino.cpp:210
I2CPALIno::~I2CPALIno
~I2CPALIno()
Destructor of the Arduino I2C-Class.
Definition: rgb-led-lighting-shield-pal-i2c-ino.cpp:33
rgb-led-lighting-shield-pal-i2c.hpp
RGB LED LIGHTING SHIELD I2C Platform Abstraction Layer.
I2CPALIno::I2CPALIno
I2CPALIno(TwoWire *wire)
Constructor of the IC2-Class for Arduino.
Definition: rgb-led-lighting-shield-pal-i2c-ino.cpp:22
rgbShield::Error_t
Error_t
Error List.
Definition: rgb-led-lighting-shield-types.hpp:26
rgbShield
Definition: rgb-led-lighting-shield-types.hpp:19
I2CPALIno::setClockFreq
Error_t setClockFreq(uint32_t clockHz)
Set the clock frequency of the I2C bus.
Definition: rgb-led-lighting-shield-pal-i2c-ino.cpp:71