📄 abb_inth.h
字号:
/**********************************************************************************/
/* TEXAS INSTRUMENTS INCORPORATED PROPRIETARY INFORMATION */
/* */
/* Property of Texas Instruments -- For Unrestricted Internal Use Only */
/* Unauthorized reproduction and/or distribution is strictly prohibited. This */
/* product is protected under copyright law and trade secret law as an */
/* unpublished work. Created 1987, (C) Copyright 1997 Texas Instruments. All */
/* rights reserved. */
/* */
/* */
/* Filename : abb_inth.h */
/* */
/* Description : Functions to manage the ABB device interrupt. */
/* The Serial Port Interface is used to connect the TI */
/* Analog BaseBand (ABB). */
/* It is assumed that the ABB is connected as the SPI */
/* device 0, and ABB interrupt is mapped as external IT. */
/* */
/* Author : Pascal PUEL */
/* */
/* Version number : 1.0 */
/* */
/* Date and time : Jan 2003 */
/* */
/* Previous delta : Creation */
/* */
/**********************************************************************************/
#ifndef __ABB_INTH_H__
#define __ABB_INTH_H__
#include "sys_types.h"
#ifndef _WINDOWS
#include "l1_sw.cfg"
#if(!OP_L1_STANDALONE)
#include "chipset.cfg"
#endif
/****************************************************************/
/* Power ON/OFF key definition. */
/****************************************************************/
// If <ON/OFF> key is pressed more than 20 TDMAs, it's a Hook-ON
#define SHORT_OFF_KEY_PRESSED (20)
// If <ON/OFF> key is pressed more than 160 TDMAs, it's a Hook-ON AND then Power-OFF
#define OFF_LOOP_COUNT (8)
#define LONG_OFF_KEY_PRESSED (OFF_LOOP_COUNT * SHORT_OFF_KEY_PRESSED)
// Structure definition for ADC READING RESULT REPORTS
// Define the maximum number of measures performed by the MADC module
#if ((ANALOG == 1) || (ANALOG == 3))
#define MADC_NUMBER_OF_MEAS (9)
#endif
#if (ANALOG == 2)
#define MADC_NUMBER_OF_MEAS (8)
#endif
typedef struct
{
SYS_UWORD16 adc_result[MADC_NUMBER_OF_MEAS];
} T_CST_ADC_RESULT;
#else // _WINDOWS
#define MADC_NUMBER_OF_MEAS (8)
#endif // _WINDOWS
// PROTOTYPES
#ifndef _WINDOWS
void Create_ABB_HISR(void);
SYS_BOOL Activate_ABB_HISR(void);
#endif // _WINDOWS
void EXT_HisrEntry(void);
void spi_abb_read_int_reg_callback(SYS_UWORD16 *read_value);
#endif // __ABB_INTH_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -