mirror of
https://github.com/tbsdtv/media_build.git
synced 2025-07-23 04:13:02 +02:00
41 lines
1.6 KiB
C
41 lines
1.6 KiB
C
/* diseqc -- simple diseqc commands for the Linux DVB S2 API
|
|
*
|
|
* UDL (updatelee@gmail.com)
|
|
* Derived from work by:
|
|
* Igor M. Liplianin (liplianin@me.by)
|
|
* Alex Betis <alex.betis@gmail.com>
|
|
* Pendragon
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*/
|
|
|
|
#include <time.h>
|
|
#include <math.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <sys/ioctl.h>
|
|
#include <linux/dvb/frontend.h>
|
|
|
|
#include "kb.h"
|
|
|
|
extern void diseqc_send_msg (int frontend_fd, struct dvb_diseqc_master_cmd cmd);
|
|
extern void setup_switch (int frontend_fd, fe_sec_voltage_t voltage, fe_sec_tone_mode_t tone, int committed, int uncommitted, int servo);
|
|
extern void motor_usals(int frontend_fd, double site_lat, double site_long, double sat_long);
|
|
extern double radian( double number );
|
|
extern double degree( double number );
|
|
extern void motor_dir(int frontend_fd, int dir);
|
|
extern void motor_gotox(int frontend_fd, int pmem);
|
|
extern void motor_gotox_save(int frontend_fd, int pmem);
|