cyttsp4_device_access-api.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * cyttsp4_device_access-api.h
  3. * Cypress TrueTouch(TM) Standard Product V4 Device Access API module.
  4. * For use with Cypress Txx4xx parts.
  5. * Supported parts include:
  6. * TMA4XX
  7. * TMA1036
  8. *
  9. * Copyright (C) 2012 Cypress Semiconductor
  10. *
  11. * This program is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License
  13. * version 2, and only version 2, as published by the
  14. * Free Software Foundation.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * Contact Cypress Semiconductor at www.cypress.com <ttdrivers@cypress.com>
  22. *
  23. */
  24. #ifndef _LINUX_CYTTSP4_DEVICE_ACCESS_API_H
  25. #define _LINUX_CYTTSP4_DEVICE_ACCESS_API_H
  26. #include <linux/types.h>
  27. #include <linux/device.h>
  28. #define GRPNUM_OP_COMMAND 1
  29. #define GRPNUM_TOUCH_CONFIG 6
  30. #define OP_CMD_NULL 0
  31. #define OP_CMD_GET_PARAMETER 2
  32. #define OP_CMD_SET_PARAMETER 3
  33. #define OP_CMD_GET_CONFIG_CRC 5
  34. #define OP_PARAM_ACTIVE_DISTANCE 0x4A
  35. #define OP_PARAM_SCAN_TYPE 0x4B
  36. #define OP_PARAM_LOW_POWER_INTERVAL 0x4C
  37. #define OP_PARAM_REFRESH_INTERVAL 0x4D
  38. #define OP_PARAM_ACTIVE_MODE_TIMEOUT 0x4E
  39. #define OP_PARAM_ACTIVE_LOOK_FOR_TOUCH_INTERVAL 0x4F
  40. int cyttsp4_device_access_read_command(const char *core_name,
  41. int ic_grpnum, int ic_grpoffset, u8 *buf, int buf_size);
  42. int cyttsp4_device_access_write_command(const char *core_name,
  43. int ic_grpnum, int ic_grpoffset, u8 *buf, int length);
  44. #endif /* _LINUX_CYTTSP4_DEVICE_ACCESS_API_H */