亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? gp2021.c

?? C寫的用軟件無線電實現的GPS模擬程序
?? C
字號:
/* ************************************************************************    *                                                                      *   *                          GPS Simulation                              *   *                                                                      *   * -------------------------------------------------------------------- *   *                                                                      *   *    Module:   gp2021.c                                                *   *                                                                      *   *   Version:   0.1                                                     *   *                                                                      *   *      Date:   17.02.02                                                *   *                                                                      *   *    Author:   G. Beyerle                                              *   *                                                                      *   * -------------------------------------------------------------------- *   *                                                                      *   * Copyright (c) 1996-2001 Clifford Kelley.  All Rights Reserved.       *   * Copyright (C) 2002-2006 Georg Beyerle                                *   *                                                                      *   * 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.            *   *                                                                      *   * -------------------------------------------------------------------- *   *                                                                      *   * The files 'gpsfuncs.cpp', 'gpsrcvr.cpp' and 'gp2021.cpp' are modi-   *   * fied versions of the files with the same name from Clifford Kelley's *    * OpenSourceGPS distribution. The unmodified files can be obtained     *   * from http://www.home.earthlink.net/~cwkelley                         *   *                                                                      *   * -------------------------------------------------------------------- *   *                                                                      *   *                             Correlator                               *   *                                                                      *   ************************************************************************ *//* ******************************* changes ********************************   dd.mm.yy -   ************************************************************************ *//***********************************************************************
  GPS RECEIVER (GPSRCVR) Ver. 1.02
  12 Channel All-in-View GPS Receiver Program based on Mitel GP2021
  chipset
  Clifford Kelley cwkelley@earthlink.net
  Copyright (c) 1996-2001 Clifford Kelley.  All Rights Reserved.
  This LICENSE must be included with the GPSRCVR code.
***********************************************************************/
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

      CONDITIONS

1. Redistributions of GPSRCVR source code must retain the above copyright
notice, this list of conditions, and the following disclaimer.

2. Redistributions in binary form must contain the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

3. All modifications to the source code must be clearly marked as
such.  Binary redistributions based on modified source code must be
clearly marked as modified versions in the documentation and/or other
materials provided with the distribution.

4. Notice must be given of the location of the availability of the
unmodified current source code, e.g.,
  http://www.Kelley.com/
or
  ftp://ftp.Kelley.com
in the documentation and/or other materials provided with the
distribution.

5. All advertising and published materials mentioning features or use
of this software must display the following acknowledgment:  "This
product includes software developed by Clifford Kelley and other
contributors."

6. The name of Clifford Kelley may not be used to endorse or promote
products derived from this software without specific prior written
permission.

      DISCLAIMER

This software is provided by Clifford Kelley and contributors "as is" and
any expressed or implied warranties, including, but not limited to, the
implied warranties of merchantability and fitness for a particular
purpose are disclaimed.  In no event shall Clifford Kelley or
contributors be liable for any direct, indirect, incidental, special,
exemplary, or consequential damages (including, but not limited to,
procurement of substitute goods or services; loss of use, data, or
profits; or business interruption) however caused and on any theory of
liability, whether in contract, strict liability, or tort (including
negligence or otherwise) arising in any way out of the use of this
software, even if advised of the possibility of such damage.
*/

#include  <stdio.h>
#include  <stdlib.h>
#ifdef __TURBOC__
# include  <conio.h>
# include  <Dos.h>
#endif
#include  <math.h>
#include  <string.h>
#ifndef linux
# include  <io.h>
#endif
#include  <time.h>

#include "ogsdefine.h"
#include "ogsstructs.h"
#include "ogsextern.h"
#include "ogsprototypes.h"


inline int accum_status( void)
{
  return( from_gps( ACCUM_STATUS_A));
}

void all_accum_reset( void)
{
  return;
}

void data_tst( int data)
{
  to_gps( DATABUSTEST, data);
}

unsigned int  ch_epoch(char ch)
{
  return( from_gps( (ch<<3)+EPOCH));
}

unsigned int  ch_epoch_chk(char ch)
{
  return( from_gps( (ch<<3)+EPOCH_CHECK));
}

long   ch_carrier_cycle(char ch)
{
  long result;

  result = from_gps( (ch<<3)+CARRIER_CYCLE_HIGH);
  result = result<<16;
  result = result + from_gps( (ch<<3)+CARRIER_CYCLE_LOW);

  return result;
}

int  ch_code_DCO_phase( char ch)
{
  return (from_gps( (ch<<3)+CODE_DCO_PHASE));
}

void ch_code_incr_hi(char ch,int data)
{
  to_gps( (ch<<3)+CODE_DCO_INCR_HIGH, data);
}

void ch_code_incr_lo(char ch,int data)
{
  to_gps( (ch<<3)+CODE_DCO_INCR_LOW, data);
}

int ch_code_phase(char ch)
{
 return (from_gps( (ch<<3)+CODE_PHASE));
}

int ch_carrier_DCO_phase(char ch)
{
  return (from_gps( (ch<<3)+CARRIER_DCO_PHASE));
}

void carr_incr_hi(char ch,int data)
{
  to_gps( (ch<<3)+CARRIER_DCO_INCR_HIGH, data);
}

void carr_incr_lo(char ch,int data)
{
  to_gps( (ch<<3)+CARRIER_DCO_INCR_LOW, data);
}

void ch_cntl( char ch, int data)
{
//  printf("ch=%d  port=%x\n",ch,port(ch<<3));
  to_gps( ch<<3+SATCNTL, data);
}


void all_cntl(int data)
{
  to_gps(ALLCONTROL,data);

}
void multi_cntl(int data)
{
  to_gps(MULTICONTROL,data);

}

int ch_i_track(char ch)
{
  return (from_gps((ch<<2)+I_TRACK));
}

int ch_q_track(char ch)
{
  return (from_gps((ch<<2)+Q_TRACK));
}

int ch_i_prompt(char ch)
{
  return (from_gps((ch<<2)+I_PROMPT));
}

int ch_q_prompt(char ch)
{
  return (from_gps((ch<<2)+Q_PROMPT));
}

void ch_accum_reset(char ch)
{
  to_gps ((ch<<2)+ACCUM_RESET,0);
}

void ch_code_slew(char ch, int data)
{
  to_gps( (ch<<2)+CODE_SLEW_COUNTER, data);
}

void all_code_slew(int data)
{
  to_gps( ALLCONTROL, data);
}

void data_retent_w(int data)
{
  to_gps( DATA_RETENT, data);
}

int data_retent_r(void)
{
  return (from_gps( DATA_RETENT));
}

void data_bus_test_w(int data)
{
  to_gps( DATABUSTEST, data);
}

int data_bus_test_r(void)
{
  return (from_gps( DATABUSTEST));
}


inline int meas_status(void)
{
  return (from_gps( MEAS_STATUS_A));
}

void program_TIC(long data)
{
  unsigned int high,low;

  high = (int)(data>>16);
  low  = (int)(data & 0xffff);

  to_gps( PROC_TIC_HIGH, high);
  to_gps( PROC_TIC_LOW, low);
}

void reset_cntl(int data)
{
  to_gps(RESET_CONTROL,data);
//  fprintf(out,"reset data=%x\n",data);
}

#if 0
void ch_carrier( char ch, long freq)
{
  int freq_hi, freq_lo;
  unsigned int add;

  freq_hi = (int)( freq >> 16);
  freq_lo = (int)( freq & 0xffff);

  add = (ch<<3) + CARRIER_DCO_INCR_HIGH;
  outpw( IO_ADDRESS, add);
  outpw( IO_DATA, freq_hi);
//  carr_incr_hi(ch,freq_hi);
  add++;
  outpw( IO_ADDRESS, add);
  outpw( IO_DATA, freq_lo);
//  carr_incr_lo(ch,freq_lo);
}

void ch_code( char ch, long freq)
{
  int freq_hi, freq_lo;
  unsigned int add;

  freq_hi = (int)( freq >> 16);
  freq_lo = (int)( freq & 0xffff);

  add = (ch<<3)+CODE_DCO_INCR_HIGH;

  outpw( IO_ADDRESS, add);
  outpw( IO_DATA, freq_hi);
//  ch_code_incr_hi(ch,freq_hi);

  add++;

  outpw( IO_ADDRESS, add);
  outpw( IO_DATA, freq_lo);
//  ch_code_incr_lo(ch,freq_lo);
}
#endif

void ch_epoch_load( char ch, unsigned int data)
{
  to_gps( (ch<<3)+EPOCH_COUNT_LOAD, data);
}

void ch_on( char ch)
{
  ch_status = ch_status | bit_pat[ch];
  reset_cntl( ch_status);
}

void ch_off( char ch)
{
  ch_status = ch_status & !bit_pat[ch];
  reset_cntl( ch_status);
}

void system_setup( int data)
{
  to_gps( SYSTEM_SETUP, data);
}

void test_control( int data)
{
  to_gps( TEST_CONTROL, data);
}

void status_latch(void)
{
  to_gps( STATUS, 0);
}

void io_config(int data)
{
  to_gps( IO_CONFIG, data);
}

void self_test( void)
{
  unsigned int indataaax, indata55x, indataaay, indata55y,error;

  error=0;

  data_retent_w( 0x5500);
  data_bus_test_w( 0xaa55);
  indata55x = data_retent_r();
  indataaax = data_bus_test_r();
  data_retent_w( 0xaa00);
  data_bus_test_w( 0x55aa);
  indataaay = data_retent_r();
  indata55y = data_bus_test_r();
  if ((indata55x != 0x5500) || (indataaax != 0xaa55) || 
      (indataaay != 0xaa00) || (indata55y != 0x55aa))
  {
   error = 1;
   printf( "data line error\n");
   printf( "indata55x=%x , indataaax=%x\n", indata55x, indataaax);
   printf( "indataaay=%x , indata55y=%x\n", indataaay, indata55y);
  }
  if ( error==1) 
    exit( 0);
}

/* ========================= End of File ========================= */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区啪啪| 一区二区免费在线播放| 国产一区二区三区黄视频| 日韩精品中午字幕| www.日本不卡| 美脚の诱脚舐め脚责91| 国产精品第五页| 欧美亚洲动漫精品| 粉嫩一区二区三区在线看| 亚洲成人午夜电影| 亚洲欧美另类在线| 久久久无码精品亚洲日韩按摩| 91蜜桃婷婷狠狠久久综合9色| 石原莉奈在线亚洲三区| 国产精品福利一区二区三区| 精品福利一区二区三区| 欧美在线短视频| 91在线视频免费观看| 国产精品一区二区男女羞羞无遮挡| 中文字幕一区二区三区av| 精品国产亚洲在线| 欧美草草影院在线视频| 制服丝袜中文字幕一区| 欧美性三三影院| 91美女片黄在线观看| 91丨九色丨国产丨porny| 丁香啪啪综合成人亚洲小说| 国产在线观看一区二区| 国产xxx精品视频大全| 粉嫩一区二区三区在线看| 国产福利精品一区二区| 国产成人自拍在线| av高清久久久| 99re这里都是精品| 欧美在线观看一区二区| 欧美一级久久久久久久大片| 日韩欧美国产综合在线一区二区三区| 欧美男同性恋视频网站| 精品电影一区二区三区| 9191久久久久久久久久久| 欧美tickle裸体挠脚心vk| 国产日韩亚洲欧美综合| 亚洲欧洲国产日韩| 亚洲大片一区二区三区| 国产在线精品一区二区三区不卡 | 欧美伦理视频网站| 久久精品综合网| 亚洲一区二区高清| 国产精品12区| 91精品在线免费观看| 国产日韩欧美一区二区三区综合| 欧美国产日本韩| 手机精品视频在线观看| 国产尤物一区二区| 69p69国产精品| 亚洲一区在线播放| 91丨porny丨在线| 久久久无码精品亚洲日韩按摩| 五月天欧美精品| 色视频欧美一区二区三区| 久久久影视传媒| 国产一区不卡视频| 日韩欧美一区二区三区在线| 亚洲国产精品自拍| 色av综合在线| 一区二区激情小说| 91视视频在线观看入口直接观看www| 国产日韩一级二级三级| 丁香天五香天堂综合| 欧美激情综合网| 99视频精品全部免费在线| 国产精品不卡一区| 91蜜桃婷婷狠狠久久综合9色| 亚洲少妇30p| 欧美在线观看视频一区二区三区| 自拍偷拍国产精品| 欧美久久久影院| 经典一区二区三区| 亚洲欧洲成人自拍| 欧美嫩在线观看| 久久av中文字幕片| 国产香蕉久久精品综合网| 成人精品国产一区二区4080| 国产精品久久一卡二卡| 欧美日韩国产在线观看| 久久9热精品视频| 国产精品久久久久天堂| 欧美性大战久久久| 国产美女精品在线| 夜夜嗨av一区二区三区| 日韩一区二区精品在线观看| 国产精品亚洲第一| 亚洲成人免费观看| ●精品国产综合乱码久久久久| 欧美日韩精品一二三区| 波多野结衣中文字幕一区| 精品一区二区免费在线观看| 亚洲一区二区欧美日韩 | 国产日本欧美一区二区| 91精品欧美福利在线观看| 日本福利一区二区| 99久久亚洲一区二区三区青草| 蜜臀99久久精品久久久久久软件| 亚洲精品国产精华液| 久久久久久久一区| 欧美α欧美αv大片| 日韩一区二区三区精品视频| 在线看一区二区| 欧美日韩亚洲综合一区| 在线免费观看日本欧美| 99精品偷自拍| 欧美日韩精品免费观看视频| 精品嫩草影院久久| 中文无字幕一区二区三区 | www.亚洲人| 欧美性色aⅴ视频一区日韩精品| 色94色欧美sute亚洲线路一久| www.av精品| 在线视频你懂得一区| 久久色.com| 亚洲女子a中天字幕| 五月天亚洲婷婷| 国产精品1区2区3区在线观看| 成人免费看的视频| 欧美福利视频一区| 精品国产一区二区三区忘忧草 | 久久久三级国产网站| 一区二区视频免费在线观看| 亚洲电影在线播放| 国产成人在线视频网址| 色狠狠综合天天综合综合| 精品三级在线看| 日本午夜一本久久久综合| 国产成人aaaa| 久久久久久电影| 亚洲一区av在线| 成人免费福利片| 久久综合九色综合欧美98| 亚洲成av人片观看| 97久久超碰精品国产| 精品国产亚洲一区二区三区在线观看| 中文字幕欧美三区| 国产在线日韩欧美| 日韩精品一区二区在线| 亚欧色一区w666天堂| 91丨porny丨蝌蚪视频| 国产精品免费看片| 不卡视频一二三| 国产精品乱码一区二区三区软件| 蓝色福利精品导航| 精品国内二区三区| 久久99精品视频| 日韩免费视频线观看| 久久精品72免费观看| 4438x成人网最大色成网站| 亚洲伊人伊色伊影伊综合网| 色八戒一区二区三区| 一级精品视频在线观看宜春院| 99久久国产综合精品女不卡| 亚洲欧洲制服丝袜| 欧美日韩国产区一| 日韩av网站免费在线| 久久免费美女视频| 本田岬高潮一区二区三区| 亚洲日本在线视频观看| 精品视频一区二区三区免费| 无码av免费一区二区三区试看| 555www色欧美视频| 成人精品一区二区三区四区| 亚洲精品国产视频| 精品国产一区二区三区久久久蜜月| 福利一区二区在线| 婷婷国产在线综合| 国产精品毛片大码女人| 91精品欧美久久久久久动漫| 国产高清亚洲一区| 视频一区欧美精品| 一区二区三区在线免费视频 | 欧美日韩成人高清| 成人av在线一区二区三区| 午夜伦理一区二区| 国产精品久久久久久久蜜臀| 337p亚洲精品色噜噜狠狠| 一本色道亚洲精品aⅴ| 成人不卡免费av| 成人黄色小视频| 国产aⅴ精品一区二区三区色成熟| 麻豆精品一区二区| 亚洲一级二级三级| 亚洲视频一二三区| 中文字幕日韩一区| 欧美国产视频在线| 国产日韩欧美在线一区| 久久这里只有精品视频网| 9191精品国产综合久久久久久| 7777精品久久久大香线蕉| 欧美久久免费观看| 精品国产成人在线影院| 精品国产1区2区3区| 国产偷国产偷亚洲高清人白洁|