f303_ic_control.h 1.4 KB

12345678910111213141516171819202122232425262728293031
  1. /* f303_ic_control.h
  2. *
  3. * Raydium TouchScreen driver.
  4. *
  5. * Copyright (c) 2021 Raydium tech Ltd.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. */
  18. #include "ic_drv_global.h"
  19. #define HEADER_LENGTH (4)//length + checksum
  20. extern unsigned char enable_ic_block_3x(void);
  21. extern unsigned char stop_mcu_3x(unsigned char u8_is_tp_reset);
  22. extern unsigned char hardware_reset_3x(unsigned char u8_enable_ic_block);
  23. extern unsigned char check_dev_id_3x(unsigned short u16_dev_id);
  24. extern unsigned char check_dev_sub_version_3x(unsigned char u8_version);
  25. extern unsigned char set_fw_system_cmd_3x(unsigned int u32_sysm_cmd);
  26. extern unsigned char wait_fw_state_3x(unsigned int u32_addr, unsigned int u32_state, unsigned short u16_delay, unsigned short u16_retry);
  27. extern unsigned char disable_i2c_deglitch_3x(void);
  28. extern unsigned char WriteDriverByTouchMode(const unsigned char *p_u8_data, uint16_t u16DataLength);