MIP_SDK  latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
Namespaces | Enumerations | Functions
readwrite.hpp File Reference
#include "../platform.hpp"
#include <cstring>
#include <stdint.h>
#include <stddef.h>
#include <type_traits>

Go to the source code of this file.

Namespaces

 microstrain
 
 microstrain::serialization
 
 microstrain::serialization::big_endian
 
 microstrain::serialization::little_endian
 

Enumerations

enum  microstrain::serialization::Endian { microstrain::serialization::Endian::little, microstrain::serialization::Endian::big }
 

Functions

template<class T >
std::enable_if< std::is_arithmetic< T >::value &&sizeof(T)==1, size_t >::type microstrain::serialization::big_endian::write (uint8_t *buffer, T value)
 
template<class T >
std::enable_if< std::is_arithmetic< T >::value &&sizeof(T)==2, size_t >::type microstrain::serialization::big_endian::write (uint8_t *buffer, T value)
 
template<class T >
std::enable_if< std::is_arithmetic< T >::value &&sizeof(T)==4, size_t >::type microstrain::serialization::big_endian::write (uint8_t *buffer, T value)
 
template<class T >
std::enable_if< std::is_arithmetic< T >::value &&sizeof(T)==8, size_t >::type microstrain::serialization::big_endian::write (uint8_t *buffer, T value)
 
template<class T >
std::enable_if< std::is_arithmetic< T >::value, size_t >::type microstrain::serialization::little_endian::write (uint8_t *buffer, T value)
 
template<Endian E, class T >
std::enable_if< std::is_arithmetic< T >::value, size_t >::type microstrain::serialization::write (uint8_t *buffer, T value)
 
template<class T >
std::enable_if< std::is_arithmetic< T >::value &&sizeof(T)==1, size_t >::type microstrain::serialization::big_endian::read (const uint8_t *buffer, T &value)
 
template<class T >
std::enable_if< std::is_arithmetic< T >::value &&sizeof(T)==2, size_t >::type microstrain::serialization::big_endian::read (const uint8_t *buffer, T &value)
 
template<class T >
std::enable_if< std::is_arithmetic< T >::value &&sizeof(T)==4, size_t >::type microstrain::serialization::big_endian::read (const uint8_t *buffer, T &value)
 
template<class T >
std::enable_if< std::is_arithmetic< T >::value &&sizeof(T)==8, size_t >::type microstrain::serialization::big_endian::read (const uint8_t *buffer, T &value)
 
template<class T >
std::enable_if< std::is_arithmetic< T >::value, size_t >::type microstrain::serialization::little_endian::read (const uint8_t *buffer, T &value)
 
template<Endian E, class T >
size_t microstrain::serialization::read (const uint8_t *buffer, T &value)
 
template<Endian E, class T >
microstrain::serialization::read (const uint8_t *buffer)