IQRF Gateway Daemon
|
#include <PrfPulseMeter.h>
Public Types | |
enum | Cmd { Cmd::READ_COUNTERS = 0, Cmd::STORE_COUNTER = 1, Cmd::DISABLE_AUTO_SLEEP = 2 } |
enum | FrcCmd { FrcCmd::ALIVE = 0, FrcCmd::ALIVE_STOP_AUTOSLEEP = 1, FrcCmd::ALIVE_START_AUTOSLEEP = 2 } |
enum | CntNum { CntNum::CNT_1 = 1, CntNum::CNT_2 = 2 } |
Public Member Functions | |
PrfPulseMeter () | |
virtual | ~PrfPulseMeter () |
void | commandReadCounters (const std::chrono::seconds &sec) |
void | commandStoreCounter (CntNum cntNum, uint32_t value) |
void | commandDisableAutosleep (bool enable) |
void | parseResponse (const DpaMessage &response) override |
void | parseCommand (const std::string &command) override |
const std::string & | encodeCommand () const override |
uint8_t | getThermometerType () const |
double | getTemperature () const |
uint8_t | getPowerVoltageType () const |
double | getPowerVoltage () const |
double | getIqrfSuplyVoltage () const |
int | getRssi () const |
int | getCntLen () const |
int | getCnts () const |
int | getCounter (CntNum cntNum) const |
uint8_t | getCntSum () const |
uint8_t | getDataSum () const |
bool | getStoreCounterResult () const |
bool | getDisableAutosleepResult () const |
Cmd | getCmd () const |
Static Public Attributes | |
static const std::string | PRF_NAME |
Copyright 2016-2017 MICRORISC s.r.o.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
strong |
|
strong |
|
strong |
PrfPulseMeter::PrfPulseMeter | ( | ) |
|
virtual |
void PrfPulseMeter::commandDisableAutosleep | ( | bool | enable | ) |
void PrfPulseMeter::commandReadCounters | ( | const std::chrono::seconds & | sec | ) |
void PrfPulseMeter::commandStoreCounter | ( | CntNum | cntNum, |
uint32_t | value | ||
) |
|
override |
PrfPulseMeter::Cmd PrfPulseMeter::getCmd | ( | ) | const |
|
inline |
|
inline |
|
inline |
int PrfPulseMeter::getCounter | ( | CntNum | cntNum | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
override |
|
override |
|
static |
Copyright 2016-2017 MICRORISC s.r.o.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.