ykushxs.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*******************************************************************************
  2. Copyright 2017 Yepkit Lda (www.yepkit.com)
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. *******************************************************************************/
  13. #ifndef _YKUSHXS_H_
  14. #define _YKUSHXS_H_
  15. #include <yk_usb_device.h>
  16. //------------------------------------
  17. //CLASSES
  18. //------------------------------------
  19. class YkushXs : public UsbDevice
  20. {
  21. public:
  22. YkushXs()
  23. : UsbDevice(0x04D8, 0xF0CD)
  24. {
  25. }
  26. int get_port_status(char *serial); //get downstream port status
  27. int port_up(char *serial);
  28. int port_down(char *serial);
  29. void ykushxs_help(char * execName);
  30. };
  31. //---------------------------------
  32. //FUNCTIONS
  33. //---------------------------------
  34. int ykushxs_cmd_parser(int argc, char** argv);
  35. void ykushxs_help(char * execName);
  36. void ykushxs_up(char * iserial);
  37. void ykushxs_down(char * iserial);
  38. int ykushxs_list_attached(void);
  39. #endif