Enumerations | Functions
DisplayIpAddress.cpp File Reference
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <termios.h>
#include <time.h>
#include <iostream>
#include <string>
#include <sys/types.h>
#include <ifaddrs.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <cstdlib>
Include dependency graph for DisplayIpAddress.cpp:

Go to the source code of this file.

Enumerations

enum  displayline { line2 = 0x02, line3 = 0x03 }
 
enum  voltagesource { battery1 = 0x04, battery2 = 0x05, powersupply = 0x0c }
 

Functions

int configure_port (int fd)
 
void getIPAdress (std::string lanname, std::string wlanname, std::string &lanip, std::string &wlanip)
 
double getVoltage (int fd, voltagesource source)
 
int main (int argc, char *argv[])
 
int open_port (std::string port)
 
bool setText (int fd, displayline line, std::string text)
 

Enumeration Type Documentation

Enumerator
line2 
line3 

Definition at line 20 of file DisplayIpAddress.cpp.

Enumerator
battery1 
battery2 
powersupply 

Definition at line 25 of file DisplayIpAddress.cpp.

Function Documentation

int configure_port ( int  fd)

Definition at line 47 of file DisplayIpAddress.cpp.

void getIPAdress ( std::string  lanname,
std::string  wlanname,
std::string &  lanip,
std::string &  wlanip 
)

Definition at line 126 of file DisplayIpAddress.cpp.

double getVoltage ( int  fd,
voltagesource  source 
)

Definition at line 107 of file DisplayIpAddress.cpp.

int main ( int  argc,
char *  argv[] 
)

Definition at line 153 of file DisplayIpAddress.cpp.

int open_port ( std::string  port)

Definition at line 31 of file DisplayIpAddress.cpp.

bool setText ( int  fd,
displayline  line,
std::string  text 
)

Definition at line 78 of file DisplayIpAddress.cpp.



youbot_driver
Author(s): Jan Paulus
autogenerated on Mon Jun 10 2019 15:46:26