Anatomy of component

A component is an object (software entity) that exposes a specific set of methods, properties, and events providing an abstraction for peripheral I/O and CPUs; a component can also be used to encapsulate software stacks or algorithms.

Types of components:

A component can be accessed using properties, methods, and events.

Properties represent settings of the component during the design-time. Properties define:

Methods are functions exposed by the component, available at runtime, and are used to set the component state and read the component results.

Events are callback functions exposed by the component to attend to asynchronous events such as Interrupts.

If you select any event in the component, you must specify the name of the procedure like event handler. This procedure will be called by a component driver when an associated asynchronous event takes place (for example, hardware interrupt or some error).