Subversion Repositories f9daq

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
336 f9daq 1
/*
2
 * server.h
3
 *
4
 *  Created on: 18. dec. 2018
5
 *      Author: Domen
6
 */
7
 
8
#ifndef SRC_SERVER_H_
9
#define SRC_SERVER_H_
10
 
11
 
12
#include <stdio.h>
13
#include <stdlib.h>
14
#include <stdint.h>
15
#include <string.h>
16
#include <unistd.h>
17
#include <fcntl.h>
18
#include <math.h>
19
//#include <sys/mman.h> // X
20
#include <sys/socket.h> // za uporabo funkcij za TCP/IP povezavo
21
#include <netinet/in.h> //neke type definira
22
#include <arpa/inet.h> //definira type za net, funkcija htonl spada sem
23
#include "data_handling.h"
24
 
25
 
26
#define START_MASK                      0x00000001
27
#define RESET_MASK                      0x00000002
28
#define HW_CONFIG_MASK          0x00000004
29
#define SEND_DATA_MASK          0x00000008
30
#define DISCONNECT_MASK         0x00000010
31
#define THRESHOLD_MASK          0x0007FF00
32
#define ACQ_WINDOW_MASK         0x07F80000
33
#define SW_TRIGGER_MASK     0xF8000000
34
 
35
 
36
 
37
/*------------------PUBLIC FUNCTIONS PROTOTYPES--------------------------*/
38
void Server_comm(int *server_info, HW_system *strct, int status);
39
int Server_init(int* server_info);
40
 
41
 
42
 
43
 
44
 
45
 
46
 
47
 
48
#endif /* SRC_SERVER_H_ */