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

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.

Here is the caller graph for this function:

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

Definition at line 126 of file DisplayIpAddress.cpp.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

int open_port ( std::string  port  ) 

Definition at line 31 of file DisplayIpAddress.cpp.

Here is the caller graph for this function:

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

Definition at line 78 of file DisplayIpAddress.cpp.

Here is the caller graph for this function:

Generated by  doxygen 1.6.3