Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
code:fx3_hvci_and_fpga_i_c_commands [2019/11/13 00:01] – [0xA8-0xA9 - sysinfo and debugging] Igor Yefmov | code:fx3_hvci_and_fpga_i_c_commands [2020/05/14 22:05] – external edit 127.0.0.1 |
---|
| |
====== FX3 Host Vendor Command Reference ====== | ====== FX3 Host Vendor Command Reference ====== |
| Please refer to [[code::fx3_vr_cmd|Vendor Request Commands' reference]] page for details. |
| |
The following tables provide information on how to access the camera's functionality for ''FX3 Host Vendor Command Interface''. The address space is split into smaller chunks, grouped by common functionality: | The following tables provide information on how to access the camera's functionality for ''FX3 Host Vendor Command Interface''. The address space is split into smaller chunks, grouped by common functionality: |
===== 0xA8-0xA9 - sysinfo and debugging ===== | ===== 0xA8-0xA9 - sysinfo and debugging ===== |
^Name ^Offset ^wIndex ^wValue ^Access type ^Byte length ^Return buffer bits ^Notes ^ | ^Name ^Offset ^wIndex ^wValue ^Access type ^Byte length ^Return buffer bits ^Notes ^ |
|Sysinfo|''0xA8''|data structure version (currently only ''1'' is supported) | bitmask of additional checks to perform:\\ ''2''-''7'': reserved\\ ''1'' - check DMA integrity\\ ''0'' - check memory integrity |R/O|TBD| |get various internal system info on the guts of the RTOS and the firmware running on FX3. Returned bytes:\\ **Version 1**:\\ 0 - uint32_t: system uptime in ms ticks\\ 4 - uint8_t: Cypress part number\\ 5 - uint8_t: supported features\\ 6 - uint8_t: configured features\\ 7 - uint8_t: USB speed\\ 8 - uint32_t: memory allocations count| | |Sysinfo|''0xA8''|data structure version (currently only ''1'' is supported) | bitmask of additional checks to perform:\\ ''0'' - check memory integrity\\ ''1'' - check DMA integrity\\ ''2''-''7'': reserved |R/O|V1: ''30''| **Supported features** (byte #5)\\ ''0'' - USB3\\ ''1'' - OTG (USB 2.0 host mode)\\ ''2'' - 512KB RAM\\ ''3'' - I2S\\ ''4'' - GPIF (under 32bits)\\ ''5'' - GPIF32\\ **Configured features** (byte #6)\\ ''0'' - I²C\\ ''1'' - I2S\\ ''2'' - UART\\ ''3'' - SPI\\ ''4'' - PIB on/off\\ ''5'' - DLL status\\ ''6'' - LPP on/off |Get various internal system info on the guts of the RTOS and the firmware running on FX3. Returned bytes:\\ **Version 1** (FX3 #52):\\ 0 - uint32_t: system uptime in ms ticks\\ 4 - uint8_t: Cypress part number\\ 5 - uint8_t: supported features\\ 6 - uint8_t: configured features\\ 7 - uint8_t: USB speed (0, 1, 2, 3 for: disconnected, FS, HS, SS)\\ 8 - uint32_t: memory alloc() count\\ 12 - uint32_t: memory free() count\\ 16 - uint32_t: DMA alloc() count\\ 20 - uint32_t: DMA free() count\\ 24 - uint16_t: PHY error count\\ 26 - uint16_t: LINK error count\\ 28 - uint8_t: status of memory corruption check\\ 29 - uint8_t: status of DMA corruption check| |
|Reserved|''0xA9''| | | | | | | | |Reserved|''0xA9''| | | | | | | |
| |
|FPGA control|''0x06''|R/W| |Global control of the FPGA's functionality| | |FPGA control|''0x06''|R/W| |Global control of the FPGA's functionality| |
|:::|:::|:::|''7'' FPGA config enable|If bit ''7'' is set, the GPIF becomes read only and waits for an update bitstream| | |:::|:::|:::|''7'' FPGA config enable|If bit ''7'' is set, the GPIF becomes read only and waits for an update bitstream| |
|:::|:::|:::|''6'' Reserved| | | |:::|:::|:::|''6'' on-board fan| (FPGA-72+) ''1'' turns the on-board fan on, ''0'' turns it off | |
|:::|:::|:::|''5'' RAW Mode|Setting bit ''5'' and clearing bit ''0x06::2'' will enable RAW mode output (4K Only)| | |:::|:::|:::|''5'' RAW Mode|Setting bit ''5'' and clearing bit ''0x06::2'' will enable RAW mode output (4K Only)| |
|:::|:::|:::|''4'' Video Format|Bit ''4'' selects between NV12 ('1') and YUY2 ('0') output formats | | |:::|:::|:::|''4'' Video Format|Bit ''4'' selects between NV12 ('1') and YUY2 ('0') output formats | |