⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tat9main.hec

📁 这是用Labwindows开发的一个RF test程序。 用于日本机种的组装后ANT 测试。
💻 HEC
📖 第 1 页 / 共 2 页
字号:
/******************************************************************************/
/* SCCS: %Z% Name: %M% Date US: %G% %U% Ver.: %I% */
/******************************************************************************/
/*F(*************************************************************************** 
 * File name : %M%
 * Project : ROAD RUNNER
 * Module :
 * Date : (US) %G% %U%
 * Version : %I%
 * Compiler name and release(s) :
 *----------------------------------------------------------------------------* 
 *----------------------------------------------------------------------------* 
 *                                    DESCRIPTION
 *
 *----------------------------------------------------------------------------* 
 *----------------------------------------------------------------------------* 
 *                           FUNCTIONS DEFINED IN THIS FILE
 *----------------------------------------------------------------------------* 
 * Name            | Object
 *----------------------------------------------------------------------------* 
 * 
 *----------------------------------------------------------------------------*
 *----------------------------------------------------------------------------* 
 *                                    EVOLUTION
 *----------------------------------------------------------------------------* 
 * Date     | Author    | Arnb   | Description
 *----------------------------------------------------------------------------* 
 * 29.01.97 |SIMON J.M.  | XXYYYY | creation
 * 11.09.97 |GONDRE V.   |        | Modification for SC modul
 * 22.10.97 |SEZILLE F.  |        | new project : BERTHA_LC
 * 09.10.98 |S.MADELAINE |        | add TAT_SC_WRITE_UART, TAT_SC_READ_UART
 * 23.04.99 | F. LE GOFF |  1.61  | - Add Uart 0 test managment.
 * 09.06.99 | F. LE GOFF |  1.63  |- Add constant to switch on other uart for 
 *          |            |        | communication in TAT mode.
 *----------------------------------------------------------------------------* 
 * 16.11.99 |F. Sezille  |   2.10   | - Change message identifier declaration 
 *          |            |          |  in order to avoid conflict between 
 *          |            |          |  operation type values and v_command 
 *          |            |          | values.
 * 26.11.99 |F. Sezille  |   2.10   | - change CALLx_ON / OFF declaration.
 * 28.03.00 | F. LE GOFF |   2.25   | - Add function for the Reco Pins tests
 *          |            |          | (Report of TATSC-2.19.RECO_TST version)
 *          |            |          | - CRQ LMSdv36456 LMSdv37349 LMSdv37384
 ***************************************************************************)F*/
/* #*/

#ifndef TAT9MAIN_HEC
#define TAT9MAIN_HEC

/* Flags for Frequency Select */
/* ---------------------------*/
#define TAT_SC_3_25MHZ	0x0
#define TAT_SC_6_5MHZ	0x1
#define TAT_SC_13MHZ	0x2

#define TAT_SC_LOW_FREQ	        TAT_SC_3_25MHZ
#define TAT_SC_MEDIUM_FREQ	TAT_SC_6_5MHZ
#define TAT_SC_HIGH_FREQ	TAT_SC_13MHZ

#define TAT_DSP_52MHZ	DSPCLK_52MHZ
#define TAT_DSP_26MHZ	DSPCLK_26MHZ
#define TAT_DSP_13MHZ	DSPCLK_13MHZ
#define TAT_DSP_6_5MHZ	DSPCLK_6_5MHZ

/* Flags for voltage */
/* ------------------*/
#define TAT_SC_LOLEVEL	 0            
#define TAT_SC_HILEVEL	 1            

/* Flags bit number */
/* -----------------*/
#define TAT_SC_8BITS	 8            
#define TAT_SC_16BITS	16            
#define TAT_SC_32BITS	32            

/* Flags for Chip Select */
/* ----------------------*/
#define TAT_CS0	0x00
#define TAT_CS1	0x01
#define TAT_CS2	0x02
#define TAT_CS3	0x03

#define TAT_CS_FLASH	TAT_CS0
#define TAT_CS_RAM	TAT_CS1
#define TAT_CS_PLAYBACK	TAT_CS2
#define TAT_CS_LCD	TAT_CS3

/* Flags for Transition definition */
/* --------------------------------*/
#define HIGH_TO_LOW    0x00
#define LOW_TO_HIGH    0x01
#define TIMEOUT        0x02
#define UNKNOWN_EVENT  0x03
#define LOW_TO_HIGH_AND_HIGH_TO_LOW 0x04
#define ONKEY1S        0x05

/* Flags for Read/Write function (Get or Set Register) */
/*-----------------------------------------------------*/
#define TAT_SC_READ		0x00
#define TAT_SC_WRITE		0x01
#define TAT_SC_WRITE_UART	0x02
#define TAT_SC_READ_UART	0x03
#if defined (PCF50875)
#define TAT_SC_WRITE_UART_DLL_DLM 0x04
#endif /* PCF50875 */

/* Mask for GPIO register value */
/*------------------------------*/
#define PWM_BATT_ON         PIO0
#define PWM_BATT_OFF       ~PIO0
 
#define CALL1_ON           ~PIO1
#define CALL1_OFF           PIO1
#define CALL2_ON           ~PIO2
#define CALL2_OFF           PIO2


/* Mask for GPON register value */
/*------------------------------*/
#define REF_ON_ON          PIO0
#define REF_ON_OFF        ~PIO0
#define AVDDS_ON           PIO2
#define AVDDS_OFF         ~PIO2

/* TAT & TRACE CHANNEL */
/*-----------------------------------------------------*/
#define TAT_SC_TAT_CHANNEL	0x00
#define TAT_SC_TRACE_CHANNEL	0x01

/* Constants for Messages identifier (v_command field) */
/*******************************************************/

/* Messages identifier is :                    */
/* --------------------------------------------*/
/* |   Process  |   Function   | Msg Type |    */
/* |  (6 bits)  |   (7 bits)   | (3 bits) |    */
/* --------------------------------------------*/

/* Constant for "Msg Type" */
/*-------------------------*/
#if defined(NEW_TAT_CMD_MGT_FTR)
#define	MSG_TYPE_TATSC	0
#else
#define	MSG_TYPE_TATSC	6
#define	PROCESS_TATSC PROCESS_TAT
#endif
/* Constants for "Function" */
/*--------------------------*/
enum
{
  F_TAT_SC_CONFIG,
  F_TAT_SC_SET_AVDDS,
  F_TAT_SC_IGN,
  F_TAT_SC_HOOK,
  F_TAT_SC_SLEEP_MODE,
  F_TAT_SC_LOWVOLT,
  F_TAT_SC_CHARGE_CONTROL,
  F_TAT_SC_VIBRATOR_CONTROL,
  F_TAT_SC_LI_ION,
  F_TAT_SC_MELOD_GEN_REQ,
  F_TAT_SC_BUZZER_CONTROL,
  F_TAT_SC_CLOCK,
  F_TAT_SC_RTC,
  F_TAT_SC_DSP,
  F_TAT_SC_SUBSTITUT_PROCESS,
  F_TAT_SC_SET_REGISTER,
  F_TAT_SC_RESTITUT_PROCESS,
  F_TAT_SC_FREQUENCY,
  F_TAT_SC_RESET_DSP_RESULT_INT,
  F_TAT_SC_RESET_FRAME_INT,
  F_TAT_SC_CONT_PORT_TOGGLE,
  F_TAT_SC_PMU_CMD,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -