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

📄 l_types.h

📁 基于volcano针对mc908qy4生成的lin通信函数库的lin通信例程。此函数库可以实现lin2.0协议在qy4上从站应用的通信。需要用codewarrior3.1及以上版本编译
💻 H
字号:
/* ************************************************************************ *
 *                                                                          *
 *                  Volcano Communications technologies AB                  *
 *                            All rights reserved                           *
 *                                                                          *
 * ************************************************************************ */

/* ************************************************************************ *
 *         File: l_types.h                                                  *
 *  Description: Contains the basic LIN data types that are target-specific *
 * ************************************************************************ */


#ifndef __L_TYPES_H__
#define __L_TYPES_H__

/* Global macro definitions */
#define L_NULL                 ((void *)0)
#define L_TRUE                 ((l_bool)1)
#define L_FALSE                ((l_bool)0)

/* Define the prefix for all library functions */
#define L_LIB_PREFIX

/* Following two macros may be defined by the user elsewhere */
#ifndef L_ROM_PREFIX
  #define L_ROM_PREFIX const
#endif
#ifndef L_ROM_POSTFIX
  #define L_ROM_POSTFIX
#endif

#ifndef L_RAM_PREFIX
  #define L_RAM_PREFIX
#endif
#ifndef L_RAM_POSTFIX
  #define L_RAM_POSTFIX near
#endif

/* definition of global data types */
typedef unsigned char       l_bool;
typedef unsigned char       l_u8;
typedef unsigned short      l_u16;
typedef unsigned char       l_ioctl_op;
typedef unsigned char       l_irqmask;
typedef unsigned char *near l_u8ram_handle;

/* This library is of the interrupt Rx type */
#define L_LIB_RX_IRQ        

/* define if the library only supports slave operation */
#define L_NO_MASTER

/* define if the library will support only one interface.
   This should be the case, if the MCU has only one interface.
*/
#define SINGLE_INTERFACE_LIBRARY

/* define if ioctl bittime reading is not needed */
#define NO_RD_BITTIME


#endif /* __L_TYPES_H__ */

⌨️ 快捷键说明

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