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

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

?? falc.c

?? Infineon公司有一款實現SHDSL協議(ADSL協議的變種)的芯片
?? C
?? 第 1 頁 / 共 3 頁
字號:
/*******************************************************************************
       Copyright (c) 2000, Infineon Technologies.  All rights reserved.
  
                               No Warranty                                                 
   Because the program is licensed free of charge, there is no warranty for 
   the program, to the extent permitted by applicable law.  Except when     
   otherwise stated in writing the copyright holders and/or other parties   
   provide the program "as is" without warranty of any kind, either         
   expressed or implied, including, but not limited to, the implied         
   warranties of merchantability and fitness for a particular purpose. The  
   entire risk as to the quality and performance of the program is with     
   you.  should the program prove defective, you assume the cost of all     
   necessary servicing, repair or correction.                               
                                                                            
   In no event unless required by applicable law or agreed to in writing    
   will any copyright holder, or any other party who may modify and/or      
   redistribute the program as permitted above, be liable to you for        
   damages, including any general, special, incidental or consequential     
   damages arising out of the use or inability to use the program           
   (including but not limited to loss of data or data being rendered        
   inaccurate or losses sustained by you or third parties or a failure of   
   the program to operate with any other programs), even if such holder or  
   other party has been advised of the possibility of such damages. 
 *******************************************************************************       
   
   Module:        FALC
   Product ID:    22622.1.0.1
   Version ID:    0.11.0.2
   Description:   Contains FALC access. 

 ******************************************************************************/
 
//  Group= FALC 

/* ============================= */
/* Includes                      */
/* ============================= */

#include <stdio.h>
#include <absacc.h>

#include "sysdef.h"            
#include "dds.h"          
#include "sysvar.h"
#include "sysfunc.h"

#include "modid.h"

/* ============================= */
/* Local Macros & Definitions    */
/* ============================= */

/* ============================= */
/* Local variable definition     */
/* ============================= */

/* ============================= */
/* Local function declaration    */
/* ============================= */

/* ============================= */
/* Global function definition    */
/* ============================= */

/*******************************************************************************
Description: 
   Inititialization function of the FALC module.
Arguments:
   NONE.
Return:
   NONE.
Remarks:
   This function initializes the FALC according to the 
   board configuration settings.
 ******************************************************************************/
void Falc_Init (void)
{
                                    /* Adaption for oscillator 12,36MHz
                                       according data sheet.               */
     Out(FALC_GCM1, 0xF0);
     Out(FALC_GCM2, 0x51);
     Out(FALC_GCM3, 0x00);
     Out(FALC_GCM4, 0x80);
     Out(FALC_GCM5, 0x07);
     Out(FALC_GCM6, 0x15);

                                       /* Do interface dependent settings.    */
    switch(G_Eeprom[CONFIG_INTF])
   {
    case INTF_E1_PCM_SYN:
    case INTF_E1_PCM_PLE_TEST:
                                       /* SIC1: Set data clock and data rate
                                          (second part in FALC_FMR1).
                                          PC6: Select frequency at CLK1      */
        if (G_Eeprom[CONFIG_P_CLK] == P_CLK_4MHZ)
        {
            Out(FALC_SIC1, 0x08);
            Out(FALC_PC6,  0x02);
        }
        else
        {
            Out(FALC_SIC1, 0x00);
            Out(FALC_PC6,  0x01);
        }
                                       /* Set characteristic of data path A.  */
        if (G_Eeprom[CONFIG_MODE] == MODE_COT_EXT)
        {
                                       /* RFM output, /SYPX input             */
            Out(FALC_PC1,  0x10);
                                       /* /SCLKR output                       */
            Out(FALC_PC5,  0x33);
                                       /* internal clock system sourced by 
                                          DCO-R                               */
            Out(FALC_CMR2, 0x0F);
        }
        else
        {
                                       /* /SYPR input, /SYPX input            */
            Out(FALC_PC1,  0x00);
                                       /* /SCLKR output                       */
            Out(FALC_PC5,  0x31);

                                       /* internal clock system sourced by 
                                          /SYPR                               */
            Out(FALC_CMR2, 0x00);
                                       /* RCLK recovered from DCO-R           */
            Out(FALC_CMR1, 0x20);
        }

        Out(FALC_GPC1,   0x60);
        Out(FALC_CMDR2,  0x00);



                                       /* Interrupt port configuration:  
                                          push/pull output, active low.
                                          SYNC freq = 8 kHz                   */
        Out(FALC_IPC,    0x05);
                                        /* Transmit pulse mask 0-2:       
                                           pulse shape programming for   
                                           R1=1.80 Ohm, additional       
                                           protection resistor=5.60 Ohm, 
                                           3V pulse level at the line.         */
        Out(FALC_XPM0,   0xB5);
        Out(FALC_XPM1,   0x02);
        Out(FALC_XPM2,   0x00);
                                        /* Transmit service word pulse:   
                                           spare and Y bits fixed to 1.        */
        Out(FALC_XSW ,   0x9F);
                                        /* Frame mode register 0:         
                                           transmit and receive code     
                                           is HDB3 Code.                       */
        Out(FALC_FMR0,   0xF0);
                                       /* Frame mode register 1:         
                                          trans. CRC4 multiframe format,
                                          latch error counter every sec 
                                          System interface mode         
                                          is 2Mbit/s.                         */
        if (G_Eeprom[CONFIG_P_CLK] == P_CLK_2MHZ) 
        {
            Out(FALC_FMR1,  0x4C);
            Out(FALC_SIC3,  0x04);
        }
                                       /* System interface mode         
                                          is 4Mbit/s.                         */
        if (G_Eeprom[CONFIG_P_CLK] == P_CLK_4MHZ)
        {
            Out(FALC_FMR1,  0x4E);
            Out(FALC_SIC3,  0x00);
        }
                                       /* Frame mode register 2:         
                                          recei. NO!! CRC4 multiframe format,
                                          automatic remote alarm,       
                                          automatic loss of multiframe.       */
        Out(FALC_FMR2,  0x83);
        if (G_Eeprom[CONFIG_MODE] == MODE_COT_EXT)
        {
                                       /* Interrupt port configuration:  
                                          push/pull output, active low.
                                          SYNC freq = 8 kHz                   */
            Out(FALC_IPC,   0x01);
                                       /* Line interface mode 0:         
                                          master mode/slave mode              */
            Out(FALC_LIM0,  0x00);
        }
        else
        {
                                       /* Interrupt port configuration:  
                                          push/pull output, active low.
                                          SYNC freq = 2 MHz                   */
            Out(FALC_IPC,   0x05);
                                       /* Line interface mode 0:         
                                          master mode/slave mode              */
            Out(FALC_LIM0,  0x01);
        }
                                       /* Line interface mode 1:         
                                          receive input threshold 0.62V.       */
        Out(FALC_LIM1,  0x30);
                                       /* Pulse count detection:         
                                          LOS detection after 176       
                                          consecutive 0s.                     */
        Out(FALC_PCD ,  0x0A);
                                       /* Pulse count recovery:          
                                          LOS recovery after 22         
                                          consecutive 1s.                     */
        Out(FALC_PCR ,  0x15);
                                       /* Transmit spare bits:           
                                          E bit is 1 in async state,    
                                          automatic trans of E bits,    
                                          spare bit fixed to 1.               */
        Out(FALC_XSP ,  0x1C);
                                       /* Transmit control 0+1:          
                                          timeslot 0 is starting with   
                                          SYPQ in transmit direction.   
                                          !!! Adapt to board !!!              */
        if (G_Eeprom[CONFIG_MODE] == MODE_COT_EXT)
        {
                                       
            if (G_Eeprom[CONFIG_P_CLK] == P_CLK_2MHZ)
            {
                                       /* Transmit counter offset       
                                          is 6 (PCM clock 2 MHz).             */  
                Out(FALC_XC0 ,  0x07);
                Out(FALC_XC1 ,  0x04);
            }
            if (G_Eeprom[CONFIG_P_CLK] == P_CLK_4MHZ)
            {
                                       /* Transmit counter offset       
                                          is 3 (PCM clock 4 MHz).             */  
                Out(FALC_XC0 ,  0x02);
                Out(FALC_XC1 ,  0x04);
            }
        }   
        else
        {
            if (G_Eeprom[CONFIG_P_CLK] == P_CLK_2MHZ)
            {
                                       /* Transmit counter offset       
                                          is 6 (PCM clock 2 MHz).             */  
                Out(FALC_XC0 ,  0x07);
                Out(FALC_XC1 ,  0x03);
            }
            if (G_Eeprom[CONFIG_P_CLK] == P_CLK_4MHZ)
            {
                                       /* Transmit counter offset       
                                          is 3 (PCM clock 4 MHz).             */  
                Out(FALC_XC0 ,  0x02);
                Out(FALC_XC1 ,  0x03);
            }
        }
                                       /* Receive control 0+1:           
                                          timeslot 0 is starting with   
                                          SYPQ in receive direction.    
                                          !!! Adapt to board !!!              */
        Out(FALC_RC0, 0x84);
        if (G_Eeprom[CONFIG_MODE] == MODE_COT_EXT)
        {
            if (G_Eeprom[CONFIG_P_CLK] == P_CLK_4MHZ)
            {
                Out(FALC_RC1, 0x05);
            }
            else
            {
                Out(FALC_RC1, 0x04);
            }
        }
        else
        {
            if (G_Eeprom[CONFIG_P_CLK] == P_CLK_4MHZ)
            {
                Out(FALC_RC1, 0x04);
            }
            else
            {
                Out(FALC_RC1, 0x04);
            }
        }
                                       /* Interrupt mask register 2-4:   
                                          enable all IMR2 interrupts,   
                                          enable ES and SEC interrupts, 
                                          enable all IMR4 interrupts.         */
        Out(FALC_IMR2, 0x00);
        Out(FALC_IMR3, In(FALC_IMR3) & ~0xC0);
        Out(FALC_IMR4, 0x00);
                                       /* Command register:              
                                          receiver, transmitter and     
                                          signalling transmitter reset.       */
        Out(FALC_CMDR,  0x51);
      break;

    

    case INTF_T1_PCM_SYN:
        if (G_Eeprom[CONFIG_P_CLK] == P_CLK_4MHZ)
        {
                                       /* SIC1: Set data clock and data rate
                                          (second part in FALC_FMR1).
                                          PC6: Select frequency at CLK1       */
            Out(FALC_SIC1, 0x0A);
            Out(FALC_PC6,  0x02);
                                       /* System interface mode         
                                          is 4Mbit/s.                         */
            Out(FALC_FMR1,  0x9A);
        }
        if (G_Eeprom[CONFIG_P_CLK] == P_CLK_2MHZ)
        {
                                       /* SIC1: Transmit Buffer Size: 
                                          2 frames                            */
            Out(FALC_SIC1, 0x02);
            Out(FALC_PC6,  0x01);       
                                       /* Frame mode register 1:         
                                          PCM 24 mode,
                                          CRC6 enabled, 
                                          System interface mode         
                                          is 2Mbit/s.                         */        
            Out(FALC_FMR1,  0x98);
            Out(FALC_SIC3,  0x04);
        }
                                       /* Frame mode register 0:         
                                          transmit and receive code     
                                          is B8ZS Code.                       */
        Out(FALC_FMR0,  0xF0);                                       
                                       /* Frame mode register 2:         

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
激情成人综合网| 中文字幕精品—区二区四季| 99久久精品国产一区二区三区| 激情久久五月天| 国产福利91精品一区| 久久精品国内一区二区三区| 久久99国产精品尤物| 紧缚奴在线一区二区三区| 寂寞少妇一区二区三区| 国产麻豆精品视频| 国产成人亚洲综合a∨猫咪| 成人国产在线观看| 91精品福利在线| 欧美日韩国产美女| 日韩三级电影网址| 久久天堂av综合合色蜜桃网| 亚洲国产高清aⅴ视频| 亚洲制服丝袜av| 免费成人在线网站| 国产伦精一区二区三区| 成人视屏免费看| 欧美视频一区二区三区四区| 91精品在线免费观看| 久久久激情视频| 18欧美亚洲精品| 视频一区二区三区入口| 九色综合狠狠综合久久| 丁香五精品蜜臀久久久久99网站| 91美女视频网站| 日韩亚洲欧美中文三级| 久久久久亚洲蜜桃| 一区二区三区在线免费观看| 日韩影院精彩在线| 成人午夜又粗又硬又大| 欧美高清视频一二三区| 国产亚洲综合在线| 亚洲va韩国va欧美va精品| 国产一区二区精品久久91| 欧美日韩亚洲高清一区二区| 欧美精品一区二区久久久| 亚洲美女屁股眼交3| 韩国女主播成人在线| 在线日韩av片| 国产精品久久毛片av大全日韩| 亚洲成人tv网| 91丨国产丨九色丨pron| 欧美精品一区二区三区四区 | 国产一区二区在线影院| 色综合视频在线观看| 精品国产1区二区| 亚洲午夜精品在线| gogo大胆日本视频一区| 精品1区2区在线观看| 亚洲电影在线播放| 99久久er热在这里只有精品66| 日韩免费看网站| 亚州成人在线电影| 色婷婷久久久综合中文字幕 | 91麻豆精品国产91久久久久| 国产精品午夜电影| 国产精品一区二区久久精品爱涩| 日韩一级二级三级| 亚洲成人先锋电影| 在线观看亚洲一区| 一卡二卡欧美日韩| 色综合天天性综合| 最新国产成人在线观看| 99久久精品免费看| 国产精品人妖ts系列视频 | 亚洲精品视频免费看| 国产成人av电影在线观看| 亚洲精品一区二区三区精华液 | 亚洲欧美另类综合偷拍| 国产91富婆露脸刺激对白| 精品三级av在线| 国内一区二区在线| 亚洲已满18点击进入久久| 91麻豆免费看片| 亚洲黄色av一区| 欧美伊人久久久久久午夜久久久久| 亚洲视频一区二区在线观看| 99国产精品久久久久久久久久| 中文字幕日韩一区| 在线免费观看视频一区| 亚洲国产你懂的| 欧美日韩国产天堂| 狠狠色狠狠色综合日日91app| 精品美女被调教视频大全网站| 精品在线一区二区三区| 久久久久久久性| 成人a免费在线看| 综合久久久久综合| 欧美日韩免费在线视频| 日本sm残虐另类| 久久免费电影网| 成人福利视频网站| 亚洲一区影音先锋| 欧美精品v日韩精品v韩国精品v| 日韩精品免费视频人成| 久久婷婷一区二区三区| 99久久综合色| 日韩av电影免费观看高清完整版 | 国产精品亚洲专一区二区三区 | 精品一区二区三区免费观看| 国产欧美日韩精品a在线观看| kk眼镜猥琐国模调教系列一区二区| 一区二区三区四区中文字幕| 欧美一区二区三区四区在线观看| 国产一级精品在线| 依依成人精品视频| 欧美大片在线观看一区| 成人app网站| 免费欧美高清视频| 国产精品久久看| 51精品秘密在线观看| 成人一区在线看| 天天av天天翘天天综合网色鬼国产 | 日韩女优av电影| 不卡欧美aaaaa| 蜜乳av一区二区三区| 国产精品日产欧美久久久久| 在线综合视频播放| 99久久久精品| 国产精品18久久久久久久网站| 亚洲一线二线三线久久久| 国产丝袜在线精品| 在线成人av网站| 91免费版在线| 国产成人99久久亚洲综合精品| 美国一区二区三区在线播放| 亚洲另类一区二区| 日本一区二区三区视频视频| 日韩一区二区三区四区五区六区| 91视频国产观看| 懂色av噜噜一区二区三区av| 日韩1区2区3区| 亚洲国产乱码最新视频 | 免费人成黄页网站在线一区二区| 中文字幕在线不卡视频| 久久亚洲精精品中文字幕早川悠里 | 国精产品一区一区三区mba视频| 亚洲精品欧美在线| 亚洲人一二三区| 中文字幕一区二区三区乱码在线| 亚洲精品在线免费观看视频| 日韩一级免费观看| 制服丝袜在线91| 欧美福利视频导航| 欧美日韩日本视频| 欧美另类久久久品| 欧美日韩高清一区| 欧美区一区二区三区| 欧美久久一区二区| 欧美日韩免费观看一区二区三区| 日本丶国产丶欧美色综合| 99re热视频这里只精品| 99re66热这里只有精品3直播 | 亚洲国产视频一区二区| 亚洲免费视频成人| 一级日本不卡的影视| 亚洲综合色网站| 亚洲成a人片在线不卡一二三区| 亚洲国产一区二区在线播放| 亚洲国产裸拍裸体视频在线观看乱了| 亚欧色一区w666天堂| 蜜臀av性久久久久蜜臀aⅴ| 九九热在线视频观看这里只有精品| 久久精品72免费观看| 国产一区二区久久| 成人高清视频免费观看| 在线免费视频一区二区| 欧美一区二区三区性视频| 久久久99久久精品欧美| 中文字幕制服丝袜成人av| 亚洲综合视频在线观看| 麻豆成人av在线| 丰满白嫩尤物一区二区| 日本黄色一区二区| 日韩一区国产二区欧美三区| 国产视频亚洲色图| 一二三区精品视频| 久久9热精品视频| 91免费观看视频在线| 日韩欧美一级二级三级久久久| 国产欧美日韩精品一区| 午夜精品影院在线观看| 国内精品久久久久影院薰衣草| 成人做爰69片免费看网站| 欧美丝袜丝交足nylons| 亚洲精品在线观| 一区二区三区色| 国产一区二区美女诱惑| 色婷婷国产精品综合在线观看| 日韩美女一区二区三区| 亚洲免费av网站| 国产99精品在线观看| 91精品在线麻豆| 亚洲精品免费在线| 国产xxx精品视频大全| 欧美丰满高潮xxxx喷水动漫|