forked from lecotex/vtuner.apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vtuner-dmm-3.h
42 lines (33 loc) · 1.23 KB
/
vtuner-dmm-3.h
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
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef _VTUNER_DMM_3_H_
#define _VTUNER_DMM_3_H_
#include "vtuner-network.h"
#define DEBUGHW(msg, ...) DEBUG(MSG_HW, msg, ## __VA_ARGS__)
#define DEBUGHWI(msg, ...) init_message("[%d %s:%u] debug: " msg, getpid(), __FILE__, __LINE__, ## __VA_ARGS__)
#define DEBUGHWC(msg, ...) append_message(msg, ## __VA_ARGS__)
#define DEBUGHWF(msg, ...) DEBUG(MSG_HW, msg, ## __VA_ARGS__)
typedef struct vtuner_hw {
vtuner_type_t type;
struct dvb_frontend_info fe_info;
int frontend_fd;
int demux_fd;
__u16 pids[30];
int streaming_fd;
int adapter;
int frontend;
int demux;
int num_props;
struct dtv_property props[DTV_IOCTL_MAX_MSGS];
} vtuner_hw_t;
int hw_init(vtuner_hw_t*, int, int, int, int);
void hw_free(vtuner_hw_t*);
int hw_get_frontend(vtuner_hw_t*, struct dvb_frontend_parameters*);
int hw_set_frontend(vtuner_hw_t*, struct dvb_frontend_parameters*);
int hw_get_property(vtuner_hw_t*, struct dtv_property*);
int hw_set_property(vtuner_hw_t*, struct dtv_property*);
int hw_read_status(vtuner_hw_t*, __u32*);
int hw_set_tone(vtuner_hw_t*, __u8);
int hw_set_voltage(vtuner_hw_t*, __u8);
int hw_send_diseq_msg(vtuner_hw_t*, diseqc_master_cmd_t*);
int hw_send_diseq_burst(vtuner_hw_t*, __u8);
int hw_pidlist(vtuner_hw_t*, __u16*);
#endif