From 1fe55667142158af865372a8b9916581662286fe Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 27 Jun 2017 17:18:55 +0200 Subject: Change marketing stuff unicens -> UNICENS MicroChip -> Microchip Change-Id: I7a2f48ac62f44579831ed252b5e24dc918c09645 Signed-off-by: Romain Forlot --- ucs2-vol/inc/device_value.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'ucs2-vol/inc/device_value.h') diff --git a/ucs2-vol/inc/device_value.h b/ucs2-vol/inc/device_value.h index c27bc26..0c83197 100644 --- a/ucs2-vol/inc/device_value.h +++ b/ucs2-vol/inc/device_value.h @@ -53,30 +53,30 @@ enum DeviceValueType { DEVICE_VAL_MASTER = 0, DEVICE_VAL_LEFT = 1, DEVICE_VAL_RIGHT = 2 - + }; class CDeviceValue { public: CDeviceValue(uint16_t address, DeviceValueType type, uint16_t key); virtual ~CDeviceValue(); - + uint16_t GetKey(){return _key;} DeviceValueType GetType(){return _type;} // returns the assigned type void SetValue(uint8_t value){_target_value = value;} // sets desired value - + bool RequiresUpdate(); // returns true if target is not actual value // returns true if success, false if failed - // -> stop transmission + // -> stop transmission bool FireUpdateMessage(void);// fires message & updates actual value - + private: void HandleI2cResult(Ucs_I2c_Result_t result); void ApplyMostValue(uint8_t value, DeviceValueType type, uint8_t tx_payload[]); - + bool _is_initial; // ensure first update DeviceValueType _type; // determines the remote i2c command - uint16_t _key; // lookup key + uint16_t _key; // lookup key uint16_t _address; // target node/group address uint8_t _target_value; // desired value uint8_t _actual_value; // value set and confirmed via network -- cgit 1.2.3-korg