Stack I/O Request Functionality.
More...
Stack I/O Request Functionality.
◆ PTX_IORQ_DATA_POP
| #define PTX_IORQ_DATA_POP ((size_t)-1) |
Indicate in length parameter to pop data.
◆ PTX_IORQ_EMPTY
◆ PTX_IORQ_NUM_STACK_LOCATIONS
| #define PTX_IORQ_NUM_STACK_LOCATIONS 8 |
Maximum number of stack locations.
◆ PTX_IORQ_STATE_DISPOSED
| #define PTX_IORQ_STATE_DISPOSED (uint8_t)0 |
default Value, IoRq item gets destroyed (and its linked buffer is released) after single IO execution
◆ PTX_IORQ_STATE_INVALID
| #define PTX_IORQ_STATE_INVALID (uint8_t)0xFF |
indicates an invalid value for the IoRq item
◆ PTX_IORQ_STATE_LOCKED
| #define PTX_IORQ_STATE_LOCKED (uint8_t)1 |
prevent IoRq item from being destroyed (buffer is kept as well)
◆ PTX_IORQ_STATE_LOCKED_RELEASE_BUFFER
| #define PTX_IORQ_STATE_LOCKED_RELEASE_BUFFER (uint8_t)2 |
prevent IoRq item from being destroyed but buffer is released.
◆ ptxIoRq_GetItem()
| struct ptxIoRq * ptxIoRq_GetItem |
( |
struct ptxOsal * | osalCtx | ) |
|
Allocate or get from a pool an I/O Request Item.
I/O Request Structure Handling Functions
- Parameters
-
| [in] | osalCtx | Pointer to an initialized OSAL component structure. |
- Returns
- Pointer to the allocated item or NULL if not successful.
◆ ptxIoRq_ReturnItem()
| void ptxIoRq_ReturnItem |
( |
struct ptxOsal * | osalCtx, |
|
|
struct ptxIoRq * | ioRqItem ) |
De-allocate or return to a pool an I/O Request Item.
- Parameters
-
| [in] | osalCtx | Pointer to an initialized OSAL component structure. |
| [in] | ioRqItem | Pointer to a previously allocated I/O Request Item. |
◆ ptxIoRq_SetItemState()
Set state of an I/O Request Item.
- Parameters
-
| [in] | ioRqItem | Pointer to a previously allocated I/O Request Item. |
| [in] | ioState | State to be set within previously allocated I/O Request Item. |
- Returns
- Status of the operation. See definition of ptxStatus_t.