11 DL_STAGE_DATA_TRANSFER
14 /* The prototype of hook of packet handler.
15 * If the packet is handled successfully, 1 is returned.
16 * Otherwise, 0 is returned.
18 typedef int (*CMDPROC) (PACKET_T *, void *);
20 /******************************************************************************
28 * 0 - Failed to initialize dl engine.
30 ******************************************************************************/
31 unsigned char FDL_DlInit (void);
33 /******************************************************************************
41 * 0 - Failed to register the handler.
43 ******************************************************************************/
44 unsigned char FDL_DlReg (CMD_TYPE cmd, CMDPROC proc, void *arg);
46 /******************************************************************************
50 * When the function is called, a infinite loop is entered to receive and
51 * handle packet from PC for ever.
52 ******************************************************************************/
53 int FDL_DlEntry (DL_STAGE start);
55 #endif /* DL_ENGINE_H */