First Cut at Components

We have started implementing interfaces, components, ports, instances and connectors. At this point we can work with connected atomic components (no composite components yet). Here is some example code:

Turns out, that in order to implement component instances which can each be connected to different other components, we have to introduce a struct with functions pointers that keeps track of the wirings on a per-instance bases. The function references we implemented recently did a marvelous job here🙂

Next up is the support for composite components.

2 thoughts on “First Cut at Components

  1. Pingback: From Interfaces to Contracts « mbeddr.com – embedded development using c language extensions

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s