?? lv20x0.bas
字號:
' return value (in pucReturn1):
' 0 - completed, 1 - in progress
' ~~~ LV2010 ~~~
Public Const LV_PRESET_LOAD_INT_SLOW_B1 = &H7D ' Load preset and move zoom (with slow tracking) and focus to it
' byte 2 - index in EEPROM (0..63)
Public Const LV_PRESET_LOAD_INT_FAST_B1 = &H7E ' Load preset and move zoom (with fast tracking) and focus to it
' byte 2 - index in EEPROM (0..63)
Public Const LV_PRESET_LOAD_EXT_SLOW_B1 = &H7B ' Load and set preset (with slow zoom tracking)
' byte 2 - index 0..7
Public Const LV_PRESET_LOAD_EXT_FAST_B1 = &H7C ' Load and set preset (with fast zoom tracking)
' byte 2 - index 0..7
' ~~~ LV2020 ~~~
Public Const LV_PRESET_LOAD_INT_AUTO_B1 = &H7D ' Load preset and move zoom (with auto zoom tracking) and focus to it
' byte 2 - index in EEPROM (0..63)
Public Const LV_PRESET_LOAD_INT_MAN_B1 = &H7E ' Load preset and move zoom (with manual zoom tracking) and focus to it
' byte 2 - index in EEPROM (0..63)
' *** ZOOM ********************************************************************
' ~~~ LV2000 ~~~
Public Const LV_DZOOM_2000_SET_POWER_2 = &H52000000 ' Set Digital Zoom max. power to 2x (total 32x)
Public Const LV_DZOOM_2000_SET_POWER_3 = &H52010000 ' Set Digital Zoom max. power to 3x (total 48x)
Public Const LV_DZOOM_2000_SET_POWER_4 = &H52020000 ' Set Digital Zoom max. power to 4x (total 64x)
Public Const LV_DZOOM_2000_SET_POWER_5 = &H52030000 ' Set Digital Zoom max. power to 5x (total 80x)
Public Const LV_DZOOM_2000_SET_POWER_6 = &H52040000 ' Set Digital Zoom max. power to 6x (total 96x)
Public Const LV_DZOOM_2000_SET_POWER_7 = &H52050000 ' Set Digital Zoom max. power to 7x (total 112x)
Public Const LV_DZOOM_2000_SET_POWER_8 = &H52060000 ' Set Digital Zoom max. power to 8x (total 128x)
' ~~~ LV2010, LV2020 ~~~
' note that LV2010 has different numbers in comparison with LV2000
Public Const LV_DZOOM_SET_POWER_2 = &H52020000 ' Set Digital Zoom max. power to 2x
Public Const LV_DZOOM_SET_POWER_3 = &H52030000 ' Set Digital Zoom max. power to 3x
Public Const LV_DZOOM_SET_POWER_4 = &H52040000 ' Set Digital Zoom max. power to 4x
Public Const LV_DZOOM_SET_POWER_5 = &H52050000 ' Set Digital Zoom max. power to 5x
Public Const LV_DZOOM_SET_POWER_6 = &H52060000 ' Set Digital Zoom max. power to 6x
Public Const LV_DZOOM_SET_POWER_7 = &H52070000 ' Set Digital Zoom max. power to 7x
Public Const LV_DZOOM_SET_POWER_8 = &H52080000 ' Set Digital Zoom max. power to 8x
Public Const LV_DZOOM_SET_POWER_B1 = &H52 ' Set Digital Zoom Power - byte 1
' byte 2 = zoom power 2..8
Public Const LV_DZOOM_GET_POWER = &HAA8F0000 ' Get Digital Zoom Power
' return value (in pucReturn1):
' 2...8
Public Const LV_ZOOM_B1 = &HAA ' Zoom commands first byte
Public Const LV_ZOOM_STOP_B2 = &H51 ' Stop zoom
Public Const LV_ZOOM_TELE_B2 = &H52 ' Zoom to TELE with defined speed
' 3rd byte - speed 1..12
Public Const LV_ZOOM_WIDE_B2 = &H53 ' Stop to WIDE with defined speed
' 3rd byte - speed 1..12
Public Const LV_DZOOM_SET_ON = &HAA6E0100 ' Switch digital zoom ON
Public Const LV_DZOOM_SET_OFF = &HAA6E0000 ' Switch digital zoom OFF
' *** DAY&NIGHT MODE **********************************************************
' ~~~ LV2020 ~~~
Public Const LV_DAY_NIGHT_SET_ON = &H83010000 ' Set Day&Night mode on
Public Const LV_DAY_NIGHT_SET_OFF = &H83000000 ' Set Day&Night mode off
Public Const LV_DAY_NIGHT_GET = &H82000000 ' Get Day&Night mode
' return value (in pucReturn1):
' 0=off, 1=on
' *** INTEGRATION MODE ********************************************************
' ~~~ LV2020 ~~~
Public Const LV_INTEGRATION_SET_ON = &HAA5F0100 ' Set integration mode on
Public Const LV_INTEGRATION_SET_OFF = &HAA5F0000 ' Set integration mode off
' requires AUTO or Iris Fix mode
Public Const LV_INTEGRATION_SET_FIELDS_B1 = &HAA ' Set integration max fields value - byte 1
Public Const LV_INTEGRATION_SET_FIELDS_B2 = &H5E ' Set integration max fields value - byte 2
' byte 3 = number of fields 0..128
' the number must be even (2, 4, 6, ...)
Public Const LV_INTEGRATION_GET_FIELDS = &HAA5D0000 ' Get integration max fields value
' return value (in pucReturn1):
' 0..128 (even number)
' *** BACKLIGHT ***************************************************************
Public Const LV_BACKLIGHT_GET = &HAA610000 ' Get Backlight level
Public Const LV_BACKLIGHT_SET_B1 = &HAA ' Set backlight level - byte 1
Public Const LV_BACKLIGHT_SET_B2 = &H62 ' Set backlight level - byte 2
' byte 3 - level 10..40 by LV2000
' byte 3 - level 102..255 by LV2010
' ~~~ LV2010, LV2020 ~~~
Public Const LV_BACKLIGHT_SET_AUTO_ON = &HAA6D0100 ' Set auto backlight mode ON
Public Const LV_BACKLIGHT_SET_AUTO_OFF = &HAA6D0000 ' Set auto backlight mode OFF
Public Const LV_BACKLIGHT_SET_ON = &HAA700100 ' Set backlight mode ON (only when Auto is OFF)
Public Const LV_BACKLIGHT_SET_OFF = &HAA700000 ' Set backlight mode OFF (only when Auto is OFF)
Public Const LV_BACKLIGHT_STORE_ON = &HAA560000 ' Set backlight mode ON and save it to EEPROM
Public Const LV_BACKLIGHT_STORE_OFF = &HAA570000 ' Save backlight mode OFF and save it to EEPROM
Public Const LV_BACKLIGHT_GET_AREA = &H84000000 ' Get auto backlight area
' return value (in pucReturn1):
' bits 0..4 - corresponding area is 1=ON/0=OFF
' -------------------
' | 0 |
' |-----------------|
' | 2 | 4 | 3 |
' |-----------------|
' | 1 |
' -------------------
Public Const LV_BACKLIGHT_SET_AREA_B1 = &H85 ' Set auto backlight area - byte 1
' byte 2 - bits 0..4 - area x is 1=ON/0=OFF
Public Const LV_BACKLIGHT_DISPLAY_AUTO_AREA = &H86010000 ' Set auto backlight area display ON
Public Const LV_BACKLIGHT_HIDE_AUTO_AREA = &H86000000 ' Set auto backlight area display OFF
' *** ON SCREEN DISPLAY *******************************************************
' ~~~ LV2010, LV2020 ~~~
Public Const LV_OSD_GET_MENU = &HAA8D0000 ' Get menu OSD display ON/OFF
' return value (in pucReturn1):
' 0 - not displayed
' 1 - displayed
Public Const LV_OSD_SET_MENU_ON = &HAA630100 ' Set menu OSD display ON
Public Const LV_OSD_SET_MENU_OFF = &HAA630000 ' Set menu OSD display OFF
Public Const LV_OSD_SET_ENGLISH = &H87000000 ' Set OSD language to English
Public Const LV_OSD_SET_KOREAN = &H87010000 ' Set OSD language to Korean
Public Const LV_OSD_SET_CHINESE = &H87020000 ' Set OSD language to Chinese
Public Const LV_OSD_GET_MODE = &HAA8E0000 ' Get Operating OSD Display mode
' return value (in pucReturn1):
' 0 - whole OSD is off
' 1 - Only top line ON
' 2 - Only bottom line ON
' 3 - Whole OS is ON (without cam. ID)
Public Const LV_OSD_SET_MODE_ALL_OFF = &HAA640000 ' Set Operating OSD Display mode - whole OSD is off
Public Const LV_OSD_SET_MODE_TOP = &HAA640100 ' Set Operating OSD Display mode - Only top line ON
Public Const LV_OSD_SET_MODE_BOTTOM = &HAA640200 ' Set Operating OSD Display mode - Only bottom line ON
Public Const LV_OSD_SET_MODE_ALL_ON = &HAA640300 ' Set Operating OSD Display mode - Whole OS is ON
' *** SHARPNESS ***************************************************************
' ~~~ LV2010, LV2020 ~~~
Public Const LV_SHARPNESS_GET = &HAA880000 ' Get sharpness
' return value (in pucReturn1):
' 0..15
Public Const LV_SHARPNESS_SET_B1 = &HAA ' Set sharpness - byte 1
Public Const LV_SHARPNESS_SET_B2 = &H79 ' Set sharpness - byte 2
' byte 3 - sharpness 0..15
' *** BRIGHTNESS **************************************************************
' ~~~ LV2010, LV2020 ~~~
Public Const LV_BRIGHTNESS_GET = &HAA890000 ' Get brightness
' return value (in pucReturn1):
' 0..99
Public Const LV_BRIGHTNESS_SET_B1 = &HAA ' Set brightness - byte 1
Public Const LV_BRIGHTNESS_SET_B2 = &H7A ' Set brightness - byte 2
' byte 3 - brightness 0..99 (default=30)
' *** DIGITAL EFFECTS *********************************************************
' ~~~ LV2010, LV2020 ~~~
Public Const LV_DIGEFF_GET = &HAA820000 ' Get digital effect status
' return value (in pucReturn1):
' bit 0 - Cinema (1=ON, 0=OFF)
' bit 1 - Art
' bit 2 - Mirror
' bit 4 - 80% Negative - LV2020 only
' bit 3 - 100% Negative
' bit 5 - Mono
' bit 6 - Mosaic
Public Const LV_DIGEFF_SET_COLOR_ON = &HAA710100 ' Set Color mode to ON
Public Const LV_DIGEFF_SET_COLOR_OFF = &HAA710000 ' Set Color mode to OFF
Public Const LV_DIGEFF_SET_NEG_100_ON = &HAA720100 ' Set 100% negative mode to ON
Public Const LV_DIGEFF_SET_NEG_100_OFF = &HAA720000 ' Set 100% negative mode to OFF
Public Const LV_DIGEFF_SET_MIRROR_ON = &HAA7F0100 ' Set full mirror to ON
Public Const LV_DIGEFF_SET_MIRROR_OFF = &HAA7F0000 ' Set full mirror to OFF
Public Const LV_DIGEFF_SET_FLICKERLESS_ON = &HAA740100 ' Set flickerless mode to ON
Public Const LV_DIGEFF_SET_FLICKERLESS_OFF = &HAA740000 ' Set flickerless mode to OFF
Public Const LV_DIGEFF_SET_FADE_ON = &HAA540000 ' Set fade to ON
Public Const LV_DIGEFF_SET_FADE_OFF = &HAA550000 ' Set fade to OFF
' ~~~ LV2020 ~~~
Public Const LV_DIGEFF_SET_NEG_80_ON = &HAA7E0100 ' Set 80% negative mode to ON
Public Const LV_DIGEFF_SET_NEG_80_OFF = &HAA7E0000 ' Set 80% negative mode to OFF
' *** RESET *******************************************************************
Public Const LV_RESTART = &H4F000000 ' Reset the camera's microcontroller
' *** CAMERA STATUS ***********************************************************
' ~~~ LV2010, LV2020 ~~~
Public Const LV_STATUS_GET_1 = &HAA800000 ' Get camera status - part 1
' return value (in pucReturn1):
' bit 0 - Initial Menu data (1=yes, 0=not)
' bit 1 - Digital zoom (1=ON, 0=OFF)
' bit 2 - Focus (1=Push_Auto, 0=Auto/Manual)
' bit 3 - FlickerLess (1=ON, 0=OFF)
' bit 4 - Backlight (1=ON, 0=OFF)
' bit 5 - AWC (1=Push, 0=Lock)
' bit 6 - Camera ID Display (1=ON, 0=OFF)
' bit 7 - Focus (1=manual, 0=auto)
Public Const LV_STATUS_GET_2 = &HAA810000 ' Get camera status - part 2
' return value (in pucReturn1) for LV2010:
' bit 0 - Auto Backlight (1=ON, 0=OFF)
' bit 1 - AF Sensitivity (1=low, 0=high)
' bit 2 - AE Sensitivity (1=low, 0=high)
' bit 3,4 - Zoom speed (00-Slow, 01-Medium, 10-High)
' return value (in pucReturn1) for LV2020:
' bit 0 - Auto Backlight (1=ON, 0=OFF)
' bit 1 - Day&Night (1=ON, 0=OFF)
' bit 2 - Auto Day&Night (1=ON, 0=OFF)
' bit 5 - Low Shutter (1=ON, 0=OFF)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -