| | |
| | | #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]; |
| | | |
| | |
| | | volatile uint8_t oldSYN; |
| | | int RSTCount0; |
| | | int bFirstReq; |
| | | FPxCBFuncDef FPxCBFunc; |
| | | uint8_t bFPxCallBackFuncSet; |
| | | FPxEvCBFuncDef FPxEvCBFunc; |
| | | // uint8_t bFPxCallBackFuncSet; |
| | | |
| | | |
| | | |
| | |
| | | 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 |
| | | { |