hi_ssp.h 505 B

123456789101112131415161718192021222324252627
  1. /*
  2. * extdrv/include/hi_ssp.h for Linux .
  3. *
  4. * History:
  5. * 2006-4-11 create this file
  6. */
  7. #ifndef __HI_SSP_H__
  8. #define __HI_SSP_H__
  9. #define SSP_READ_ALT 0x1
  10. #define SSP_WRITE_ALT 0X3
  11. typedef struct hiSPI_DATA_S
  12. {
  13. unsigned int spi_no;
  14. unsigned char dev_addr;
  15. unsigned int dev_byte_num;
  16. unsigned int reg_addr;
  17. unsigned int addr_byte_num;
  18. unsigned int data;
  19. unsigned int data_byte_num;
  20. }SPI_DATA_S;
  21. #endif