cpcore.c

来自「Controller Area Network Programming Inte」· C语言 代码 · 共 50 行

C
50
字号
/*****************************************************************************\*  CANpie                                                                     **                                                                             **  File        : cpcore.c                                                     **  Description : CANpie core functions                                        **  Author      : Uwe Koppe                                                    **  e-mail      : koppe@microcontrol.net                                       **                                                                             ** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - **                                                                             **   This program is free software; you can redistribute it and/or modify      **   it under the terms of the GNU General Public License as published by      **   the Free Software Foundation; either version 2 of the License, or         **   (at your option) any later version.                                       **                                                                             ** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - **                                                                             **  History                                                                    **  Vers.    Date        Comment                                         Aut.  **  -----    ----------  ---------------------------------------------   ----  **  0.1      11.02.1999  Initial version                                 UK    **  0.2      29.04.1999  Changed structures, new data type definitions   UK    **  0.3      04.09.1999  Adaption to version 0.3 of the CANpie Doc.      UK    **  0.4      18.01.2000  Adaption to Keil C compiler                     UK    **  0.5                  - no changes -                                        **  0.6      15.06.2000  set to CANpie release 0.6                       UK    **  0.7      02.11.2000  new functions for buffer operations             UK    **  0.8      15.02.2001  set to CANpie release 0.8                       UK   	**                                                                             *\*****************************************************************************/#include "cpconfig.h"#include "cpcore.h"#include "cpfifo.h"#include "cpfilter.h"#include "cpmacro.h"/*-------------------------------------------------------------------** Global variables used for the core functions***/static _U08    CpVar_CAN_Status[CP_CHANNEL_MAX];_U08 (* CpInt_ReceiveHandler[CP_CHANNEL_MAX] )(CpStruct_CAN *);_U08 (* CpInt_TransmitHandler[CP_CHANNEL_MAX])(CpStruct_CAN *);_U08 (* CpInt_ErrorHandler[CP_CHANNEL_MAX]   )(_U08);//-------------------------------------------------------------------// the 碈pVar_InitFlag

⌨️ 快捷键说明

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