📄 dispatcher.h
字号:
/** ###################################################################
** Filename : dispatcher.H
** Project : rs232
** Processor : MC9S08GT60CFB
** Compiler : CodeWarrior HCS08 C Compiler
** Date/Time : 10/3/2007, 8:29 PM
** Contents :
** User source code
**
** (c) Copyright UNIS, spol. s r.o. 1997-2008
** UNIS, spol. s r.o.
** Jundrovska 33
** 624 00 Brno
** Czech Republic
** http : www.processorexpert.com
** mail : info@processorexpert.com
** ###################################################################*/
#ifndef __dispatcher_H
#define __dispatcher_H
#include "PE_Types.h"
#include "AS1.h"
/* Constants */
#define DMAXBSIZE 256 //Dispatcher Max Buffer Size
#define FTABLESIZE 20 //Maximum number of functions
#define MessageHeaderMaxLength 30 //Maximum number of header name size
typedef struct{
byte channelName[MessageHeaderMaxLength];
void (*functionPointer)(void *inStructure);
}FunctionsTable;
/* MODULE leaky loop */
void dispatcher_LeakyLoop_Inchar(byte* inbyte,int dp_size);
bool dispatcher_LeakyLoop_getpacket(byte *packetrecieved, int *recievedSize);
byte dispatcher_LeakyLoop_charAt ( int im );
/* MODULE dispatcher */
void dispatcher_init(void);
void dispatcher_inbyte(byte* inbyte,int dp_size );
void dispatcher_dispatch(byte *Packet, int psize );
void dispatcher_addFunction(byte *Name,void (*functionPointer)(byte *inStructure));
void dispatcher_clearFtable(void);
/* END dispatcher */
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -