platformW5500Hardware.h 857 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef __plarformW5500Spi__
  2. #define __plarformW5500Spi__
  3. #ifdef __cplusplus
  4. extern "C"
  5. {
  6. #endif
  7. #include <stdint.h>
  8. // 定义枚举类型
  9. // 定义结构体类型
  10. /* extern variables-----------------------------------------------------------*/
  11. extern int RyanW5500SpiInit();
  12. extern void RyanW5500WriteByte(uint8_t data);
  13. extern uint8_t RyanW5500ReadByte(void);
  14. extern void RyanW5500WriteBurst(uint8_t *pbuf, uint16_t len);
  15. extern void RyanW5500ReadBurst(uint8_t *pbuf, uint16_t len);
  16. extern void RyanW5500CriticalEnter(void);
  17. extern void RyanW5500CriticalExit(void);
  18. extern void RyanW5500CsSelect(void);
  19. extern void RyanW5500CsDeselect(void);
  20. extern void RyanW5500Reset(void);
  21. extern void RyanW5500AttachIRQ(void (*RyanW5500IRQCallback)(void *argument));
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif