Namespaces | Functions
utils.cpp File Reference
#include <cstdlib>
#include <cstring>
#include <sys/time.h>
#include <time.h>
#include <errno.h>
#include <iomanip>
#include <ostream>
#include <sstream>
#include <cassert>
#include <limits>
#include <stdint.h>
#include "utils.h"
Include dependency graph for utils.cpp:

Go to the source code of this file.

Namespaces

namespace  Aseba

Functions

static uint16 Aseba::crc_xmodem_update (uint16 crc, uint8 data)
static uint16 Aseba::crc_xmodem_update (uint16 crc, const uint8 *data, size_t len)
uint16 Aseba::crcXModem (const uint16 oldCrc, const std::wstring &s)
 Update the XModem CRC (x^16 + x^12 + x^5 + 1 (0x1021)) with a wstring.
uint16 Aseba::crcXModem (const uint16 oldCrc, const uint16 v)
 Update the XModem CRC (x^16 + x^12 + x^5 + 1 (0x1021)) with a uint16 value.
void Aseba::dumpTime (std::ostream &stream, bool raw=false)
 Dump the current time to a stream.
std::wstring Aseba::UTF8ToWString (const std::string &s)
 Transform a UTF8 string into a wstring, this function is thread-safe.
std::string Aseba::WStringToUTF8 (const std::wstring &s)
 Transform a wstring into an UTF8 string, this function is thread-safe.


aseba
Author(s): Stéphane Magnenat
autogenerated on Thu Jan 2 2014 11:17:17