bsp_esb.h 538 B

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