Skip to content

Add ARCHITECTURE.md and PRODUCT.md documentation#43

Open
anand-ky wants to merge 2 commits into
developfrom
feature/add-architecture-product-docs
Open

Add ARCHITECTURE.md and PRODUCT.md documentation#43
anand-ky wants to merge 2 commits into
developfrom
feature/add-architecture-product-docs

Conversation

@anand-ky
Copy link
Copy Markdown
Contributor

@anand-ky anand-ky commented Dec 5, 2025

Description

This PR adds comprehensive documentation for the HDMI-CEC library:

Added Files

  • ARCHITECTURE.md: Describes the overall architecture including:

    • High-level layered architecture (Application, CCEC, OSAL, Driver layers)
    • Core component descriptions (Connection, Bus, Message processing, etc.)
    • Communication flows for sending and receiving messages
    • Design patterns used throughout the codebase
    • Thread safety mechanisms
    • Build system information
  • PRODUCT.md: Describes the product functionality including:

    • Product overview and key features
    • Comprehensive CEC protocol support details
    • API usage examples and patterns
    • Use cases (Smart TV, STB, AVR, Testing)
    • Integration points and configuration
    • Benefits and limitations

Both documents are limited to approximately 2 pages for easy reference.

Type of Change

  • Documentation update
  • Bug fix
  • New feature
  • Breaking change

Testing

  • Documentation has been reviewed for accuracy
  • Files follow markdown best practices

- Add comprehensive architecture documentation describing the layered design
- Add product documentation detailing features, use cases, and integration
- Include component descriptions, communication flows, and design patterns
- Document API usage examples and extension points
Copilot AI review requested due to automatic review settings December 5, 2025 10:32
@anand-ky anand-ky requested a review from a team as a code owner December 5, 2025 10:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive technical and product documentation for the HDMI-CEC library, providing essential reference materials for developers and integrators working with the CEC protocol implementation.

Summary

The PR introduces two new documentation files that describe the architecture and product capabilities of the HDMI-CEC library. These documents provide both technical implementation details and product-level feature descriptions for RDK-based CEC implementations.

Key Changes

  • Added ARCHITECTURE.md covering the layered architecture, core components, communication flows, and design patterns
  • Added PRODUCT.md describing product features, API usage patterns, use cases, and integration points

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
ARCHITECTURE.md Comprehensive technical documentation covering the three-layer architecture (Application, CCEC, OSAL, Driver), core components, communication flows, design patterns, and build system information
PRODUCT.md Product-focused documentation detailing CEC protocol support, dual API layers, asynchronous communication model, use cases across different device types, integration points, and example applications

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ARCHITECTURE.md
└─────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────┐
│ OSAL Layer │
Copy link
Copy Markdown
Contributor

@apatel859 apatel859 Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should remove OSAL as it is giving impression that that layer is making HAL call however it is abstracting mutex and thread related calls

Comment thread ARCHITECTURE.md
- State machine for driver lifecycle (CLOSED/OPENING/OPENED/CLOSING)
- ACK/NACK handling (SENT_AND_ACKD, SENT_FAILED, SENT_BUT_NOT_ACKD)

#### 2.5 Host Integration
Copy link
Copy Markdown
Contributor

@apatel859 apatel859 Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not used we can remove from code and the docs

Comment thread PRODUCT.md

### 7. Platform Abstraction

The OSAL layer ensures portability across different RDK platforms:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should mentioned HAL over OSAL

Copy link
Copy Markdown
Contributor

@apatel859 apatel859 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

provided my comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants