|
535 | 535 | /// Every protocol layer provides an ability to access the next one using |
536 | 536 | /// @ref comms::frame::FrameLayerBase::nextLayer() "nextLayer()" member function. |
537 | 537 | /// It is strongly recommended to generate convenience access functions using |
538 | | -/// #COMMS_PROTOCOL_LAYERS_ACCESS() macro. |
| 538 | +/// #COMMS_FRAME_LAYERS_ACCESS() macro. |
539 | 539 | /// @code |
540 | 540 | /// template < |
541 | 541 | /// typename TMessage, // common interface class defined by the application |
|
545 | 545 | /// struct Frame : public |
546 | 546 | /// MySyncPrefix<TMessage, TInputMessages, TAllocationOptions> |
547 | 547 | /// { |
548 | | -/// COMMS_PROTOCOL_LAYERS_ACCESS(payload, id, size, checksum, sync); |
| 548 | +/// COMMS_FRAME_LAYERS_ACCESS(payload, id, size, checksum, sync); |
549 | 549 | /// }; |
550 | 550 | /// @endcode |
551 | 551 | /// It is equivalent to having the following member function being defined: |
|
591 | 591 | /// @endcode |
592 | 592 | /// Please note the following: |
593 | 593 | /// @li Every provided name is prefixed with @b layer_. |
594 | | -/// @li The names inside the #COMMS_PROTOCOL_LAYERS_ACCESS() macro specify |
| 594 | +/// @li The names inside the #COMMS_FRAME_LAYERS_ACCESS() macro specify |
595 | 595 | /// innermost layer first and outermost one last. There is a convenience |
596 | | -/// wrapper macro #COMMS_PROTOCOL_LAYERS_ACCESS_OUTER() which allows |
| 596 | +/// wrapper macro #COMMS_FRAME_LAYERS_ACCESS_OUTER() which allows |
597 | 597 | /// listing in the opposite order (outermost first and innermost last). |
598 | 598 | /// |
599 | 599 | /// <b style="color:red">WARNING:</b> Some compilers, such as @b clang or earlier |
600 | 600 | /// versions of @b gcc (v4.9 and earlier) may have problems compiling the |
601 | | -/// #COMMS_PROTOCOL_LAYERS_ACCESS() macro |
| 601 | +/// #COMMS_FRAME_LAYERS_ACCESS() macro |
602 | 602 | /// even though it contains valid C++11 code. If the compilation failure |
603 | 603 | /// happens there is a need to define inner @b Base type which specifies exact type |
604 | 604 | /// of the frame base class. |
|
613 | 613 | /// { |
614 | 614 | /// using Base = MySyncPrefix<TMessage, TInputMessages, TAllocationOptions>; |
615 | 615 | /// public: |
616 | | -/// COMMS_PROTOCOL_LAYERS_ACCESS(payload, id, size, checksum, sync); |
| 616 | +/// COMMS_FRAME_LAYERS_ACCESS(payload, id, size, checksum, sync); |
617 | 617 | /// }; |
618 | 618 | /// @endcode |
619 | 619 | /// @b NOTE, that @b COMMS library also defines @b COMMS_MUST_DEFINE_BASE in |
|
634 | 634 | /// using Base = ... |
635 | 635 | /// #endif |
636 | 636 | /// public: |
637 | | -/// COMMS_PROTOCOL_LAYERS_ACCESS(payload, id, size, checksum, sync); |
| 637 | +/// COMMS_FRAME_LAYERS_ACCESS(payload, id, size, checksum, sync); |
638 | 638 | /// }; |
639 | 639 | /// @endcode |
640 | | -/// Since **v5.2** the COMMS library defines #COMMS_PROTOCOL_LAYERS_NAMES() and |
641 | | -/// #COMMS_PROTOCOL_LAYERS_NAMES_OUTER() macros they are similar to |
642 | | -/// the #COMMS_PROTOCOL_LAYERS_NAMES() and #COMMS_PROTOCOL_LAYERS_NAMES_OUTER() |
| 640 | +/// Since **v5.2** the COMMS library defines #COMMS_FRAME_LAYERS_NAMES() and |
| 641 | +/// #COMMS_FRAME_LAYERS_NAMES_OUTER() macros they are similar to |
| 642 | +/// the #COMMS_FRAME_LAYERS_NAMES() and #COMMS_FRAME_LAYERS_NAMES_OUTER() |
643 | 643 | /// respectively, but also provide aliases to the layer types. However usage of these |
644 | 644 | /// macros requires inner **Base** type definition of the base class: |
645 | 645 | /// @code |
|
654 | 654 | /// // Base type definition is a requirement |
655 | 655 | /// using Base = MySyncPrefix<TMessage, TInputMessages, TAllocationOptions> |
656 | 656 | /// public: |
657 | | -/// COMMS_PROTOCOL_LAYERS_NAMES(payload, id, size, checksum, sync); |
| 657 | +/// COMMS_FRAME_LAYERS_NAMES(payload, id, size, checksum, sync); |
658 | 658 | /// }; |
659 | 659 | /// @endcode |
660 | 660 | /// It is equivalent to having the following types and member function being defined: |
|
0 commit comments