#include <msp_msg.hpp>

Public Member Functions | |
| BatteryState (FirmwareVariant v) | |
| virtual bool | decode (const ByteVector &data) override |
| Decode message contents from a ByteVector. | |
| virtual ID | id () const override |
| get the ID of the message | |
Public Attributes | |
| Value< uint16_t > | capacity_mAh |
| Value< uint8_t > | cell_count |
| Value< uint16_t > | current |
| Value< uint16_t > | mAh_drawn |
| Value< uint8_t > | state |
| Value< uint8_t > | voltage |
Definition at line 3821 of file msp_msg.hpp.
| msp::msg::BatteryState::BatteryState | ( | FirmwareVariant | v | ) | [inline] |
Definition at line 3822 of file msp_msg.hpp.
| virtual bool msp::msg::BatteryState::decode | ( | const ByteVector & | ) | [inline, override, virtual] |
Decode message contents from a ByteVector.
| data | Source of data |
Reimplemented from msp::Message.
Definition at line 3833 of file msp_msg.hpp.
| virtual ID msp::msg::BatteryState::id | ( | ) | const [inline, override, virtual] |
get the ID of the message
Implements msp::Message.
Definition at line 3824 of file msp_msg.hpp.
| Value<uint16_t> msp::msg::BatteryState::capacity_mAh |
Definition at line 3827 of file msp_msg.hpp.
| Value<uint8_t> msp::msg::BatteryState::cell_count |
Definition at line 3826 of file msp_msg.hpp.
| Value<uint16_t> msp::msg::BatteryState::current |
Definition at line 3830 of file msp_msg.hpp.
| Value<uint16_t> msp::msg::BatteryState::mAh_drawn |
Definition at line 3829 of file msp_msg.hpp.
| Value<uint8_t> msp::msg::BatteryState::state |
Definition at line 3831 of file msp_msg.hpp.
| Value<uint8_t> msp::msg::BatteryState::voltage |
Definition at line 3828 of file msp_msg.hpp.