MBPHY.h 570 B

1234567891011121314151617181920212223
  1. #ifndef _MB_PHY_
  2. #define _MB_PHY_
  3. #if defined(__cplusplus)
  4. extern "C" { /* Make sure we have C-declarations in C++ programs */
  5. #endif
  6. typedef void(*pfcbSTK_t)(uint8_t * pBuff, uint16_t Size);
  7. void MB_PHY_SetCallback(pfcbSTK_t cbOut, pfcbSTK_t cbIn);
  8. void MB_PHY_SelPHY(int ID);
  9. void MB_PHY_SetIP(const char * IP, int Port);
  10. void MB_PHY_SetBaud(const char * CommName, int Baud);
  11. int8_t MB_STK_Out(uint8_t * pBuff, uint16_t Size);
  12. int8_t MB_STK_OutEx(uint8_t * pBuff, uint16_t Size, uint8_t * pRBuff, uint16_t *pRSize);
  13. #if defined(__cplusplus)
  14. }
  15. #endif
  16. #endif