📄 distab.c
字号:
/*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2005
*
* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
*
* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/
/*****************************************************************************
*
* Filename:
* ---------
* DISTAB.c
*
* Project:
* --------
* Maui_Software
*
* Description:
* ------------
* This file contains connect parameters of LAP
*
* Author:
* -------
* -------
*
*****************************************************************************/
#include "kal_release.h" /* Basic data type */
#include "stack_common.h"
#include "stack_msgs.h"
#include "app_ltlcom.h" /* Task message communiction */
#include "stack_timer.h" /* Stack timer */
#include "irda_enums.h" /* irda enum */
#include "gprs_flc_kal.h"
#include "gprs_flc_common_data_types.h"
#include "flc_tunable_para.h"
#include "irconfig.h"
kal_uint8 connect_params[] = {
/*Note: the third byte in each row is the only item that needs to
be configured*/
#if ((defined(MT6228)||defined(MT6229) || defined(MT6230))&&defined(__IRDA_FIR_SUPPORT__))
0x01, 0x02, 0xfe , 0x01, /* 4M bps */
#elif ((defined(MT6228)||defined(MT6229) || defined(MT6230))&&defined(__IRDA_MIR_SUPPORT__))
0x01, 0x02, 0xfe , 0x00, /* 1.152M bps */
#else
0x01, 0x02, 0x3e , 0x00, /* 115200~9600 bps */
#endif
0x82, 0x01, 0x01, /* max TTT b0=500ms,b1=250ms,b2=100ms,b3=50ms */
#if (IRDA_STD_PACKET_SIZE == 1024)
0x83, 0x01, 0x1f, /* frame size(bytes): b0=64, b1=128, b2=256, b3=512, b4=1024, b5=2048*/
#elif (IRDA_STD_PACKET_SIZE == 512)
0x83, 0x01, 0x0f, /* frame size(bytes): b0=64, b1=128, b2=256, b3=512, b4=1024, b5=2048*/
#elif (IRDA_STD_PACKET_SIZE == 256)
0x83, 0x01, 0x07,
#elif (IRDA_STD_PACKET_SIZE == 128)
0x83, 0x01, 0x03,
#elif (IRDA_STD_PACKET_SIZE == 2048)
0x83, 0x01, 0x3f,
#elif (IRDA_STD_PACKET_SIZE == 64)
0x83, 0x01, 0x01,
#endif
0x84, 0x01, 0x01, /* window size = 1 */
0x85, 0x01, 0x0f, /* addional BOF's = 0 */
0x86, 0x01, 0x07, /* min turn around time = 1ms */
/* add 11 bof's to each frame */
0x08, 0x01, 0x0f, /* 40 sec disconnect, 3 sec threshold time */
};
/* device info used during discovery */
/* reference IrLMP v1.1 section 3.4.1 for format details */
/* 23 bytes max */
#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#if 0 /*no TTP flow control=> not support*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif
/* under construction !*/
/* under construction !*/
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -