summaryrefslogtreecommitdiff
path: root/drivers/input/sensor/dmard08_gsensor/cyclequeue.h
blob: 52b9996f79b40a88d27f369e2885f48bca575bea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef __CYCLEQUEUE_163704111637_H
#define __CYCLEQUEUE_163704111637_H

#define DATA_TYPE  short
#define QUEUE_LEN  16

struct que_data {
	DATA_TYPE data[3];
};

extern int clque_in(struct que_data* data);
extern int clque_out(struct que_data* data);
extern int clque_is_full(void);
extern int clque_is_empty(void);
#endif