 |
My Project
|
|
Go to the documentation of this file.
10 #ifndef RGB_LED_LIGHTING_SHIELD_PAL_I2C_PSOC_HPP_
11 #define RGB_LED_LIGHTING_SHIELD_PAL_I2C_PSOC_HPP_
15 #if (RGB_LED_LIGHTING_SHIELD_FRAMEWORK == RGB_LED_LIGHTING_SHIELD_FRMWK_PSOC6)
22 #include "cy_retarget_io.h"
30 using namespace ledDali;
39 Error_t setClockFreq(uint32_t clockHz);
40 Error_t read(uint16_t addr, uint8_t command, uint16_t *data, uint16_t length);
41 Error_t read(uint16_t addr, uint8_t command, uint16_t *data);
42 Error_t write(uint16_t addr, uint8_t command, uint16_t *data, uint16_t length);
43 Error_t write(uint16_t addr, uint8_t command, uint16_t data);
44 Error_t writeDMX(uint16_t addr, uint8_t command);
47 void convertData(uint8_t command, uint16 *buffer, uint16_t length, uint8_t *result);
48 uint16_t _i2cFreq = 100000;
50 cyhal_i2c_cfg_t _I2C_cfg;
@ INVALID_CONFIG_ERROR
Definition: rgb-led-lighting-shield-types.hpp:37
Error_t deinit()
Deinitialize the I2C bus.
Definition: rgb-led-lighting-shield-pal-i2c-psoc.cpp:77
I2CPALPSoC()
Constructor of the IC2-Class for PSoC.
Definition: rgb-led-lighting-shield-pal-i2c-psoc.cpp:20
RGB LED LIGHTING SHIELD Library Configuration.
Error_t writeDMX(uint16_t addr, uint8_t command)
Write to the slave via DMX.
Definition: rgb-led-lighting-shield-pal-i2c-psoc.cpp:284
@ OK
Definition: rgb-led-lighting-shield-types.hpp:28
Error_t init()
Initialization of the I2C bus.
Definition: rgb-led-lighting-shield-pal-i2c-psoc.cpp:44
Error_t setClockFreq(uint32_t clockHz)
Set the clock frequency of the I2C bus.
Definition: rgb-led-lighting-shield-pal-i2c-psoc.cpp:96
RGB LED LIGHTING SHIELD I2C Platform Abstraction Layer PSoC.
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-psoc.cpp:126
Definition: rgb-led-lighting-shield-pal-i2c-psoc.hpp:32
RGB LED LIGHTING SHIELD I2C Platform Abstraction Layer.
@ COMM_ERROR
Definition: rgb-led-lighting-shield-types.hpp:33
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-psoc.cpp:217
RGB LED LIGHTING SHIELD Library Registers.
Error_t
Error List.
Definition: rgb-led-lighting-shield-types.hpp:26
~I2CPALPSoC()
Destructor of the PSoC I2C-Class.
Definition: rgb-led-lighting-shield-pal-i2c-psoc.cpp:31