TIOVX User Guide
|
Internal APIs for target kernel instance operations.
Data Structures | |
struct | tivx_target_kernel_instance_t |
Holds information about a target kernel instance. More... | |
Functions | |
tivx_target_kernel_instance | ownTargetKernelInstanceGet (uint16_t target_kernel_index, vx_enum kernel_id) |
Given a target_kernel_index and kernel_id return the handle to target kernel. More... | |
tivx_target_kernel_instance | ownTargetKernelInstanceAlloc (vx_enum kernel_id, volatile char *kernel_name, vx_enum target_id) |
Create a target kernel instance for given kernel_id. | |
vx_status | ownTargetKernelInstanceFree (tivx_target_kernel_instance *target_kernel_instance) |
Free previously allocate target kernel instance. | |
uint32_t | ownTargetKernelInstanceGetIndex (tivx_target_kernel_instance target_kernel_instance) |
Get fast index key for a given target kernel instance. | |
vx_status | ownTargetKernelInstanceInit (void) |
Init Target Kernel Instance Module. | |
void | ownTargetKernelInstanceDeInit (void) |
De-Init Target Kernel Instance Module. | |
tivx_target_kernel | tivxTargetKernelInstanceGetKernel (tivx_target_kernel_instance target_kernel_instance) |
Get target kernel for a given target kernel instance. | |
static vx_bool | tivxFlagIsBitSet (uint32_t flag_var, uint32_t flag_val) |
Macro to check if flag is set, flag MUST be of bit type. | |
static void | tivxFlagBitSet (volatile uint32_t *flag_var, uint32_t flag_val) |
Macro to set flag value, flag MUST be of bit type. | |
static void | tivxFlagBitClear (volatile uint32_t *flag_var, uint32_t flag_val) |
Macro to clear flag value, flag MUST be of bit type. | |
tivx_target_kernel_instance ownTargetKernelInstanceGet | ( | uint16_t | target_kernel_index, |
vx_enum | kernel_id | ||
) |
Given a target_kernel_index and kernel_id return the handle to target kernel.
Target kernel handle is created during create phase. During run phase, this API is used to quickly get access to the target_kernel_handle given target_kernel_index key.
kernel_id is used to confirm the handle matches the required kernel.
NULL is return if target kernel handle is not found.