MIP SDK  0.0.1
MicroStrain Communications Library for embedded systems
Classes | Namespaces | Typedefs | Functions
mip_packet.h File Reference
#include "mip_types.h"
Include dependency graph for mip_packet.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mip::C::mip_packet
 Structure representing a MIP Packet. More...
 

Namespaces

 mip
 A collection of C++ classes and functions covering the full mip api.
 
 mip::C
 

Typedefs

typedef uint_least16_t mip::C::packet_length
 Type used for the length of a MIP packet. More...
 
typedef struct mip::C::mip_packet mip::C::mip_packet
 Structure representing a MIP Packet. More...
 

Functions

void mip::C::mip_packet_create (mip_packet *packet, uint8_t *buffer, size_t buffer_size, uint8_t descriptor_set)
 
bool mip::C::mip_packet_add_field (mip_packet *packet, uint8_t field_descriptor, const uint8_t *payload, uint8_t payload_length)
 
remaining_count mip::C::mip_packet_alloc_field (mip_packet *packet, uint8_t field_descriptor, uint8_t payload_length, uint8_t **payload_ptr_out)
 
remaining_count mip::C::mip_packet_realloc_last_field (mip_packet *packet, uint8_t *payload_ptr, uint8_t new_payload_length)
 
remaining_count mip::C::mip_packet_cancel_last_field (mip_packet *packet, uint8_t *payload_ptr)
 
void mip::C::mip_packet_finalize (mip_packet *packet)
 
void mip::C::mip_packet_reset (mip_packet *packet, uint8_t descriptor_set)
 
void mip::C::mip_packet_from_buffer (mip_packet *packet, uint8_t *buffer, size_t length)
 
uint8_t mip::C::mip_packet_descriptor_set (const mip_packet *packet)
 
packet_length mip::C::mip_packet_total_length (const mip_packet *packet)
 
uint8_t mip::C::mip_packet_payload_length (const mip_packet *packet)
 
uint8_t * mip::C::mip_packet_buffer (mip_packet *packet)
 
const uint8_t * mip::C::mip_packet_pointer (const mip_packet *packet)
 
const uint8_t * mip::C::mip_packet_payload (const mip_packet *packet)
 
uint16_t mip::C::mip_packet_checksum_value (const mip_packet *packet)
 
uint16_t mip::C::mip_packet_compute_checksum (const mip_packet *packet)
 
bool mip::C::mip_packet_is_sane (const mip_packet *packet)
 
bool mip::C::mip_packet_is_valid (const mip_packet *packet)
 
bool mip::C::mip_packet_is_empty (const mip_packet *packet)
 
packet_length mip::C::mip_packet_buffer_size (const mip_packet *packet)
 
remaining_count mip::C::mip_packet_remaining_space (const mip_packet *packet)
 
bool mip::C::mip_packet_is_data (const mip_packet *packet)