NetBurner 3.5.6
PDF Version
i2crecord.h
1/*NB_REVISION*/
2
3/*NB_COPYRIGHT*/
4
5#ifndef _I2C_RECORD_H_
6#define _I2C_RECORD_H_
7#pragma once
8
9#include <basictypes.h>
10
11/*
12******************************************************************************
13*
14* Class Definition (struct is class with all members public)
15*
16******************************************************************************
17*/
18struct I2CRecord
19{
20 /*
21 * Data
22 */
23 // File descriptor of listening socket
24 int FD_ListeningSocket;
25
26 // File descriptor of connected socket
27 int FD_ConnectedSocket;
28
29 // TRUE if we established the connection
30 bool bWeInitiatedConnection;
31
32 // Time of last network sourced data in seconds since last boot
33 uint32_t LastNetWorkDataRxed;
34
35 // Time of last transmitted data in seconds since last boot
36 uint32_t LastNetWorkDataTxed;
37
38 /*
39 * Methods
40 */
41 void ProcessI2CTimeouts(void);
42};
43
44#endif