NHS31xx SW API
app_closed_nfcprogramloader/inc/msghandler_protocol.h
1 /*
2  * Copyright 2016,2018-2019 NXP
3  * This software is owned or controlled by NXP and may only be used strictly
4  * in accordance with the applicable license terms. By expressly accepting
5  * such terms or by downloading, installing, activating and/or otherwise using
6  * the software, you are agreeing that you have read, and that you agree to
7  * comply with and are bound by, such license terms. If you do not agree to
8  * be bound by the applicable license terms, then you may not retain, install,
9  * activate or otherwise use the software.
10  */
11 
12 #ifndef __MSGHANDLER_PROTOCOL_H_
13 #define __MSGHANDLER_PROTOCOL_H_
14 
70 #define MIME_TYPE "N/P"
71 
73 #define MIME_TYPE_LENGTH 3
74 
77 #define MAX_CHUNK_SIZE NFC_SHARED_MEM_BYTE_SIZE - NDEFT2T_MSG_OVERHEAD(false, NDEFT2T_GetMimeRecordOverhead(false, MIME_TYPE_LENGTH) + sizeof(CMD_INCOMING_PACKAGE_T))
78 
80 typedef enum DOWNLOAD_REPORT_MSG_ERR {
81  /* 0 is reserved by MSG_ERR_T */
89  DOWNLOAD_REPORT_MSG_ERR_LAST_USED = DOWNLOAD_COMMUNICATION_FAILED,
91 
93 typedef enum MSGHANDLER_MSG_ID_S {
97 
98 #pragma pack(push, 1)
99 
106 typedef struct CMD_INCOMING_PACKAGE_S {
112  uint16_t chunkSize;
114 #pragma pack(pop)
115 
116 #endif
Definition: app_closed_nfcprogramloader/inc/msghandler_protocol.h:85
Definition: app_closed_nfcprogramloader/inc/msghandler_protocol.h:84
Definition: app_closed_nfcprogramloader/inc/msghandler_protocol.h:94
Definition: app_closed_nfcprogramloader/inc/msghandler_protocol.h:86
uint16_t chunkSize
Definition: app_closed_nfcprogramloader/inc/msghandler_protocol.h:112
DOWNLOAD_REPORT_MSG_ERR_T
Definition: app_closed_nfcprogramloader/inc/msghandler_protocol.h:80
Definition: app_closed_nfcprogramloader/inc/msghandler_protocol.h:106
Definition: app_closed_nfcprogramloader/inc/msghandler_protocol.h:87
MSGHANDLER_MSG_ID_T
Definition: app_closed_nfcprogramloader/inc/msghandler_protocol.h:93
Definition: app_closed_nfcprogramloader/inc/msghandler_protocol.h:95
Definition: app_closed_nfcprogramloader/inc/msghandler_protocol.h:83
Definition: app_closed_nfcprogramloader/inc/msghandler_protocol.h:82