MIP_SDK  v3.0.0
MicroStrain Communications Library for embedded systems
Namespaces | Enumerations | Functions
microstrain::serialization Namespace Reference

Namespaces

 big_endian
 
 little_endian
 

Enumerations

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

Functions

template<Endian E, class T >
std::enable_if< std::is_arithmetic< T >::value, size_t >::type write (uint8_t *buffer, T value)
 
template<Endian E, class T >
size_t read (const uint8_t *buffer, T &value)
 
template<Endian E, class T >
read (const uint8_t *buffer)
 

Enumeration Type Documentation

◆ Endian

Enumerator
little 
big 

Function Documentation

◆ read() [1/2]

template<Endian E, class T >
T microstrain::serialization::read ( const uint8_t *  buffer)

◆ read() [2/2]

template<Endian E, class T >
size_t microstrain::serialization::read ( const uint8_t *  buffer,
T &  value 
)

◆ write()

template<Endian E, class T >
std::enable_if<std::is_arithmetic<T>::value, size_t>::type microstrain::serialization::write ( uint8_t *  buffer,
value 
)