This is UDMA driver RX flow related configuration parameters and API
|
| int32_t | Udma_flowFree (Udma_FlowHandle flowHandle) |
| | UDMA free flows. More...
|
| |
| int32_t | Udma_flowAttach (Udma_DrvHandle drvHandle, Udma_FlowHandle flowHandle, uint32_t flowStart, uint32_t flowCnt) |
| | UDMA flow attach API. This API is used to attach to an already allocated flow. This API differs from flow alloc API in this aspect - it doesn't allocate resource from RM. Once the flow is attached to, Udma_flowConfig API can be used to configure the flow. More...
|
| |
| int32_t | Udma_flowDetach (Udma_FlowHandle flowHandle) |
| | UDMA flow detach API. More...
|
| |
| int32_t | Udma_flowConfig (Udma_FlowHandle flowHandle, uint32_t flowIdx, const Udma_FlowPrms *flowPrms) |
| | This API configures the flow configurations. More...
|
| |
| uint32_t | Udma_flowGetNum (Udma_FlowHandle flowHandle) |
| | Returns the start flow number managed by this flow handle. More...
|
| |
| uint32_t | Udma_flowGetCount (Udma_FlowHandle flowHandle) |
| | Returns the number of flows managed by this flow handle. More...
|
| |
| void | UdmaFlowPrms_init (Udma_FlowPrms *flowPrms, uint32_t chType) |
| | Udma_FlowPrms structure init function. More...
|
| |
| int32_t | Udma_flowAttachMapped (Udma_DrvHandle drvHandle, Udma_FlowHandle flowHandle, uint32_t mappepdFlowNum, const Udma_FlowAllocMappedPrms *flowAllocMappedPrms) |
| | UDMA mapped flow attach API. This API is used to attach to an already allocated mapped flow. Once the flow is attached to, Udma_flowConfig API can be used to configure the flow. More...
|
| |
◆ UDMA_DEFAULT_FLOW_ID
| #define UDMA_DEFAULT_FLOW_ID (0x3FFFU) |
◆ UDMA_FLOW_INVALID
| #define UDMA_FLOW_INVALID ((uint32_t) 0xFFFF0000U) |
Macro used to specify that flow ID is invalid.
◆ Udma_flowFree()
UDMA free flows.
Freeup the flow resources.
- Parameters
-
| flowHandle | [IN] UDMA flow handle. This parameter can't be NULL. |
- Returns
- Udma_ErrorCodes
◆ Udma_flowAttach()
UDMA flow attach API. This API is used to attach to an already allocated flow. This API differs from flow alloc API in this aspect - it doesn't allocate resource from RM. Once the flow is attached to, Udma_flowConfig API can be used to configure the flow.
- Parameters
-
| drvHandle | [IN] UDMA driver handle pointer passed during Udma_init |
| flowHandle | [IN/OUT] UDMA flow handle. The caller need to allocate memory for this object and pass this pointer to all further APIs. The caller should not change any parameters as this is owned and maintained by the driver. |
| flowStart | [IN] Flow index to attach to. This paramter should be a valid flow number allowed to be used by a core. The driver doesn't check the validity of this field at the time of attach. But the flow config API may fail if wrong flow index is used or when the core doesn't own the flow |
| flowCnt | [IN] Flow count - to attach to more than 1 flow which is contiguous from flow start. This is provided to allow a single handle to manage multiple contiguous flows |
- Returns
- Udma_ErrorCodes
◆ Udma_flowDetach()
UDMA flow detach API.
Since no allocation is done in attach, this API just clears up the flow handle.
Note: This API can be used to detach mapped flow also, which are attached using Udma_flowAttachMapped.
- Parameters
-
| flowHandle | [IN] UDMA flow handle. This parameter can't be NULL. |
- Returns
- Udma_ErrorCodes
◆ Udma_flowConfig()
This API configures the flow configurations.
- Parameters
-
| flowHandle | [IN] UDMA flow handle pointer |
| flowIdx | [IN] Since multiple flows are allocated and also contiguously, all the flows needs to be configured one after the other. This is the relative index from the start of the flow allocated. If the index goes beyond what is allocated, then the function returns error. |
| flowPrms | [IN] Pointer to flow configuration. |
- Returns
- Udma_ErrorCodes
◆ Udma_flowGetNum()
Returns the start flow number managed by this flow handle.
- Parameters
-
| flowHandle | [IN] UDMA flow handle. This parameter can't be NULL. |
- Returns
- Start flow number on success or UDMA_FLOW_INVALID on error
◆ Udma_flowGetCount()
Returns the number of flows managed by this flow handle.
- Parameters
-
| flowHandle | [IN] UDMA flow handle. This parameter can't be NULL. |
- Returns
- Flow count on success or UDMA_FLOW_INVALID on error
◆ UdmaFlowPrms_init()
| void UdmaFlowPrms_init |
( |
Udma_FlowPrms * |
flowPrms, |
|
|
uint32_t |
chType |
|
) |
| |
◆ Udma_flowAttachMapped()
UDMA mapped flow attach API. This API is used to attach to an already allocated mapped flow. Once the flow is attached to, Udma_flowConfig API can be used to configure the flow.
- Parameters
-
| drvHandle | [IN] UDMA driver handle pointer passed during Udma_init |
| flowHandle | [IN/OUT] UDMA flow handle. The caller need to allocate memory for this object and pass this pointer to all further APIs. The caller should not change any parameters as this is owned and maintained by the driver. |
| mappepdFlowNum | [IN] Mapped flow index to attach to. This paramter should be a valid mapped flow number allowed to be used by a core and by the mapped channel. The driver doesn't check the validity of this field at the time of attach. But the flow config API may fail if wrong mapped flow index is used or when the core doesn't own the mapped flow or if the mapped flow dosen't belong to the deicated flows for the particular channel. |
| flowAllocMappedPrms | [IN] UDMA mapped flow alloc parameters. This parameter can't be NULL. |
- Returns
- Udma_ErrorCodes