![]() |
AMS Advanced Air Mobility Sensors UG
|
Public Member Functions | |
| CSoftwareComponentPort ()=default | |
| ~CSoftwareComponentPort ()=default | |
| bool | Write (const tPortDataType &korData) |
| bool | Read (tPortDataType &orData) |
| bool | Init () |
Public Attributes | |
| const uint8_t | kuId_ { uPortId } |
The class implements a software component port. The port is a mutex-protected variable used by software components to pass data from one to another.
|
default |
|
default |
| bool CSoftwareComponentPort< tPortDataType, uPortId >::Init |
Initialize the port. The function creates the required mutex object.
| bool CSoftwareComponentPort< tPortDataType, uPortId >::Read | ( | tPortDataType & | orData | ) |
Read from the port.
| orData | A reference to the output data structure. |
| bool CSoftwareComponentPort< tPortDataType, uPortId >::Write | ( | const tPortDataType & | korData | ) |
Write data to the port.
| korData | A reference to the data to be written to the port. |
| const uint8_t CSoftwareComponentPort< tPortDataType, uPortId >::kuId_ { uPortId } |