Core feature-lib for light detection. More...
Data Structures | |
struct | VFTR_LD_PARAM_S |
Structure of light detection parameters. More... | |
struct | VFTR_LD_STATUS_S |
Structure of light detection status. More... | |
struct | VFTR_LD_INSTANCE_S |
Structure for the light detection instance. More... | |
Enumerations | |
enum | VFTR_LD_COND_E { VFTR_LD_LIGHT_NONE = 0x0, VFTR_LD_LIGHT_ON = 0x1, VFTR_LD_LIGHT_OFF = 0x2, VFTR_LD_LIGHT_BOTH = 0x3, VFTR_LD_LIGHT_NUM = 0x4 } |
Enumeration of light detection mode. More... | |
Functions | |
VFTR_LD_INSTANCE_S * | VFTR_LD_newInstance () |
Create light detection instance. More... | |
INT32 | VFTR_LD_deleteInstance (VFTR_LD_INSTANCE_S **instance) |
Delete light detection instance. More... | |
INT32 | VFTR_LD_setParam (VFTR_LD_INSTANCE_S *instance, const MPI_SIZE_S *res, const VFTR_LD_PARAM_S *param) |
Set light detection parameters. More... | |
INT32 | VFTR_LD_checkParam (const MPI_SIZE_S *res, const VFTR_LD_PARAM_S *param) |
check light detection parameters. More... | |
INT32 | VFTR_LD_getParam (const VFTR_LD_INSTANCE_S *instance, VFTR_LD_PARAM_S *param) |
Get light detection parameters. More... | |
INT32 | VFTR_LD_detect (VFTR_LD_INSTANCE_S *instance, const UINT8 mcvp_avg_y_cfg_idx, VFTR_LD_STATUS_S *status) |
INT32 | VFTR_LD_getStat (const VFTR_LD_INSTANCE_S *instance, VFTR_LD_STATUS_S *status) |
Core feature-lib for light detection.
enum VFTR_LD_COND_E |
INT32 VFTR_LD_checkParam | ( | const MPI_SIZE_S * | res, |
const VFTR_LD_PARAM_S * | param | ||
) |
check light detection parameters.
[in] | param | light detection parameters. |
0 | Success. |
EFAULT | Input pointer is NULL. |
EINVAL | light detection parameters are invalid. |
INT32 VFTR_LD_deleteInstance | ( | VFTR_LD_INSTANCE_S ** | instance | ) |
Delete light detection instance.
[in,out] | instance | light detection instance. |
0 | success. |
EFAULT | input pointer is NULL. |
INT32 VFTR_LD_getParam | ( | const VFTR_LD_INSTANCE_S * | instance, |
VFTR_LD_PARAM_S * | param | ||
) |
Get light detection parameters.
[in] | instance | LD instance. |
[out] | param | LD parameters. |
0 | Success. |
EFAULT | Input pointer is NULL. |
VFTR_LD_INSTANCE_S* VFTR_LD_newInstance | ( | ) |
Create light detection instance.
Not NULL | success to create instance. |
NULL | fail to create instance. |
INT32 VFTR_LD_setParam | ( | VFTR_LD_INSTANCE_S * | instance, |
const MPI_SIZE_S * | res, | ||
const VFTR_LD_PARAM_S * | param | ||
) |
Set light detection parameters.
[in,out] | instance | light detection instance. |
[in] | param | light detection parameters. |
0 | success. |
EFAULT | input pointer is NULL. |