#include <msg.h>
List of all members.
Public Member Functions |
virtual int | deserialize (unsigned char *data)=0 |
virtual const char * | getMD5 ()=0 |
virtual const char * | getType ()=0 |
virtual int | serialize (unsigned char *outbuffer) const =0 |
Static Public Member Functions |
static int | deserializeAvrFloat64 (const unsigned char *inbuffer, float *f) |
| This tricky function handles demoting a 64bit double to a 32bit float, so that AVR can understand messages containing float64 fields, despite AVR having no native support for double.
|
static int | serializeAvrFloat64 (unsigned char *outbuffer, const float f) |
| This tricky function handles promoting a 32bit float to a 64bit double, so that AVR can publish messages containing float64 fields, despite AVV having no native support for double.
|
Detailed Description
Definition at line 43 of file msg.h.
Member Function Documentation
This tricky function handles demoting a 64bit double to a 32bit float, so that AVR can understand messages containing float64 fields, despite AVR having no native support for double.
- Parameters:
-
[in] | inbuffer | pointer for buffer to deserialize from. |
[out] | f | pointer to place the deserialized value in. |
- Returns:
- number of bytes to advance the buffer pointer.
Definition at line 100 of file msg.h.
This tricky function handles promoting a 32bit float to a 64bit double, so that AVR can publish messages containing float64 fields, despite AVV having no native support for double.
- Parameters:
-
[out] | outbuffer | pointer for buffer to serialize to. |
[in] | f | value to serialize. |
- Returns:
- number of bytes to advance the buffer pointer.
Definition at line 62 of file msg.h.
The documentation for this class was generated from the following file: