Class float_Component
#include <dataComponents.h>
Inherits the following classes: Component
Public Attributes inherited from Component
See Component
| Type | Name |
|---|---|
| uint8_t | bitPosition |
| Packet * | packet |
| uint8_t | priority |
| uint8_t | size |
Public Functions
| Type | Name |
|---|---|
| virtual uint8_t | decode (uint8_t * packet) override |
| virtual void | encode (uint8_t * packet) override |
| float_Component (float * value, uint8_t size, const float min, const float max, const uint8_t priority=0) |
Public Functions inherited from Component
See Component
| Type | Name |
|---|---|
| Component (uint8_t size, const uint8_t priority=0) |
|
| virtual uint8_t | decode (uint8_t * packet) = 0 |
| virtual void | encode (uint8_t * packet) = 0 |
Protected Attributes
| Type | Name |
|---|---|
| float | max |
| float | min |
| float | resolution |
| float * | value |
Protected Functions inherited from Component
See Component
| Type | Name |
|---|---|
| void | bitReader (uint32_t * dataBits, uint8_t * packet) const |
| void | bitReset (uint8_t * packet) const |
| void | bitWriter (uint32_t dataBits, uint8_t * packet) const |
Public Functions Documentation
function decode
Implements Component::decode
function encode
Implements Component::encode
function float_Component
float_Component::float_Component (
float * value,
uint8_t size,
const float min,
const float max,
const uint8_t priority=0
)
Protected Attributes Documentation
variable max
variable min
variable resolution
variable value
The documentation for this class was generated from the following file libraries/DynamicPacketCodec/include/dataComponents.h