ax_lens_af_struct.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**********************************************************************************
  2. *
  3. * Copyright (c) 2019-2020 Beijing AXera Technology Co., Ltd. All Rights Reserved.
  4. *
  5. * This source file is the property of Beijing AXera Technology Co., Ltd. and
  6. * may not be copied or distributed in any isomorphic form without the prior
  7. * written consent of Beijing AXera Technology Co., Ltd.
  8. *
  9. **********************************************************************************/
  10. #ifndef _AX_LENS_AF_STRUCT_H_
  11. #define _AX_LENS_AF_STRUCT_H_
  12. #include "ax_base_type.h"
  13. #define ACTUATOR_MAX_NUM 8
  14. typedef struct _AX_LENS_ACTUATOR_AF_FUNC_T_ {
  15. /* af focus actuator */
  16. AX_S32 (*pfn_af_focus_init)(AX_U8 nPipeId, AX_U8 nBusNum, AX_U8 nCs);
  17. AX_U8 (*pfn_af_focus_rstb_status)(AX_U8 nPipeId);
  18. AX_U8 (*pfn_af_focus_get_status)(AX_U8 nPipeId);
  19. AX_S32 (*pfn_af_focus_to_dest_pos)(AX_U8 nPipeId, AX_S32 nPos, AX_U32 nPps);
  20. AX_S32 (*pfn_af_focus_to_dest_pos_direction)(AX_U8 nPipeId, AX_S32 nPos, AX_S32 nDirection);
  21. AX_S32 (*pfn_af_focus_exit)(AX_U8 nPipeId);
  22. /* af zoom actuator */
  23. AX_S32 (*pfn_af_zoom_init)(AX_U8 nPipeId, AX_U8 nBusNum, AX_U8 nCs);
  24. AX_U8 (*pfn_af_zoom_rstb_status)(AX_U8 nPipeId);
  25. AX_U8 (*pfn_af_zoom1_get_status)(AX_U8 nPipeId);
  26. AX_U8 (*pfn_af_zoom2_get_status)(AX_U8 nPipeId);
  27. AX_S32 (*pfn_af_zoom1_to_dest_pos)(AX_U8 nPipeId, AX_S32 nPos, AX_U32 nPps);
  28. AX_S32 (*pfn_af_zoom2_to_dest_pos)(AX_U8 nPipeId, AX_S32 nPos, AX_U32 nPps);
  29. AX_S32 (*pfn_af_zoom1_to_dest_pos_direction)(AX_U8 nPipeId, AX_S32 nPos, AX_S32 nDirection);
  30. AX_S32 (*pfn_af_zoom2_to_dest_pos_direction)(AX_U8 nPipeId, AX_S32 nPos, AX_S32 nDirection);
  31. AX_S32 (*pfn_af_zoom_exit)(AX_U8 nPipeId);
  32. } AX_LENS_ACTUATOR_AF_FUNC_T;
  33. #endif