Defines | Functions
utils.cpp File Reference
#include "epos_hardware/utils.h"
#include <boost/foreach.hpp>
#include <sstream>
Include dependency graph for utils.cpp:

Go to the source code of this file.

Defines

#define MAX_STRING_SIZE   1000

Functions

int GetBaudrateList (const std::string device_name, const std::string protocol_stack_name, const std::string interface_name, const std::string port_name, std::vector< unsigned int > *baudrates, unsigned int *error_code)
int GetDeviceNameList (std::vector< std::string > *device_names, unsigned int *error_code)
int GetErrorInfo (unsigned int error_code, std::string *error_string)
int GetInterfaceNameList (const std::string device_name, const std::string protocol_stack_name, std::vector< std::string > *interface_names, unsigned int *error_code)
int GetPortNameList (const std::string device_name, const std::string protocol_stack_name, const std::string interface_name, std::vector< std::string > *port_names, unsigned int *error_code)
int GetProtocolStackNameList (const std::string device_name, std::vector< std::string > *protocol_stack_names, unsigned int *error_code)
bool SerialNumberFromHex (const std::string &str, uint64_t *serial_number)

Define Documentation

#define MAX_STRING_SIZE   1000

Definition at line 5 of file utils.cpp.


Function Documentation

int GetBaudrateList ( const std::string  device_name,
const std::string  protocol_stack_name,
const std::string  interface_name,
const std::string  port_name,
std::vector< unsigned int > *  baudrates,
unsigned int *  error_code 
)

Definition at line 105 of file utils.cpp.

int GetDeviceNameList ( std::vector< std::string > *  device_names,
unsigned int *  error_code 
)

Definition at line 24 of file utils.cpp.

int GetErrorInfo ( unsigned int  error_code,
std::string *  error_string 
)

Definition at line 14 of file utils.cpp.

int GetInterfaceNameList ( const std::string  device_name,
const std::string  protocol_stack_name,
std::vector< std::string > *  interface_names,
unsigned int *  error_code 
)

Definition at line 65 of file utils.cpp.

int GetPortNameList ( const std::string  device_name,
const std::string  protocol_stack_name,
const std::string  interface_name,
std::vector< std::string > *  port_names,
unsigned int *  error_code 
)

Definition at line 85 of file utils.cpp.

int GetProtocolStackNameList ( const std::string  device_name,
std::vector< std::string > *  protocol_stack_names,
unsigned int *  error_code 
)

Definition at line 44 of file utils.cpp.

bool SerialNumberFromHex ( const std::string &  str,
uint64_t *  serial_number 
)

Definition at line 7 of file utils.cpp.



epos_hardware
Author(s): Mitchell Wills
autogenerated on Thu Jun 6 2019 20:43:10