주요 콘텐츠

이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.

coder.Dictionary 클래스

네임스페이스: coder

Embedded Coder 사전 구성

설명

coder.Dictionary 클래스의 객체는 Embedded Coder 사전(Dictionary)을 나타냅니다. 이 객체를 사용하여 Embedded Coder 사전에서 정의 패키지를 불러오거나 사전의 특정 섹션에 액세스하는 등의 작업을 수행할 수 있습니다.

coder.Dictionary 객체에는 Embedded Coder 사전의 범주를 나타내는 coder.dictionary.Section 객체들이 포함되어 있습니다. coder.dictionary.Section 객체에는 coder.dictionary.Entry 객체들이 포함되어 있으며, 이 객체들은 Embedded Coder 사전의 해당 섹션에 저장된 정의를 나타냅니다. 해당 섹션의 이름은 그 섹션에 포함된 코드 정의의 유형을 나타냅니다. Embedded Coder 사전의 각 섹션에 액세스하려면 coder.Dictionary 객체를 사용하십시오. 해당 섹션 내의 사전 항목에 액세스하려면 coder.dictionary.Section 객체를 사용하십시오.

생성

coder.dictionary.createcoder.dictionary.open 함수는 coder.Dictionary 객체를 생성합니다.

메서드

모두 확장

예제

모두 축소

Embedded Coder 사전이 포함되도록 데이터 사전을 생성합니다.

dataDictionary = Simulink.data.dictionary.create("DataDictionary.sldd");

데이터 사전에서 Embedded Coder 사전을 생성하고, Embedded Coder 사전을 나타내기 위해 coder.Dictionary 객체를 사용합니다.

coderDictionary = coder.dictionary.create(dataDictionary)
coderDictionary = 

  Dictionary with Sections:

                    StorageClasses: [1×1 coder.dictionary.Section]
                    MemorySections: [1×1 coder.dictionary.Section]
    FunctionCustomizationTemplates: [1×1 coder.dictionary.Section]

Embedded Coder 사전에는 세 개의 coder.dictionary.Section 객체가 포함되어 있으며, 각 객체는 사전의 한 섹션을 나타냅니다.

Embedded Coder 사전이 포함될 데이터 사전을 생성하십시오.

dataDictionary = Simulink.data.dictionary.create("DataDictionary.sldd");

데이터 사전에서 Embedded Coder 사전을 생성하고, Embedded Coder 사전을 나타내기 위해 coder.Dictionary 객체를 사용합니다. 인터페이스 구성 유형을 서비스 인터페이스로 지정하십시오.

coderDictionary = coder.dictionary.create(dataDictionary,"ServiceInterface")
coderDictionary = 

  Dictionary with properties and Sections:

                    ServicesHeaderFileName: 'services.h'
                         InitTermFunctions: [1×1 coder.dictionary.Section]
                PeriodicAperiodicFunctions: [1×1 coder.dictionary.Section]
                    DataReceiverInterfaces: [1×1 coder.dictionary.Section]
                      DataSenderInterfaces: [1×1 coder.dictionary.Section]
                    DataTransferInterfaces: [1×1 coder.dictionary.Section]
                           TimerInterfaces: [1×1 coder.dictionary.Section]
                 ParameterTuningInterfaces: [1×1 coder.dictionary.Section]
         ParameterArgumentTuningInterfaces: [1×1 coder.dictionary.Section]
                     MeasurementInterfaces: [1×1 coder.dictionary.Section]
             SubcomponentInitTermFunctions: [1×1 coder.dictionary.Section]
    SubcomponentPeriodicAperiodicFunctions: [1×1 coder.dictionary.Section]
                    SharedUtilityFunctions: [1×1 coder.dictionary.Section]
                              InternalData: [1×1 coder.dictionary.Section]
                                 Constants: [1×1 coder.dictionary.Section]
                            StorageClasses: [1×1 coder.dictionary.Section]
                        DataMemorySections: [1×1 coder.dictionary.Section]
                    FunctionMemorySections: [1×1 coder.dictionary.Section]

Embedded Coder 사전에는 coder.dictionary.Section 객체들이 포함되어 있으며, 각 객체는 사전 내의 서비스 인터페이스, 함수 또는 코드 정의의 범주를 나타냅니다.

버전 내역

R2019b에 개발됨

모두 확장