You copied the Doc URL to your clipboard.

About LISA+ protocols

The LISA+ keyword protocol declares a protocol.

protocol MyProtocol
    // protocol definition

Define protocols on the top level in the LISA+ code. By convention, each protocol MyProtocol has a separate LISA+ file MyProtocol.lisa to define it.

MyProtocol can be any valid C identifier. A protocol defines ports in components that use this protocol to communicate with other components, including parent-, sibling- and sub-components. You can think of protocols as port types because only ports that use the same protocol can connect.

A protocol definition can contain:

  • An includes section.
  • A possibly empty list of behavior prototypes.
  • A properties section.
Was this page helpful? Yes No