forked from linuxstb/dvb2dvb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdvbmod.h
44 lines (36 loc) · 975 Bytes
/
dvbmod.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
43
44
/**
*
* dvbmod.h - DVB modulator kernel API
*
* Copyright (C) 2013 Dave Chapman <[email protected]>
*
*/
#ifndef _DVBMOD_H_
#define _DVBMOD_H_
#include <linux/types.h>
#include <linux/dvb/frontend.h>
/**
* Modulator API structs
*/
struct dvb_modulator_parameters {
__u32 frequency_khz; /* frequency in KHz */
fe_transmit_mode_t transmission_mode;
fe_modulation_t constellation;
fe_guard_interval_t guard_interval;
fe_code_rate_t code_rate_HP;
__u16 bandwidth_hz; /* Bandwidth in Hz */
__u16 cell_id;
};
struct dvb_modulator_gain_range {
__u32 frequency_khz; /* frequency in KHz */
int min_gain;
int max_gain;
};
/**
* Modulator API commands
*/
#define DVBMOD_SET_PARAMETERS _IOW('k', 0x40, struct dvb_modulator_parameters)
#define DVBMOD_SET_RF_GAIN _IOWR('k', 0x41, int)
#define DVBMOD_GET_RF_GAIN _IOR('k', 0x42, int)
#define DVBMOD_GET_RF_GAIN_RANGE _IOWR('k', 0x43, struct dvb_modulator_gain_range)
#endif