aboutsummaryrefslogtreecommitdiff
path: root/includes/types.h
blob: a8fa1cf7a73cbb5cf9c323f97e4b214f26222f9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef TYPES_H
#define TYPES_H

#define true 1
#define false 0

typedef int boolean;
typedef struct sensor_t Sensor_t;
typedef struct queue_t Queue_t;
typedef struct fifo_q Fifo_q;

struct sensor_t{
    int uid;
    int value;
};

struct queue_t{
    Sensor_t * sensor;
    Queue_t * next;
};

struct fifo_q{
    Queue_t * head;
    Queue_t * tail;
    int maxSize;
    int currentSize;
};

#endif