#ifndef __NEOOBD2PRO_H_ #define __NEOOBD2PRO_H_ #include "device/include/device.h" #include "platform/include/stm32.h" namespace icsneo { class NeoOBD2PRO : public Device { public: // Serial numbers are NP**** static constexpr const char* PRODUCT_NAME = "neoOBD2 PRO"; static constexpr const uint16_t USB_PRODUCT_ID = 0x1103; NeoOBD2PRO(neodevice_t neodevice) : Device(neodevice) { com = std::make_shared(std::make_shared(getWritableNeoDevice())); setProductName(PRODUCT_NAME); usbProductId = USB_PRODUCT_ID; } static std::vector> Find() { std::vector> found; for(auto neodevice : STM32::FindByProduct(USB_PRODUCT_ID)) found.push_back(std::make_shared(neodevice)); return found; } }; }; #endif