DAVE SDK 4.1.2 Help content (翻译)——manifest 结构



Manifest Properties

每一个DAVE™ APP 必须要有一个manifest文件。例如:DEMOAPP.manifest.

Manifest包含下面部分:

  1. 加载声明(Import statements)

  2. (Class object for DAVE™ APP (e.g. DEMOAPP))

 

所有的属性必须在app类中定义。如果它们没有被声明,在生成app时就会产生错误。

这些属性不能被appGUI改变。它们能以任何顺序被定义,能在templates file 中被读取。

 

属性应该这样定义:

def    <property_name>= <value>

<Type> <property_name> = <value>

 

 

 

在下面的程序你能看到默认生成的manifest file 和其中的定义和各个属性

1

 2

 3

 4

 5

 6

 7

 8

 9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

92

93

94

95

// Import statements

import ifx.davex.app.manifest.*

 

class DEMOAPP extends DEMOAPP_GUI {

 

   // Note : Following APP properties are mandatory and important

   // Begin : APP property section

 

   /**

    * APP version

    * Format: a string with three digit separated by a dot.

    */

    def version = '1.0.0'

 

   /**

    * APP categories declaration.

    * It is list of strings. Subcategories are separated by slash.

    * No limits on number of categories and subcategories depth.

    */

    def categoriesDescription = ["Category/Sub Category"]

 

   /**

    * Minimum DAVE version required for this APP.

    *

    * It is string with three digit separated by a dot.

    */

    def minDaveVersion = '4.0.0'

 

   /**

    * Keywords used by search feature in APPs selection view

    *

    * It is a list of string.

    */

    def keywords = ['My keyword']

 

   /**

    * softwareIDs is used to declare which devices are compatible with this APP.

    * It is a map with key a string containing a pattern that shall match the SW id of

    * the device and as value the minimal version of the APP.

    */

 

    // Any step of XMC4500F144 and XMC4400F144

    // Any step of XMC4400F100 and XMC4400F64

    // Any step, any variant and any packages of XMC1300

    def softwareIDs = [

        "XMC4.[4-5].00.F144.*":"1.0.0",

        "XMC4.4.00.(F100|F64).*":"1.0.0",

        "XMC1.3.*.*.*":"1.0.0"

    ]

 

   /**

    * Singleton property:

    * When it is true the APP can be instantiated only once.

    */

    def singleton = false

 

 

   /**

    * initProvider property

    * It shall be true to add a call to <AppName>_Init()

    */

    def initProvider = false

 

   /**

    * Deprecated APP

    * Set it to true to indicate that the APP shall be not used for new projects.

    */

    def deprecated = false

 

   /**

    * Sharable property.

    * It shall be true to allows multiple APPs to require the same instance of this APP.

    */

    def sharable = false

 

   /**

    * APP function description.

    */

    def description = "Here the APP description. Please add appropriate APP description"

 

    // End   : APP property section

 

    // Begin : User APP property section

    // End   : User APP property section

 

    // APP Constructor

    public DEMOAPP(DaveEnv daveEnv) {

        //TODO: Initialize manifest variables here

    }

 

    // File Generation

    def generateFiles(){

        generate("demoapp.tmpl", "demoapp.h", false)

    }

}

 

属性:

version

categoriesDescription

minDaveVersion

keywords

softwareIDs

singleton

initProvider

deprecated

sharable

descrition

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值