| 12345678910111213141516171819202122232425262728293031323334353637 |
- // output.h :
- //
- #if !defined(AGD_OUTPUT_H__77A3E0A7_F59F_49E5_950F_D3465B3FDCAB__INCLUDED_)
- #define AGD_OUTPUT_H__77A3E0A7_F59F_49E5_950F_D3465B3FDCAB__INCLUDED_
- #include <gfabootlmast.h>
- #ifdef __cplusplus
- extern "C" {
- #endif // __cplusplus
- /////////////////////////////////////////////////////////////////////////////
- // output.h - Declarations:
- #define TRACE(...) fprintf(stdout, __VA_ARGS__), fflush(stdout)
- #define ETRACE(...) fprintf(stderr, __VA_ARGS__), fflush(stderr)
- #define TRACE0(...) GfaTfuPrintF(0, __VA_ARGS__)
- #define TRACE1(...) GfaTfuPrintF(1, __VA_ARGS__)
- #define TRACE2(...) GfaTfuPrintF(2, __VA_ARGS__)
- #define TRACE3(...) GfaTfuPrintF(3, __VA_ARGS__)
- #define TRACE4(...) GfaTfuPrintF(4, __VA_ARGS__)
- /////////////////////////////////////////////////////////////////////////////
- int GfaTfuPrintF(int verb, const char *pszFormat, ...);
- void GfaTfuDumpImageInfo(const char *pszContext, LPCGFA_IMG_INFO pii);
- void GfaTfuOnDownloadStatus(const char *pszFile, int nLine, uint8_t nNodeAddr, uint32_t nFlashStartAddr, uint32_t nCbData, int nCtx, int nErrorCode);
- void GfaTfuOnSendDataStatus(const char *pszFile, int nLine, uint8_t nNodeAddr, uint32_t nCbBlock, uint32_t nCbData, int nCtx, int nErrorCode);
- /////////////////////////////////////////////////////////////////////////////
- #ifdef __cplusplus
- }
- #endif // __cplusplus
- #endif // !defined(AGD_OUTPUT_H__77A3E0A7_F59F_49E5_950F_D3465B3FDCAB__INCLUDED_)
|