bsp_esb.h 626 B

1234567891011121314151617181920
  1. #ifndef __bsp_esb_h__
  2. #define __bsp_esb_h__
  3. #include <stdbool.h>
  4. #include <stdint.h>
  5. #include <string.h>
  6. #include "sdk_common.h"
  7. #include "SEGGER_RTT.h"
  8. #include "usr_config.h"
  9. uint32_t ESB_Init(void);
  10. //void ESB_SendStr(char *p);//发送字符串
  11. void ESB_SendBuff(unsigned char *p,int L);//发送缓存
  12. //void ESB_SendChar(unsigned char ch);//发送一位数锯
  13. void ESB_Discard(unsigned short n); //丢弃RX数据几位
  14. unsigned char ESB_CheckByte(unsigned short n); //看RX中数锯,地指不变,
  15. unsigned char ESB_ReadByte(void); //读RX中数锯,地指加一,和丢弃
  16. unsigned int ESB_CheckLen(void); //检查RX接收了多少数据
  17. void ESB_Test(void);
  18. #endif