IO Stream CPC Component#
Overview#
The IO Stream CPC Component provides a communication interface over a Co-Processor Communication (CPC) link between a host and a secondary device. This implementation allows applications to use standard input/output operations over the CPC protocol.
The IO Stream CPC module utilizes a dedicated CLI endpoint, enabling seamless command-line interaction between the host and secondary device, while integrating with Silicon Labs' broader IO Stream framework.
Features#
Bidirectional data communication over CPC
Automatic reconnection handling
Buffer management for efficient data transfer
Full integration with Silicon Labs IO Stream interface
Support for CLI applications on secondary devices
Error handling and recovery
RTOS-aware implementation for task-specific stream assignments
Integration with IO Stream Framework#
The iostream_cpc component is part of the broader IO Stream framework, which provides a unified interface for reading/writing data across different communication channels. The framework features:
Stream Abstraction: A uniform way to read/write data regardless of the physical communication interface
Multiple Stream Support: Load multiple streams in a project and select between them at runtime
Default Stream Configuration: Set system-wide or task-specific default streams
Printf Integration: Support for formatted output through standard printf interfaces