Inherit component

  1. Right-click on the component name or on the Properties in the Component Editor and select Inherit Component.... A message is shown indicating the current component must be closed. Click OK.
    Figure 1. Continuing with the inheritance process

    Continuing with the Inheritance Process

  2. Choose the component to be inherited from. Select Init_UART_VAR0.
    Figure 2. Select component page

    Select Component Page

  3. Select Exclusive usage of components methods and events, and click Next.

    For more explanation about each type of inheritance, refer to the CDE User Guide.

    Figure 3. Inheritance type page

    Inheritance Type Page

    Select Init method to be inherited to the target component and set the Inherit settings to Yes, and then click Next.

    For more information about each option, see CDE User Guide.

    Figure 4. Interface definition page

    Interface Definition Page

  4. Select Continue without inheriting another component, and click Next.
    Figure 5. Multiple inheritance page



  5. The default programming language ANSI C is selected; click Finish.
    Figure 6. Select programming language page

    Select Programming Language Page

Figure below shows the ErrDet1 component with the method Init inherited in the target component.

Figure 7. Inherited components

Inherited Components