nt9856x/rtos/code/application/source/cardv/SrcCode/Dx/include/DxHunting.h
2023-11-02 10:08:13 +08:00

60 lines
2.0 KiB
C
Executable File

/**
DxHunting module
Physical layer to detect key or touch input. User should implement these APIs before using GxInput.
@file DxHunting.h
@ingroup mIDxHunting
Copyright Novatek Microelectronics Corp. 2019. All rights reserved.
*/
#ifndef _DXHUNTING_H_
#define _DXHUNTING_H_
#include "kwrap/type.h"
///////////////////////////////////////////////////////////////////////////////
// GPIO to control periphery for hunting function
///////////////////////////////////////////////////////////////////////////////
#define HUNTING_OFF_MODE 1
#define HUNTING_NORMAL_MODE 2
#define HUNTING_MONITOR_MODE 3
//-----------------------------------------------------------------------------
// fast boot mode under monitor mode
/*enum _HUNTING_MODE //UIInfo.h
{
HUNTING_MODE_PHOTO,
HUNTING_MODE_MOVIE,
HUNTING_MODE_PHOTO_MOVIE,
HUNTING_MODE_ID_MAX
};*/
//-----------------------------------------------------------------------------
enum _DX_HUNTING_MODE //Must match with _HUNTING_MODE in UIInfo.h
{
/* for hunting camera application */
DX_HUNTING_MODE_PHOTO = 0, /* PhotoFast */
DX_HUNTING_MODE_MOVIE, /* MovieFast */
DX_HUNTING_MODE_PHOTO_MOVIE, /* PhotoFast -> MovieFast */
DX_HUNTING_MODE_OTHER, /* for boot linux */
DX_HUNTING_MODE_MOVIE2, /* MovieFast + sensor sized photo with slice encode */
/* for life camera application */
DX_HUNTING_MODE_CAMERA_PHOTO = 100,
DX_HUNTING_MODE_CAMERA_MOVIE,
DX_HUNTING_MODE_CAMERA_PHOTO_MOVIE,
DX_HUNTING_MODE_CAMERA_MSDC,
DX_HUNTING_MODE_CAMERA_UVAC,
DX_HUNTING_MODE_ID_MAX
};
extern void DrvGPIO_MicroController_PwrOff(void);
extern UINT32 DrvGPIO_GetHuntingWorkMode(void);
extern void DrvGPIO_SetPhotoMovieModeFromMonitor(UINT32 u32PhotoMovieMode);
extern UINT32 DrvGPIO_GetPhotoMovieModeFromMonitor(void);
void DrvGOIO_Turn_Onoff_IRCUT(UINT8 onoff);
void sf_ir_cut_ctrl_PowerOff(void);
void sf_ir_led_set(UINT8 mode, UINT8 flashLed, UINT8 stillExp, UINT8 isSnapVideo);
//@}
#endif //_DXHUNTING_H_