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

📄 lintmr.h

📁 BCM 控制demo源代码
💻 H
字号:
#ifndef LINTMR_H
#define LINTMR_H

/******************************************************************************
*                                                       
*       Copyright (C) 2005 Freescale Semiconductor, Inc.
*       All Rights Reserved								              
*														                            
* Filename:     lintmr.h                
*														                            
* Functions:    Timer routins header file
*														                            
* Description:
*														                            
* Notes:        Protocol timeouts -- only for Master node
*														                            
******************************************************************************/


/******************************************************************************
    Idle timeout processing
******************************************************************************/
#if defined(USEZEROPAGE)
#pragma DATA_SEG __SHORT_SEG ZeroSeg
#endif /* defined(USEZEROPAGE) */

extern LIN_ZPAGE LIN_WORD LIN_IdleTimeout;          /* counter for idle timeout */

#if defined(USEZEROPAGE)
#pragma DATA_SEG DEFAULT
#endif /* defined(USEZEROPAGE) */

/* Set/reset Idle timeout */
#if defined (USEXGATE)
extern void XLIN_SetIdleTimeout( void );
#endif

extern void near LIN_SetIdleTimeout( void );


#if defined(MASTER)

/******************************************************************************
    Protocol timeout processing
******************************************************************************/

/****************************************************************************/
/* Indexes for LIN_SetTimeout:                                              */

/*#define LIN_TO_WAKEUPDEL        0u   Wakeup timeout;                      */
/*                              1u  - MaxFrame timeout for 1 byte message;  */
/*                              2u  - MaxFrame timeout for 2 bytes message; */
/*                              3u  - MaxFrame timeout for 3 bytes message; */
/*                              4u  - MaxFrame timeout for 4 bytes message; */
/*                              5u  - MaxFrame timeout for 5 bytes message; */
/*                              6u  - MaxFrame timeout for 6 bytes message; */
/*                              7u  - MaxFrame timeout for 7 bytes message; */
/*                              8u  - MaxFrame timeout for 8 bytes message; */

/****************************************************************************/

/******************************************************************************
    Functions
******************************************************************************/
#if defined (USEXGATE)
void            XLIN_SetTimeout( LIN_BYTE timeoutIndex );
void            XLIN_CancelTimeout( void );
#else
void            near LIN_SetTimeout( LIN_BYTE timeoutIndex );
void            near LIN_CancelTimeout( void );
#endif

void            near LIN_TimerInit( void );


/*****************************************************************************/

#endif /* defined(MASTER) */

#endif /* !define (LINTMR_H) */

⌨️ 快捷键说明

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