Creating embedded component

In this section, you can create an example software component. The software component computes the parity in a data byte, either even or odd, depending on the component's configuration. The properties supported by the component are odd parity or even parity and will add a 1 or a 0 to the data byte.

  1. Select File > New > Embedded Component from the IDE menu bar. The Target Project page appears. Enter the name of the project or select the existing project and click Next.
  2. The New Component page appears (as shown below). Enter the name of the component and select the Component type and click Finish.
    Figure 1. New component - create new component screen



The projects are displayed in the Project Explorer and components created in the project are displayed in the Components view in the CDE folder. You can create or open as many projects and create or open as many components in the project. You can also create and import new components/interfaces from Components view.

Figure 2. Project explorer and component view



The Component editor holds the high level information related to the component, such as author version, the icon to show the copyright information when loaded in Processor Expert. In the component editor, the project name is different from the component name.The Component editor is divided into two panels.
Figure 3. Component editor



The Component Development Environment provides an independent and specific editor for each one of the supported features of the component.

For more information about each editor and its features, see Component Development Environment User Guide.

You will understand how to use the editors to add properties, methods, and events.