#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 | 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) |
| enum displayline |
Definition at line 20 of file DisplayIpAddress.cpp.
| enum voltagesource |
Definition at line 25 of file DisplayIpAddress.cpp.
| int configure_port | ( | int | fd | ) |
Definition at line 49 of file DisplayIpAddress.cpp.
| void getIPAdress | ( | std::string | lanname, |
| std::string | wlanname, | ||
| std::string & | lanip, | ||
| std::string & | wlanip | ||
| ) |
Definition at line 136 of file DisplayIpAddress.cpp.
| double getVoltage | ( | int | fd, |
| voltagesource | source | ||
| ) |
Definition at line 114 of file DisplayIpAddress.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 167 of file DisplayIpAddress.cpp.
| int open_port | ( | std::string | port | ) |
Definition at line 30 of file DisplayIpAddress.cpp.
| bool setText | ( | int | fd, |
| displayline | line, | ||
| std::string | text | ||
| ) |
Definition at line 79 of file DisplayIpAddress.cpp.