ttusb2.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* DVB USB compliant linux driver for Technotrend DVB USB boxes and clones
  2. * (e.g. Pinnacle 400e DVB-S USB2.0).
  3. *
  4. * Copyright (c) 2002 Holger Waechtler <holger@convergence.de>
  5. * Copyright (c) 2003 Felix Domke <tmbinc@elitedvb.net>
  6. * Copyright (C) 2005-6 Patrick Boettcher <pb@linuxtv.de>
  7. *
  8. * This program is free software; you can redistribute it and/or modify it
  9. * under the terms of the GNU General Public License as published by the Free
  10. * Software Foundation, version 2.
  11. *
  12. * see Documentation/dvb/README.dvb-usb for more information
  13. */
  14. #ifndef _DVB_USB_TTUSB2_H_
  15. #define _DVB_USB_TTUSB2_H_
  16. /* TTUSB protocol
  17. *
  18. * always to messages (out/in)
  19. * out message:
  20. * 0xaa <id> <cmdbyte> <datalen> <data...>
  21. *
  22. * in message (complete block is always 0x40 bytes long)
  23. * 0x55 <id> <cmdbyte> <datalen> <data...>
  24. *
  25. * id is incremented for each transaction
  26. */
  27. #define CMD_DSP_DOWNLOAD 0x13
  28. /* out data: <byte>[28]
  29. * last block must be empty */
  30. #define CMD_DSP_BOOT 0x14
  31. /* out data: nothing */
  32. #define CMD_POWER 0x15
  33. /* out data: <on=1/off=0> */
  34. #define CMD_LNB 0x16
  35. /* out data: <power=1> <18V=0,13V=1> <tone> <??=1> <??=1> */
  36. #define CMD_GET_VERSION 0x17
  37. /* in data: <version_byte>[5] */
  38. #define CMD_DISEQC 0x18
  39. /* out data: <master=0xff/burst=??> <cmdlen> <cmdbytes>[cmdlen] */
  40. #define CMD_PID_ENABLE 0x22
  41. /* out data: <index> <type: ts=1/sec=2> <pid msb> <pid lsb> */
  42. #define CMD_PID_DISABLE 0x23
  43. /* out data: <index> */
  44. #define CMD_FILTER_ENABLE 0x24
  45. /* out data: <index> <pid_idx> <filter>[12] <mask>[12] */
  46. #define CMD_FILTER_DISABLE 0x25
  47. /* out data: <index> */
  48. #define CMD_GET_DSP_VERSION 0x26
  49. /* in data: <version_byte>[28] */
  50. #define CMD_I2C_XFER 0x31
  51. /* out data: <addr << 1> <sndlen> <rcvlen> <data>[sndlen]
  52. * in data: <addr << 1> <sndlen> <rcvlen> <data>[rcvlen] */
  53. #define CMD_I2C_BITRATE 0x32
  54. /* out data: <default=0> */
  55. #endif