mirror of
https://github.com/CTCaer/jc_toolkit
synced 2026-11-26 09:08:07 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d0cc455ae | ||
|
|
3294abb705 | ||
|
|
9d0c4636cc | ||
|
|
ebff8b393a | ||
|
|
0aebab229f | ||
|
|
5a6ba9bd49 | ||
|
|
52f0454b8c | ||
|
|
c77c008499 | ||
|
|
3860347aba | ||
|
|
1efa0d497c | ||
|
|
8c0d440f1b | ||
|
|
8de445eb73 | ||
|
|
2529699b13 | ||
|
|
94283adeff | ||
|
|
3f41f406d5 |
No files matched your search
@@ -1,5 +1,8 @@
|
||||
# Joy-Con Toolkit
|
||||
|
||||

|
||||
This image is for reference.
|
||||
|
||||
## Prerequisites:
|
||||
|
||||
**Microsoft Visual C++ 2017 (x86) Redistributable** (All Windows versions)
|
||||
|
||||
+1769
-744
File diff suppressed because it is too large.
Load diff
@@ -56,10 +56,3 @@ static uint32_t iron_palette[] = {
|
||||
0xfffffad1, 0xfffffad4, 0xfffffcdb, 0xfffffcdf, 0xfffffde5, 0xfffffde8, 0xfffffeee, 0xfffffff6
|
||||
};
|
||||
|
||||
//ir registers to maximize output
|
||||
static uint8_t ir_registers[] = {
|
||||
0x00, 0x00, 0x51, 0x00, 0x0F, 0x7C, 0x01, 0x00, 0x44,
|
||||
0x01, 0x08, 0x7C, 0x02, 0x00, 0x7B, 0x02, 0x01, 0x7C,
|
||||
0x03, 0x00, 0x6E, 0x03, 0x06, 0x7C, 0x04, 0x00, 0x05,
|
||||
0x04, 0x05, 0x1E, 0x04, 0x13, 0x7C
|
||||
};
|
||||
+803
-485
File diff suppressed because it is too large.
Load diff
+25
-6
@@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
#include <cstdint>
|
||||
#include "hidapi.h"
|
||||
|
||||
using namespace System;
|
||||
|
||||
@@ -81,10 +80,28 @@ struct brcm_cmd_01 {
|
||||
};
|
||||
};
|
||||
|
||||
struct ir_image_config {
|
||||
u8 ir_res_reg;
|
||||
u16 ir_exposure;
|
||||
u8 ir_leds; // Leds to enable, Strobe/Flashlight modes
|
||||
u16 ir_leds_intensity; // MSByte: Leds 1/2, LSB: Leds 3/4
|
||||
u8 ir_digital_gain;
|
||||
u8 ir_ex_light_filter;
|
||||
u32 ir_custom_register; // MSByte: Enable/Disable, Middle Byte: Edge smoothing, LSB: Color interpolation
|
||||
u16 ir_buffer_update_time;
|
||||
u8 ir_hand_analysis_mode;
|
||||
u8 ir_hand_analysis_threshold;
|
||||
u32 ir_denoise; // MSByte: Enable/Disable, Middle Byte: Edge smoothing, LSB: Color interpolation
|
||||
u8 ir_flip;
|
||||
};
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
extern std::string get_sn(u32 offset, const u16 read_len);
|
||||
extern s16 uint16_to_int16(u16 a);
|
||||
extern void decode_stick_params(u16 *decoded_stick_params, u8 *encoded_stick_params);
|
||||
extern void encode_stick_params(u8 *encoded_stick_params, u16 *decoded_stick_params);
|
||||
|
||||
extern std::string get_sn(u32 offset, const u16 read_len);
|
||||
extern int get_spi_data(u32 offset, const u16 read_len, u8 *test_buf);
|
||||
extern int write_spi_data(u32 offset, const u16 write_len, u8* test_buf);
|
||||
extern int get_device_info(u8* test_buf);
|
||||
@@ -98,18 +115,20 @@ extern int send_custom_command(u8* arg);
|
||||
extern int device_connection();
|
||||
extern int set_led_busy();
|
||||
extern int button_test();
|
||||
extern int ir_sensor(u8* buf_image, u8 ir_res_reg, u8 ir_res_no_of_packets, u16 ir_exposure, u8 ir_leds, u8 ir_digital_gain, u8 ir_ex_light_filter);
|
||||
extern int ir_sensor(ir_image_config &ir_cfg);
|
||||
extern int ir_sensor_config_live(ir_image_config &ir_cfg);
|
||||
extern int nfc_tag_info();
|
||||
extern int silence_input_report();
|
||||
int handle_ok;
|
||||
int handle_ok;
|
||||
bool enable_button_test;
|
||||
bool enable_IRVideoPhoto;
|
||||
bool enable_IRAutoExposure;
|
||||
bool enable_NFCScanning;
|
||||
bool cancel_spi_dump;
|
||||
bool check_connection_ok;
|
||||
|
||||
hid_device *handle;
|
||||
hid_device *handle_l;
|
||||
u8 timming_byte;
|
||||
u8 ir_max_frag_no;
|
||||
|
||||
namespace CppWinFormJoy {
|
||||
class images
|
||||
|
||||
Reference in new issue
Block a user