domain.h 386 B

123456789101112131415161718
  1. #ifndef __DOMAIN_H_
  2. #define __DOMAIN_H_
  3. #include "main.h"
  4. #include "datatype.h"
  5. typedef enum{
  6. DOMAIN_OK,
  7. DOMAIN_ERR,
  8. DOMAIN_WAIT
  9. }DOMAIN_STEP;
  10. T_BOOL setDomainForIp(T_INT8 *addr, T_UINT8 *index);
  11. T_UINT8 getDomainForIp(T_UINT8 index, T_INT8 *outIp, T_UINT8 outLen);
  12. PT_THREAD (ptDomainTask(pt_timer_t *ptPool, struct pt *pt));
  13. void tryDomain(T_UINT8 *data, T_UINT16 len);
  14. #endif