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

📄 lin_interface.h

📁 芯科原厂所有c8051fxx程序的例子。
💻 H
字号:
// Copyright (c) 2006 SILICON LABORATORIES, INC.
//
// FILE NAME   : LIN_Interface.h
// TARGET MCU  : C8051F52xA-53xA
// DESCRIPTION : Header file for LIN_Interface.c
//

#ifndef _LIN_INTERFACE_H_
#define _LIN_INTERFACE_H_


//-----------------------------------------------------------------------------
// Constant Definitions
//-----------------------------------------------------------------------------

// Bit definitions for l_ifc_status data type.
#define  LAST_FRAME_PID                   0xFF00
#define  SAVE_CONFIGURATION               0x0040
#define  EVENT_TRIGGERED_FRAME_COLLISION  0x0020
#define  BUS_ACTIVITY                     0x0010
#define  GO_TO_SLEEP                      0x0008
#define  OVERRUN                          0x0004
#define  SUCCESSFUL_TRANSFER              0x0002
#define  ERROR_IN_RESPONSE                0x0001

//-----------------------------------------------------------------------------
// Typedefs
//-----------------------------------------------------------------------------
typedef l_u16  l_ifc_status;


//-----------------------------------------------------------------------------
// Function Prototypes
//-----------------------------------------------------------------------------

// Interface operations
l_bool   l_ifc_init_std_ifc (void);
void     l_ifc_goto_sleep_std_ifc (void);
void     l_ifc_wake_up_std_ifc (void);
//l_u16    l_ifc_ioctl_std_ifc (l_ioctl_op op, void * pv);
void     l_ifc_rx_std_ifc (void);
void     l_ifc_tx_std_ifc (void);
l_u16    l_ifc_read_status_std_ifc (void);
void     l_ifc_update_status_std_ifc (l_bool frame_data_valid);
void     l_data_requested (void);


//-----------------------------------------------------------------------------
// Extern Variable Declarations
//-----------------------------------------------------------------------------
extern   l_ifc_status   status_std_ifc;
extern   l_bool         rx_valid_data;

//-----------------------------------------------------------------------------
// Additional SFR Definitions
//-----------------------------------------------------------------------------



#endif	// _LIN_INTERFACE_H_

⌨️ 快捷键说明

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