This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define I2C_SLAVE_ADDRESS (0xA0 >> 1) | |
#define BUF_SIZE 16 | |
enum { | |
IDLE, | |
START, | |
STOP, | |
ADDR, | |
OP, | |
READDATA, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _THREAD_H_ | |
#define _THREAD_H_ | |
#include <pthread.h> | |
#include <string> | |
template<typename Tobject> | |
class CallProxy | |
{ | |
typedef void (Tobject::*Function)(); | |
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <iostream> | |
extern "C" { | |
#include <netlink/cli/utils.h> | |
#include <netlink/cli/neigh.h> | |
#include <netlink/cli/link.h> | |
} | |
std::string get_ip_from_mac(std::string mac) |