![]() |
AMS Advanced Air Mobility Sensors UG
|
Public Types | |
| using | DataType = tPortDataType |
Private Member Functions | |
| tPortDataType | readUnlocked () |
Private Attributes | |
| tPortDataType | oPortData_ {} |
| Port data storage. | |
Static Private Attributes | |
| static constexpr uint8_t | skuPortId_ {uPortId} |
| Port unique identifier. | |
Friends | |
| class | CPortReader |
| template<typename... TPortTypes> | |
| struct | TArePortIdsAscending |
Additional Inherited Members | |
Protected Types inherited from CSoftwareComponentPortBase | |
| using | osStaticMutexDef_t = StaticSemaphore_t |
Protected Attributes inherited from CSoftwareComponentPortBase | |
| bool | bPortReady_ {false} |
| The flag to indicate if the port has been initialized successfully. | |
| osMutexId_t | pMutexHandle_ |
| Mutex handle. | |
| osStaticMutexDef_t | sMutexControlBlock_ |
| Memory reserved for the mutex control block. | |
| const osMutexAttr_t | sMutexAttributes_ { NULL, 0, &sMutexControlBlock_, sizeof(sMutexControlBlock_) } |
| A structure with mutex attributes required for creation. | |
Static Protected Attributes inherited from CSoftwareComponentPortBase | |
| static constexpr uint32_t | skuPortReadTimeout { 1U } |
| Timeout for port read operation (in FreeRTOS ticks) | |
| static constexpr uint32_t | skuPortWriteTimeout { 1U } |
| Timeout for port write operation (in FreeRTOS ticks) | |
| static constexpr uint32_t | skuPortLockTimeout { 1U } |
| Timeout for port write operation (in FreeRTOS ticks) | |
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.
| using CSoftwareComponentPort< tPortDataType, uPortId >::DataType = tPortDataType |
|
default |
|
default |
|
delete |
|
delete |
|
inlinefinalvirtual |
Get port unique identifier.
Implements CSoftwareComponentPortBase.
|
delete |
|
delete |
| bool CSoftwareComponentPort< tPortDataType, uPortId >::Read | ( | tPortDataType & | orData | ) |
Read from the port.
| orData | A reference to the output data structure. |
|
inlineprivate |
| 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. |
|
friend |
|
friend |
|
private |
Port data storage.
|
staticconstexprprivate |
Port unique identifier.