Drv/ByteStreamBufferAdapter/docs/sdd.md
The Drv::ByteStreamBufferAdapter is a passive component that serves as an adapter between two different driver interfaces in F´:
ByteStreamDriver interface, which is used for sending and receiving streams of bytesPassiveBufferDriver interface, which is used for sending and receiving Fw::Buffer objectsThis adapter component allows components that expect a PassiveBufferDriver interface to communicate with components that provide a ByteStreamDriver interface, bridging the gap between these two different models of data transfer.
| Name | Description | Validation |
|---|---|---|
| DRV-BSB-ADAPTER-001 | The component shall adapt the ByteStreamDriver interface to the PassiveBufferDriver interface | Unit Test |
| DRV-BSB-ADAPTER-002 | The component shall handle buffer ownership transfers between the two interfaces | Unit Test |
| DRV-BSB-ADAPTER-003 | The component shall monitor the ByteStreamDriver readiness state | Unit Test |
| DRV-BSB-ADAPTER-004 | The component shall emit events on error conditions | Unit Test |
The design of ByteStreamBufferAdapter assumes the following:
The component maintains a single state variable:
m_driverIsReady: An atomic boolean that tracks whether the ByteStreamDriver is ready to receive data. Initialized to false and set to true when a ready signal is received from the driver.