USBD ROM Stack
1.0
ROM based USB device stack
mw_common
mw_iap.h
1
/*
2
%
3
% Copyright 2012 NXP Semiconductors,
4
% 411 E Plumeria Dr San Jose CA USA
5
% All rights are reserved. Reproduction in whole or in part is prohibited
6
% without the prior written consent of the copyright owner.
7
%
8
*/
9
10
/*
11
+++ IDENTIFICATION
12
13
PACKAGE :
14
COMPONENT :
15
INTERFACE :
16
TEMPLATE VERSION : 3
17
*/
18
#ifndef __MW_IAP_H__
19
#define __MW_IAP_H__
20
#include "param_check.h"
21
22
#define READ_OP 0
23
#define WRITE_OP 1
24
25
#define NO_OF_IAP_PARAMS 5
26
#define IAP_CMD_CODE 0
27
#define IAP_PARAM_0 1
28
#define IAP_PARAM_1 2
29
#define IAP_PARAM_2 3
30
#define IAP_PARAM_3 4
31
#define IAP_STAT_CODE 0
32
#define IAP_RESULT_0 1
33
#define IAP_RESULT_1 2
34
#define IAP_RESULT_2 3
35
#define IAP_RESULT_3 4
36
37
/*********************
38
* EXPORTED TYPEDEFS *
39
**********************/
40
41
typedef
enum
42
{
43
PREPARE_SECTOR_FOR_WRITE=50,
44
COPY_RAM_TO_FLASH=51,
45
ERASE_SECTOR=52,
46
BLANK_CHECK_SECTOR=53,
47
READ_PART_ID=54,
48
READ_BOOT_VER=55,
49
COMPARE=56,
50
REINVOKE_ISP=57,
51
READ_UID=58,
52
ERASE_PAGE=59,
53
READ_MISR=70,
54
READ_MISR_EX=73,
55
READ_PAGE_FAIM=80,
56
WRITE_PAGE_FAIM=81
57
}IAP_Command_Code;
58
59
void
exec_iap_cmd(
const
PLATFORM_TypeDef * info, uint32_t param_tab[], uint32_t result_tab[]);
60
61
#endif
/* __MW_IAP_H__ */
Generated on Mon Sep 25 2017 10:29:22 for USBD ROM Stack by
1.8.13