mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 09:51:14 +03:00
interfaces: Removed isConfigured() from IModuleStaus
Signed-off-by: Henry Bruce <henry.bruce@intel.com> Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:

committed by
Abhishek Malik

parent
f268437cd5
commit
9bc3d2ded0
@ -27,11 +27,6 @@ DS1808LC::~DS1808LC()
|
||||
}
|
||||
|
||||
|
||||
bool DS1808LC::isConfigured()
|
||||
{
|
||||
return status == mraa::SUCCESS;
|
||||
}
|
||||
|
||||
bool DS1808LC::isPowered()
|
||||
{
|
||||
return static_cast<bool>(MraaUtils::getGpio(pinPower));
|
||||
@ -62,7 +57,7 @@ int DS1808LC::getBrightness()
|
||||
else
|
||||
UPM_THROW("i2c read error");
|
||||
}
|
||||
|
||||
|
||||
|
||||
void DS1808LC::setBrightness(int dutyPercent)
|
||||
{
|
||||
|
@ -40,7 +40,7 @@ namespace upm
|
||||
* [DS1808](http://www.maximintegrated.com/en/products/analog/data-converters/digital-potentiometers/DS1808.html)
|
||||
* Dual Log Digital Potentiometer
|
||||
*
|
||||
*
|
||||
*
|
||||
* @library ds1808lc
|
||||
* @sensor ds1808lc
|
||||
* @comname Maxim DS1808 as lighting controller
|
||||
@ -57,8 +57,7 @@ public:
|
||||
~DS1808LC();
|
||||
|
||||
protected:
|
||||
bool isConfigured();
|
||||
const char* getModuleName() { return "ds1808lc"; }
|
||||
const char* getModuleName() { return "ds1808lc"; }
|
||||
bool isPowered();
|
||||
void setPowerOn();
|
||||
void setPowerOff();
|
||||
|
Reference in New Issue
Block a user