MIP_SDK  latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
mip_serialization.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "mip_field.h"
4 
6 
7 
8 #ifdef __cplusplus
9 namespace mip {
10 namespace C {
11 extern "C" {
12 #endif
13 
15 
16 void mip_serializer_init_new_field(mip_serializer* serializer, mip_packet_view* packet, uint8_t field_descriptor);
17 void mip_serializer_finish_new_field(const mip_serializer* serializer, mip_packet_view* packet);
19 
20 #ifdef __cplusplus
21 } // extern "C"
22 } // namespace C
23 } // namespace mip
24 #endif
mip
A collection of C++ classes and functions covering the full mip api.
Definition: commands_3dm.c:11
mip::C::microstrain_serializer_init_from_field
void microstrain_serializer_init_from_field(mip_serializer *serializer, const mip_field_view *field)
Initialize a serialization struct from a microstrain field payload.
Definition: mip_serialization.c:70
mip::C::mip_packet_view
Structure representing a MIP Packet.
Definition: mip_packet.h:50
mip::C::mip_serializer_init_new_field
void mip_serializer_init_new_field(mip_serializer *serializer, mip_packet_view *packet, uint8_t field_descriptor)
Initialize a serialization struct for creation of a new field at the end of the packet.
Definition: mip_serialization.c:28
mip::C::mip_serializer_finish_new_field
void mip_serializer_finish_new_field(const mip_serializer *serializer, mip_packet_view *packet)
Call this after a new field allocated by mip_serializer_init_new_field has been written.
Definition: mip_serialization.c:51
microstrain::C::microstrain_serializer
Structure used for serialization.
Definition: serialization.h:42
mip::C::mip_field_view
A structure representing a MIP field.
Definition: mip_field.h:52
mip_field.h
serialization.h
mip::C::mip_serializer
microstrain_serializer mip_serializer
Definition: mip_serialization.h:14