From 005755edcdc332315ba077598d4746ac195b069e Mon Sep 17 00:00:00 2001 From: QuakeGod <QuakeGod@sina.com> Date: 星期一, 14 十月 2024 11:45:56 +0800 Subject: [PATCH] increase KPLC KBus from 2 client to 16 clients --- Ext_FPx/Inc/FPx.h | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Ext_FPx/Inc/FPx.h b/Ext_FPx/Inc/FPx.h index 4ab09f9..e3b05ef 100644 --- a/Ext_FPx/Inc/FPx.h +++ b/Ext_FPx/Inc/FPx.h @@ -71,7 +71,7 @@ #define SetFPxDEPin_0() LL_GPIO_ResetOutputPin(FPxDE_PORT,FPxDE_PIN) #define SetFPxDEPin_1() LL_GPIO_SetOutputPin(FPxDE_PORT,FPxDE_PIN) -typedef void *(*FPxCBFuncDef) (int nEvent, void * pBuf, int); //callback func ,prama s is void *,void *,int; return void *; +typedef void *(*FPxEvCBFuncDef) (int nEvent, void * pBuf, int); //callback func ,prama s is void *,void *,int; return void *; // extern uint8_t PktBuf1[64]; @@ -94,8 +94,8 @@ volatile uint8_t oldSYN; int RSTCount0; int bFirstReq; - FPxCBFuncDef FPxCBFunc; - uint8_t bFPxCallBackFuncSet; + FPxEvCBFuncDef FPxEvCBFunc; +// uint8_t bFPxCallBackFuncSet; @@ -142,13 +142,13 @@ uint8_t FPx_SetIOCount(int nInputBytes, int nOutputBytes); uint8_t FPx_Proc(void); -uint8_t FPxCalBCC(uint8_t* pBuf, uint8_t len1); +uint8_t FPxBCC(uint8_t* pBuf, uint8_t len1); uint8_t FPxCheckPkt(uint8_t * pBuf, uint8_t len1); uint8_t FPxParsePkt(uint8_t * pBuf, uint8_t len1); uint8_t FPxSendPkt(uint8_t * pBuf, uint8_t len1); -int FPxSetCallBackFunc(FPxCBFuncDef Func1); +int FPxSetCallBackFunc(FPxEvCBFuncDef Func1); enum enumFPxCallBackEvent { -- Gitblit v1.9.1