?? dl_proc.h
字號:
#ifndef __DL_PROC_H__
#define __DL_PROC_H__
#include "dl_comm.h"
/*===========================================================================
PUBLIC DATA DECLARATIONS
===========================================================================*/
/* Status Code Enumeration
This lists the status result codes passed around in the program.
This enum is used to index a table of response packets, so these
values map exactly to possible responses. */
typedef enum
{
ACK, /* Success. Send an acknowledgement. */
NAK_INVALID_FCS, /* Failure: invalid frame check sequence. */
NAK_INVALID_DEST, /* Failure: destination address is invalid. */
NAK_INVALID_LEN, /* Failure: operation length is invalid. */
NAK_EARLY_END, /* Failure: packet was too short for this cmd. */
NAK_TOO_LARGE, /* Failure: packet was too long for my buffer. */
NAK_INVALID_CMD, /* Failure: packet command code was unknown. */
NAK_FAILED, /* Failure: operation did not succeed. */
NAK_WRONG_IID, /* Failure: intelligent ID code was wrong. */
NAK_BAD_VPP, /* Failure: programming voltage out of spec */
NAK_VERIFY_FAILED, /* Failure: readback verify did not match */
NAK_NO_SEC_CODE, /* Failure: not permitted without unlock */
NAK_BAD_SEC_CODE /* Failure: invalid security code */
} response_code_type;
/*===========================================================================
PUBLIC FUNCTION DECLARATIONS
===========================================================================*/
/*===========================================================================
FUNCTION process_packets
DESCRIPTION
This function is the main loop implementing the DMSS Async Download
Protocol. It loops forever, processing packets as they arrive.
DEPENDENCIES
All necessary initialization for normal CPU operation must have
been performed, and the UART must have been initialized, before
entering this function.
RETURN VALUE
This function does not return.
SIDE EFFECTS
None.
===========================================================================*/
extern void process_packets(void);
#endif /* __DL_PROC_H__ */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -