cmt_spi3.h 512 B

12345678910111213141516171819202122
  1. #ifndef __CMT_SPI3_H
  2. #define __CMT_SPI3_H
  3. #include <stdint.h>
  4. #include <stdbool.h>
  5. // __inline void cmt_spi3_delay(void);
  6. // __inline void cmt_spi3_delay_us(void);
  7. void cmt_spi3_init(void);
  8. // void cmt_spi3_send(uint8_t data8);
  9. // uint8_t cmt_spi3_recv(void);
  10. void cmt_spi3_write(uint8_t addr, uint8_t dat);
  11. void cmt_spi3_read(uint8_t addr, uint8_t* p_dat);
  12. void cmt_spi3_write_fifo(const uint8_t* p_buf, uint16_t len);
  13. void cmt_spi3_read_fifo(uint8_t* p_buf, uint16_t len);
  14. #endif