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