aboutsummaryrefslogtreecommitdiff
path: root/write-stm-device/stm_user_api.h
blob: ba043d655536118f76afdaba19e910e39abeeb3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __STM_USER_API_H
#define __STM_USER_API_H

#define STM_DEVICE_NAME		"/dev/20100000.stm"
#define ETF_SYS_NAME		"20010000.etf"
#define ETR_SYS_NAME		"20070000.etr"
#define STM_SYS_NAME		"20100000.stm"

#define TEST_DATA_SIZE		4

struct stm_dev {
	int fd;
} g_stm_dev;

int request_stm_resource(struct stm_dev *dev, unsigned int chan,
			 unsigned int width);
void release_stm_resource(struct stm_dev *dev);
unsigned int stm_char_write(int fd, const char *data, unsigned int size);

#endif /* __STM_USER_API_H */