cc3dsfs/include/3dscapture_ftdi.hpp
Lorenzooone 268542732f
Implement USB for Old DS and 3DS CCs (#3)
* Implement USB for Old DS and 3DS CCs

* Update Readme and everything else to account for new devices

* Handle no serial number

* Reduce jitter on lower powered devices

Thanks to https://github.com/nn9dev and loopy for older CCs testing

There seem to be slowdowns on Windows when using the older CCs. Will need to figure that out.
2024-06-21 03:12:34 +02:00

20 lines
632 B
C++
Executable File

#ifndef __3DSCAPTURE_FTDI_HPP
#define __3DSCAPTURE_FTDI_HPP
#include <vector>
#include "utils.hpp"
#include "hw_defs.hpp"
#include "capture_structs.hpp"
#include "display_structs.hpp"
#define USE_FTDI
void list_devices_ftdi(std::vector<CaptureDevice> &devices_list);
bool connect_ftdi(bool print_failed, CaptureData* capture_data, CaptureDevice* device);
void ftdi_capture_main_loop(CaptureData* capture_data);
void ftdi_capture_cleanup(CaptureData* capture_data);
void ftdi_convertVideoToOutput(CaptureReceived *p_in, VideoOutputData *p_out, bool enabled_3d);
uint64_t ftdi_get_video_in_size(CaptureData* capture_data);
#endif